Home
last modified time | relevance | path

Searched refs:array (Results 1 – 25 of 56) sorted by relevance

123

/device/google/cuttlefish/host/frontend/webrtc/html_client/js/
Dadb.js29 let array = new Uint8Array(); variable
31 function setU32LE(array, offset, x) { argument
32 array[offset] = x & 0xff;
33 array[offset + 1] = (x >> 8) & 0xff;
34 array[offset + 2] = (x >> 16) & 0xff;
35 array[offset + 3] = x >> 24;
38 function getU32LE(array, offset) { argument
39 let x = array[offset] | (array[offset + 1] << 8) | (array[offset + 2] << 16) |
40 (array[offset + 3] << 24);
45 function computeChecksum(array) { argument
[all …]
Drootcanal.js33 function rootCanalAddU8(array, pos, val) { argument
34 array[pos] = val & 0xff;
39 function rootCanalAddPayload(array, pos, payload) { argument
40 array.set(payload, pos);
45 function rootCanalAddString(array, pos, val) { argument
48 curPos = rootCanalAddU8(array, curPos, val.length);
50 return rootCanalAddPayload(array, curPos, utf8Encoder.encode(val));
56 let array = new Uint8Array(arrayBuffer);
59 pos = rootCanalAddString(array, pos, command);
60 pos = rootCanalAddU8(array, pos, args.length);
[all …]
/device/google/atv/MdnsOffloadManagerService/tests/src/com/android/tv/mdnsoffloadmanager/
DMdnsPacketParserTest.java35 byte[] array = new byte[]{'x', 'x', 'x', 3, 'a', 't', 'v', 0}; in testExtractFullNameFromSingleLabel()
36 String fullName = MdnsPacketParser.extractFullName(array, 3); in testExtractFullNameFromSingleLabel()
42 byte[] array = new byte[]{3, 'i', 's', 'o', 0, (byte) 0xC0, 0x00}; in testExtractFullNameFromPointer()
43 String fullName = MdnsPacketParser.extractFullName(array, 5); in testExtractFullNameFromPointer()
49 byte[] array = new byte[]{'x', 'x', 'x', 3, 'a', 't', 'v', 3, 'g', 't', 'v', 0}; in testExtractFullNameFromMultiLabel()
50 String fullName = MdnsPacketParser.extractFullName(array, 3); in testExtractFullNameFromMultiLabel()
56 byte[] array = new byte[]{3, 'i', 's', 'o', 0,// in testExtractFullNameFromLabelPointer()
58 String fullName = MdnsPacketParser.extractFullName(array, 9); in testExtractFullNameFromLabelPointer()
64 byte[] array = new byte[]{3, 'i', 's', 'o', 0,// in testExtractFullNameFromLabelDualPointerLongOffset()
68 byte[] longArray = Arrays.copyOf(array, 120); in testExtractFullNameFromLabelDualPointerLongOffset()
[all …]
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/
DMultiDisplayService.java204 private void dumpArray(PrintWriter writer, Object[] array, String name) { in dumpArray() argument
205 if (array != null) { in dumpArray()
206 int size = array.length; in dumpArray()
209 writer.printf(" %d: %s\n", i, array[i]); in dumpArray()
374 int[] array = {0, 0, 0, 0, 0, 0}; in run() local
375 if (!nativeReadPipe(array)) { in run()
380 Log.d(TAG, "run(): array= " + Arrays.toString(array)); in run()
381 switch (array[0]) { in run()
384 Log.d(TAG, "received " + array[j]); in run()
386 int i = array[1]; in run()
[all …]
/device/linaro/dragonboard/shared/utils/pd-mapper/
Djson.c46 static int json_parse_array(struct json_value *array);
184 static int json_parse_array(struct json_value *array) in json_parse_array() argument
197 array->type = JSON_TYPE_ARRAY; in json_parse_array()
209 if (!array->u.value) in json_parse_array()
210 array->u.value = value; in json_parse_array()
375 int json_count_children(struct json_value *array) in json_count_children() argument
380 if (!array || array->type != JSON_TYPE_ARRAY) in json_count_children()
383 for (it = array->u.value; it; it = it->next) in json_count_children()
Djson.h61 int json_count_children(struct json_value *array);
/device/google/contexthub/util/nanotool/
Dandroidcontexthub.cpp68 sp<JSONArray> array; in CopyInt32Array() local
69 if (json->getArray(key, &array)) { in CopyInt32Array()
70 for (size_t i = 0; i < array->size(); i++) { in CopyInt32Array()
72 array->getInt32(i, &val); in CopyInt32Array()
83 sp<JSONArray> array; in CopyFloatArray() local
84 if (json->getArray(key, &array)) { in CopyFloatArray()
85 for (size_t i = 0; i < array->size(); i++) { in CopyFloatArray()
87 array->getFloat(i, &val); in CopyFloatArray()
/device/google/contexthub/util/common/
DJSONObject.cpp62 sp<JSONArray> array = new JSONArray; in Parse() local
86 array->addValue(val); in Parse()
105 out->setArray(array); in Parse()
495 void JSONValue::setArray(const sp<JSONArray> &array) { in setArray() argument
498 mValue.mObjectOrArray = array.get(); in setArray()
639 sp<JSONArray> array; in Parse() local
640 if (value.getArray(&array)) { in Parse()
641 return array; in Parse()
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/
DBluetoothUtils.java75 context.getResources().getStringArray(R.array.known_bluetooth_device_labels))); in setRemoteLabels()
81 R.array.known_remote_labels))); in setRemoteLabels()
85 context.getResources().getStringArray(R.array.official_bt_device_labels))); in setRemoteLabels()
88 context.getResources().getStringArray(R.array.bt_device_service_updatable_labels))); in setRemoteLabels()
177 R.array.official_bt_device_manufacturer_names); in isOfficialDevice()
183 R.array.official_bt_device_model_names); in isOfficialDevice()
/device/google/cuttlefish/guest/hals/identity/common/
DWritableIdentityCredential.cpp411 cppbor::Array array; in finishAddingEntries() local
412 array.add(docType_); in finishAddingEntries()
413 array.add(testCredential_); in finishAddingEntries()
414 array.add(encryptedCredentialKeys.value()); in finishAddingEntries()
415 vector<uint8_t> credentialData = array.encode(); in finishAddingEntries()
DIdentityCredential.cpp104 cppbor::Array array = {"ProofOfDeletion", docType_, testCredential_}; in deleteCredentialCommon() local
106 array = {"ProofOfDeletion", docType_, challenge, testCredential_}; in deleteCredentialCommon()
109 vector<uint8_t> proofOfDeletionCbor = array.encode(); in deleteCredentialCommon()
141 cppbor::Array array; in proveOwnership() local
142 array = {"ProofOfOwnership", docType_, challenge, testCredential_}; in proveOwnership()
143 vector<uint8_t> proofOfOwnershipCbor = array.encode(); in proveOwnership()
/device/google/cuttlefish/common/libs/utils/
Djson.h74 const Json::Value& array, const std::vector<std::string>& selectors) { in GetArrayValues() argument
76 for (const auto& element : array) { in GetArrayValues()
/device/google/cuttlefish/guest/commands/setup_wifi/
Dmain.cpp38 static std::array<unsigned char, 6> prefix_to_mac( in prefix_to_mac()
40 std::array<unsigned char, 6> mac; in prefix_to_mac()
/device/google/cuttlefish/guest/hals/keymint/remote/
Dremote_keymint_device.h86 std::array<uint8_t, 16>* challenge) override;
87 ScopedAStatus getRootOfTrust(const std::array<uint8_t, 16>& challenge,
/device/generic/goldfish-opengl/system/hwc3/
DLayer.h86 const std::optional<std::array<float, 16>>& getColorTransform() const;
120 std::optional<std::array<float, 16>> mColorTransform;
DDisplay.h143 std::array<float, 16> getColorTransform() const { return *mColorTransform; } in getColorTransform()
188 std::optional<std::array<float, 16>> mColorTransform;
/device/google/atv/MdnsOffloadManagerService/src/com/android/tv/mdnsoffloadmanager/
DMdnsPacketParser.java53 public static String extractFullName(@NonNull byte[] array, int offset) { in extractFullName() argument
54 MdnsPacketParser parser = new MdnsPacketParser(array); in extractFullName()
DPriorityListManager.java16 public static final int PRIORITIZED_QNAMES_ID = R.array.config_mdnsOffloadPriorityQnames;
/device/google/cuttlefish/host/commands/assemble_cvd/
Dkernel_module_parser.cc29 std::array<char, SIGNATURE_FOOTER.size()> buf{}; in IsKernelModuleSigned()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp336 sp<JSONArray> array; in getCalibrationInt32() local
340 if (!settings->getArray(key, &array)) { in getCalibrationInt32()
344 if (!array->getInt32(i, &out[i])) { in getCalibrationInt32()
354 sp<JSONArray> array; in getCalibrationFloat() local
358 if (!settings->getArray(key, &array)) { in getCalibrationFloat()
362 if (!array->getFloat(i, &out[i])) { in getCalibrationFloat()
373 sp<JSONArray> array; in getInt32Setting() local
374 if (settings->getArray(key, &array)) { in getInt32Setting()
375 ret.resize(array->size()); in getInt32Setting()
376 for (size_t i = 0; i < array->size(); ++i) { in getInt32Setting()
[all …]
/device/google/trout/hal/dumpstate/1.1/
DServiceDescriptor.cpp45 std::array<char, 65536> buffer; in GetOutput()
/device/google/cuttlefish/host/commands/secure_env/
Dtpm_keymaster_enforcement.h57 keymaster::KmErrorOr<std::array<uint8_t, 32>> ComputeHmac(
/device/google/trout/hal/audiocontrol/aidl/1.0/agl_build/
DCMakeLists.txt28 target_compile_options(audiocontrol_protobuf_gen PRIVATE ${_trout_AUDIOFOCUS_CXX_FLAGS} -Wno-array-…
/device/google/cuttlefish/common/libs/net/
Dnetlink_request.h65 void AddMacAddress(const std::array<unsigned char, 6>& address);
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/remote/
DDfuProvider.java160 Arrays.asList(mContext.getResources().getStringArray(R.array.dfu_binary_md5s)))); in DfuProvider()
163 mContext.getResources().getStringArray(R.array.manual_reconnection_remote_versions); in DfuProvider()

123