Home
last modified time | relevance | path

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

1234567

/tools/asuite/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 VTS10-TradeFed Code](#working-on-the-vts10-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/asuite/atest/bazel/runner/src/main/protobuf/
Dfailure_details.proto17 // than is conveyed with an exit code, to help those clients decide how to
175 // Unknown interrupt. Avoid using this code, instead use INTERRUPTED.
204 Code code = 1;
225 // TODO(b/138456686): this code should be deprecated when SpawnResult is
230 Code code = 1;
238 // non-zero exit code returned by the spawned process to the OS.
241 // exit code.
252 Code code = 1;
281 Code code = 1;
298 Code code = 1;
[all …]
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/
DDiscoveryExitCode.java27 private final int code; field in DiscoveryExitCode
29 private DiscoveryExitCode(int code) { in DiscoveryExitCode() argument
30 this.code = code; in DiscoveryExitCode()
34 return code; in exitCode()
/tools/tradefederation/core/common_util/com/android/tradefed/result/error/
DTestErrorIdentifier.java41 private final long code; field in TestErrorIdentifier
44 TestErrorIdentifier(int code, FailureStatus status) { in TestErrorIdentifier() argument
45 this.code = code; in TestErrorIdentifier()
50 public long code() { in code() method in TestErrorIdentifier
51 return code; in code()
DDeviceErrorIdentifier.java67 private final long code; field in DeviceErrorIdentifier
70 DeviceErrorIdentifier(int code, FailureStatus status) { in DeviceErrorIdentifier() argument
71 this.code = code; in DeviceErrorIdentifier()
76 public long code() { in code() method in DeviceErrorIdentifier
77 return code; in code()
DInfraErrorIdentifier.java137 private final long code; field in InfraErrorIdentifier
140 InfraErrorIdentifier(int code, FailureStatus status) { in InfraErrorIdentifier() argument
141 this.code = code; in InfraErrorIdentifier()
146 public long code() { in code() method in InfraErrorIdentifier
147 return code; in code()
/tools/security/fuzzing/orphans/libffi/
Dfuzz_ffi.cc160 void* code; in runMainFunctions() local
163 ffi_closure_alloc(sizeof(ffi_closure), &code)); in runMainFunctions()
172 ffi_prep_closure_loc(pcl, cif, closure_fn, data_vector.data(), code); in runMainFunctions()
191 void* code; in runRawFunctions() local
194 ffi_closure_alloc(sizeof(ffi_raw_closure), &code)); in runRawFunctions()
203 code); in runRawFunctions()
229 void* code; in runJavaFunctions() local
232 ffi_closure_alloc(sizeof(ffi_java_raw_closure), &code)); in runJavaFunctions()
241 code); in runJavaFunctions()
/tools/dexter/slicer/
Dinstrumentation.cc155 auto regs = ir_method->code->registers; in Apply()
156 auto args_count = ir_method->code->ins_count; in Apply()
175 if (ir_method->code->ins_count == 0) { in GenerateShiftParamsCode()
189 const dex::u4 regs = ir_method->code->registers; in GenerateShiftParamsCode()
190 const dex::u4 ins_count = ir_method->code->ins_count; in GenerateShiftParamsCode()
232 auto non_param_regs = ir_method->code->registers - ir_method->code->ins_count; in InjectArrayParamsHook()
239 code_ir->ir_method->code->registers += regs_count - non_param_regs; in InjectArrayParamsHook()
282 dex::u4 current_reg = ir_method->code->registers - ir_method->code->ins_count; in InjectArrayParamsHook()
436 bool needsScratchReg = ir_method->code->registers < reg_count + 1; in Apply()
659 16 - static_cast<int>(code_ir->ir_method->code->registers)); in RegsRenumbering()
[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/carrier_settings/bin/
DREADME.md1 To run this tool in Android 10 code base, the python tools need to be prebuilt
2 on Android 11 code base and dropped to this directory. This is to workaround
7 1. From Android 11 code base, build the python tools:
/tools/dexter/dexter/
Dexperimental.cc36 if (ir_method->code != nullptr) { in FullRewrite()
52 if (ir_method->code == nullptr) { in StressWrapInvoke()
142 if (ir_method->code == nullptr) { in StressEntryHook()
169 auto regs = ir_method->code->registers; in StressEntryHook()
170 auto args_count = ir_method->code->ins_count; in StressEntryHook()
201 if (ir_method->code == nullptr) { in StressExitHook()
327 if (ir_method->code != nullptr) { in StressScratchRegs()
361 if (ir_method->code == nullptr) { in CodeCoverage()
481 if (ir_method->code != nullptr) { in RegsHistogram()
482 const int regs = ir_method->code->registers; in RegsHistogram()
[all …]
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DFieldItem.kt216 val intValue = value.code in <lambda>()
252 else -> String.format("\\u%04x", c.code) in javaEscapeString()
332 escaped = (escaped.code shl 4).toChar() in javaUnescapeString()
335 in '0'..'9' -> (escaped.code or (c - '0')).toChar() in javaUnescapeString()
336 in 'a'..'f' -> (escaped.code or (10 + (c - 'a'))).toChar() in javaUnescapeString()
337 in 'A'..'F' -> (escaped.code or (10 + (c - 'A'))).toChar() in javaUnescapeString()
/tools/acloud/
Derrors.py42 def __init__(self, code, message): argument
43 self.code = code
/tools/asuite/atest/bazel/reporter/src/com/android/tradefed/result/
DBazelExitCodeResultReporter.java88 ExitCode code = computeExitCode(); in writeExitCodeFile() local
94 code); in writeExitCodeFile()
99 Files.write(path, String.valueOf(code.value).getBytes()); in writeExitCodeFile()
/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/
DREADME.md20 3. Review the code review guidance at go/tf-guidelines and go/tradefed-code-reviews
21 4. GWSQ should add a couple of people from the team to review your code and give feedback.
/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/acloud/internal/lib/
Dbase_cloud_client.py119 if exception.code in retry_http_codes:
122 exception.code, retry_http_codes, str(exception))
146 if exception.code == errors.HTTP_NOT_FOUND_CODE:
148 exception.code, str(exception))
/tools/tradefederation/core/util_apps/TelephonyUtil/src/android/telephony/utility/
DSendToInstrumentation.java61 private static void sendStatus(int code, Instrumentation instrumentation, Bundle bundle) { in sendStatus() argument
62 instrumentation.sendStatus(code, bundle); in sendStatus()
/tools/metalava/
DREADME.md12 more importantly to hide code intended to be implementation only, driven by
25 To download the code and any dependencies required for building, see [DOWNLOADING.md](DOWNLOADING.m…
61 metalava extracts metadata from source code to generate artifacts such as the
168 not just nullness annotations found in the source code and annotations merged
171 compiler treat errors in the user code as warnings instead of errors.)
175 of the source code). This means that the documentation tool itself does not
176 need to be able to figure out which parts of the source code is included in
191 * Consistent stubs: In doclava1, the code which iterated over the API and
199 extraction code in doclava1 missed, but accidentally included in the SDK
208 Some of these take advantage of looking at the source code which wasn't
[all …]
/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/carrier_settings/
DREADME13 The commands above build the tool from source code and run them.
15 This tool is best supported on Android 11 code base. See additional steps
/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/test/connectivity/acts_tests/tests/google/wifi/rtt/functional/
DRangeApMiscTest.py84 for code in stat['status_codes']:
86 code == rconsts.
/tools/repohooks/
DREADME.md4 perform various checks automatically such as running linters on your code.
183 code. Refer to go/test-mapping for more details.
199 * `cpplint`: Run through the cpplint tool (for C++ code).
200 * `gofmt`: Run Go code through `gofmt`.
201 * `google_java_format`: Run Java code through
205 * `jsonlint`: Verify JSON code is sane.
206 * `ktfmt`: Run Kotlin code through `ktfmt`. Supports an additional option
211 * `pylint3`: Run Python code through `pylint` using Python 3.
212 * `rustfmt`: Run Rust code through `rustfmt`.
213 * `xmllint`: Run XML code through `xmllint`.
[all …]

1234567