aboutsummaryrefslogtreecommitdiff
path: root/en/devices/architecture
diff options
context:
space:
mode:
authorMark Hecomovich <mheco@google.com>2019-01-28 21:29:33 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-01-28 21:29:33 +0000
commit56cd845b72cebfc74b8c527936ed2e4aff4b51dd (patch)
tree94e1ae7edb82c95a5da83468b6ea104d651850f3 /en/devices/architecture
parentd8c39787c5a4061686695502e62c0477b939c633 (diff)
parent964c5956c98fb20ab44ead57e59b5c0ed9f0ab11 (diff)
downloadsource.android.com-56cd845b72cebfc74b8c527936ed2e4aff4b51dd.tar.gz
Merge "Docs: Changes to source.android.com"
Diffstat (limited to 'en/devices/architecture')
-rw-r--r--en/devices/architecture/hidl/code-style.html7
-rw-r--r--en/devices/architecture/vndk/renderscript.html8
2 files changed, 7 insertions, 8 deletions
diff --git a/en/devices/architecture/hidl/code-style.html b/en/devices/architecture/hidl/code-style.html
index 5f787d71..5f451851 100644
--- a/en/devices/architecture/hidl/code-style.html
+++ b/en/devices/architecture/hidl/code-style.html
@@ -52,12 +52,14 @@ interface <a href="#interface-names">IFoo</a> {
/**
* This is a <a href="#comments">multiline docstring</a>.
+ *
* <a href="#return">@return</a> result 0 if successful, nonzero otherwise.
*/
<a href="#function-declarations">foo() generates (FooStatus result);</a>
/**
* Restart controller by power cycle.
+ *
* <a href="#param">@param</a> bar callback interface that&#8230;
* @return result 0 if successful, nonzero otherwise.
*/
@@ -69,6 +71,7 @@ interface <a href="#interface-names">IFoo</a> {
/**
* The bar function.
+ *
* <a href="#param">@param</a> <a href="#functions">clientCallback</a> callback after function is called
* @param baz related baz object
* @param data input data blob
@@ -107,7 +110,7 @@ package android.hardware.foo@1.0;
<h2 id=naming>Naming conventions</h2>
<p>Function names, variable names, and filenames should be descriptive; avoid
over-abbreviation. Treat acronyms as words (e.g., use <code>INfc</code> instead
-of <code>INFC</code>.</p>
+of <code>INFC</code>).</p>
<h3 id=dir-structure>Directory structure and file naming</h3>
<p>The directory structure should appear as follows:</p>
@@ -455,6 +458,7 @@ the package directory).</p>
interface IFooController {
/**
* Opens the controller.
+ *
* @return status HAL_FOO_OK if successful.
*/
open() generates (FooStatus status);
@@ -478,6 +482,7 @@ should be followed by the name of the return value then the docstring.</li>
<pre class="prettyprint">
/**
* Explain what foo does.
+ *
* @param arg1 explain what arg1 is
* @param arg2 explain what arg2 is
* @return ret1 explain what ret1 is
diff --git a/en/devices/architecture/vndk/renderscript.html b/en/devices/architecture/vndk/renderscript.html
index a2b5a8bd..873b24a2 100644
--- a/en/devices/architecture/vndk/renderscript.html
+++ b/en/devices/architecture/vndk/renderscript.html
@@ -533,14 +533,8 @@ namespace.sphal.link.rs.shared_libs = libRS_internal.so
</p>
<pre class="prettyprint">
-device/vendor_foo/device_bar/sepolicy/file.te:
-type renderscript_exec, exec_type, file_type;
-
-device/vendor_foo/device_bar/sepolicy/app.te:
-allow appdomain renderscript_exec:file { read open getattr execute execute_no_trans };
-
device/vendor_foo/device_bar/sepolicy/file_contexts:
-/vendor/bin/bcc u:object_r:renderscript_exec:s0
+/vendor/bin/bcc u:object_r:same_process_hal_file:s0
</pre>
<h3 id="legacy-devices">Legacy devices</h3>