Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 88) sorted by relevance

1234

/tools/tradefederation/core/atest/docs/
Ddeveloper_workflow.md3 This document explains the practical steps for contributing code to atest.
6 1. [Identify the code you should work on](#identify-the-code-you-should-work-on)
7 2. [Working on the Python Code](#working-on-the-python-code)
8 3. [Working on the TradeFed Code](#working-on-the-tradefed-code)
9 4. [Working on the VTS-TradeFed Code](#working-on-the-vts-tradefed-code)
10 5. [Working on the Robolectric Code](#working-on-the-robolectric-code)
13 ## <a name="what-code">Identify the code you should work on</a>
16 this division, your first step should be to identify the code
18 and run. Note that the wrapper code is written in python, so we'll be
23 This code defines atest's command line interface.
[all …]
/tools/dexter/slicer/
Dinstrumentation.cc64 auto regs = ir_method->code->registers; in Apply()
65 auto args_count = ir_method->code->ins_count; in Apply()
312 16 - static_cast<int>(code_ir->ir_method->code->registers)); in RegsRenumbering()
339 SLICER_CHECK(ir_method->code->ins_count > 0); in ShiftParams()
354 Allocate(code_ir, ir_method->code->registers, left_to_allocate_); in ShiftParams()
357 const dex::u4 regs = ir_method->code->registers; in ShiftParams()
358 const dex::u4 ins_count = ir_method->code->ins_count; in ShiftParams()
395 code_ir->ir_method->code->registers += count; in Allocate()
410 const auto code = code_ir->ir_method->code; in Apply() local
412 SLICER_CHECK(code->registers + allocate_count_ <= (1 << 16)); in Apply()
[all …]
Dwriter.cc339 CopySection(dex_->code, image, image_size); in CreateImage()
410 AddMapItem(dex_->code, map_items); in CreateMapSection()
486 dex_->code.SetOffset(section_offset); in CreateCodeItemSection()
488 for (const auto& ir_node : dex_ir_->code) { in CreateCodeItemSection()
494 dex::u4 size = dex_->code.Seal(4); in CreateCodeItemSection()
818 auto offset = dex_->code.Push(instructions); in WriteInstructions()
819 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions()
935 auto& data = dex_->code; in WriteTryBlocks()
961 auto& data = dex_->code; in WriteCode()
999 dex::u4 code_offset = FilePointer(ir_encoded_method->code); in WriteEncodedMethod()
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DErrors.java42 public final int code; field in Errors.Error
71 private Error(int code, Severity level) { in Error() argument
72 this(code, level, Category.UNKNOWN); in Error()
75 private Error(int code, Severity level, Category category) { in Error() argument
76 this(code, level, null, category, null, null); in Error()
79 private Error(int code, Severity level, Category category, String rule) { in Error() argument
80 this(code, level, null, category, rule, null); in Error()
83 private Error(int code, Error parent, Category category) { in Error() argument
84 this(code, INHERIT, parent, category, null, null); in Error()
87 private Error(int code, Severity level, Error parent, Category category, in Error() argument
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/
Dplugin.proto9 // * Redistributions of source code must retain the above copyright
57 // code generator should generate code only for these files. Each file's
80 // Error message. If non-empty, code generation failed. The plugin process
81 // should exit with status code zero even if it reports an error in this way.
84 // code generator from generating correct code. Errors which indicate a
87 // exiting with a non-zero status code.
107 // point. This feature allows a code generator to extend the output
108 // produced by another code generator. The original generator may provide
118 // The double-@ is intended to make it unlikely that the generated code
121 // For example, the C++ code generator places the following line in the
[all …]
/tools/dexter/dexter/
Dexperimental.cc35 if (ir_method->code != nullptr) { in FullRewrite()
51 if (ir_method->code == nullptr) { in StressWrapInvoke()
141 if (ir_method->code == nullptr) { in StressEntryHook()
168 auto regs = ir_method->code->registers; in StressEntryHook()
169 auto args_count = ir_method->code->ins_count; in StressEntryHook()
200 if (ir_method->code == nullptr) { in StressExitHook()
323 if (ir_method->code != nullptr) { in StressScratchRegs()
357 if (ir_method->code == nullptr) { in CodeCoverage()
477 if (ir_method->code != nullptr) { in RegsHistogram()
478 const int regs = ir_method->code->registers; in RegsHistogram()
[all …]
/tools/metalava/
DREADME.md12 more importantly to hide code intended to be implementation only, driven by
40 metalava extracts metadata from source code to generate artifacts such as the
143 not just nullness annotations found in the source code and annotations merged
146 compiler treat errors in the user code as warnings instead of errors.)
150 of the source code). This means that the documentation tool itself does not
151 need to be able to figure out which parts of the source code is included in
166 * Consistent stubs: In doclava1, the code which iterated over the API and
174 extraction code in doclava1 missed, but accidentally included in the SDK
183 Some of these take advantage of looking at the source code which wasn't
273 just one example, the code which generated documentation for typedef constants
[all …]
DFORMAT.md269 you have this Kotlin code:
307 from Java, but Kotlin client code can now reference the parameter.
309 Therefore, the following Java code (not signature code) will also produce
332 For Kotlin code, the default parameter values are extracted automatically, and
397 and Kotlin, wihch more closely mirrors what is done in the source code.
443 case of Kotlin code, a special JetBrains nullness annotation), or the one that
Dgradlew.bat76 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 rem the _cmd.exe /c_ return code!
/tools/external/fat32lib/
DNOTICE19 …ftware (and charge for this service if you wish); that you receive source code or can get it if yo…
23 … must make sure that they, too, receive or can get the source code. If you link other code with th…
33 …he Lesser General Public License permits more lax criteria for linking other code with the library.
43 …d on the library" and a "work that uses the library". The former contains code derived from the li…
53 …ce code" for a work means the preferred form of the work for making modifications to it. For a lib…
57 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive…
79 This option is useful when you wish to copy part of the code of the Library into a program that is …
81code or executable form under the terms of Sections 1 and 2 above provided that you accompany it w…
83code is made by offering access to copy from a designated place, then offering equivalent access t…
89 …s part of the Library, the object code for the work may be a derivative work of the Library even t…
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/
Ddescriptor.proto9 // * Redistributions of source code must retain the above copyright
77 // This field contains optional information about the original source code.
235 // just annotations which may cause code to be generated slightly differently
236 // or may contain hints for code that manipulates protocol messages.
280 // If set true, then the Java code generator will generate a separate .java
288 // If set true, then the Java code generator will generate equals() and
300 // If set true, then the Java2 code generator will generate code that
309 // Generated classes can be optimized for speed or code size.
311 SPEED = 1; // Generate complete code for parsing, serialization,
314 LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
[all …]
/tools/repohooks/
DREADME.md6 perform various checks automatically such as running linters on your code.
151 * `cpplint`: Run through the cpplint tool (for C++ code).
152 * `gofmt`: Run Go code through `gofmt`.
153 * `google_java_format`: Run Java code through
155 * `jsonlint`: Verify JSON code is sane.
156 * `pylint`: Run Python code through `pylint`.
157 * `xmllint`: Run XML code through `xmllint`.
159 code. Refer to go/test-mapping for more details.
231 If the return code of a hook is 77, then it is assumed to be a warning. The
249 * `clang-check`: Runs static analyzers against code.
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_client.py52 def __init__(self, message, code=-1, data=None, rpc_name=''): argument
55 self.code = code
64 return 'Error in RPC %s %s:%s:%s' % (self.rpc_name, self.code,
67 return 'Error in RPC %s %s:%s' % (self.rpc_name, self.code,
/tools/metalava/src/main/java/com/android/tools/metalava/
DDocAnalyzer.kt710 val code = api ?: 1 in <lambda>() constant
711 addApiLevelDocumentation(code, pkg) in <lambda>()
723 val code: String = if (currentCodeName != null && level > options.currentApiLevel) { in <lambda>() constant
731 … val description = if (code == currentCodeName) currentCodeName else describeApiLevel(level) in <lambda>()
739 item.appendDocumentation(code, "@apiSince") in <lambda>()
756 val code: String = if (currentCodeName != null && level > options.currentApiLevel) { in <lambda>() constant
766 … "<p class=\"caution\"><strong>This class was deprecated in API level $code.</strong></p>" in <lambda>()
771 item.appendDocumentation(code, "@deprecatedSince") in <lambda>()
DBaseline.kt227 map.keys.asSequence().sortedBy { it.name ?: it.code.toString() }.forEach { error -> in <lambda>()
231 sb.append(error.name ?: error.code.toString()).append(": ") in <lambda>()
263 list.sortWith(compareBy({ -it.value }, { it.key.name ?: it.key.code.toString() })) in <lambda>()
DReporter.kt328 … id?.let { sb.append(" [").append(if (it.name != null) it.name else it.code).append("]") } in toString()
343 id?.let { sb.append(if (it.name != null) it.name else it.code).append(": ") } in toString()
364 sb.append(it.code) in toString()
/tools/acloud/internal/lib/
Dbase_cloud_client.py117 if exception.code in retry_http_codes:
121 exception.code, retry_http_codes, str(exception))
145 if exception.code == errors.HTTP_NOT_FOUND_CODE:
147 exception.code, str(exception))
Dandroid_build_client.py126 if e.code == 503:
131 raise errors.HttpError(e.code, message=error_msg)
/tools/acloud/
Derrors.py38 def __init__(self, code, message): argument
39 self.code = code
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCompressionMethod.java56 static CompressionMethod fromCode(long code) { in fromCode() argument
58 if (method.methodCode == code) { in fromCode()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java98 protected void setExitCode(ExitCode code, Throwable stack) { in setUp()
165 protected void setExitCode(ExitCode code, Throwable stack) { in testParentSandboxInvocation_sharding()
265 protected void setExitCode(ExitCode code, Throwable stack) { in testInvocation_sharding_notTests()
328 protected void setExitCode(ExitCode code, Throwable stack) { in testInvocation_preInvocationFailing()
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/
DRangeApMiscTest.py87 for code in stat['status_codes']:
89 code == rconsts.
/tools/metalava/stub-annotations/
DREADME.md10 to automatically mark code as recently annotated
12 in the source code; the recent-ness is computed at
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigDump.java146 int code = configDump.parse(mainArgs); in main() local
147 System.exit(code); in main()
/tools/trebuchet/
Dgradlew.bat76 rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 rem the _cmd.exe /c_ return code!

1234