Home
last modified time | relevance | path

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

123456

/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/generic/goldfish-opengl/android-emu/aemu/base/threads/
DAndroidThreadStore.cpp116 TlsSlotArray* array = getArray(); in getValue() local
117 void* ret = (*array)[key]; in getValue()
130 TlsSlotArray* array = getArray(); in setValue() local
131 (*array)[key] = value; in setValue()
138 TlsSlotArray* array = in leaveCurrentThread() local
140 if (!array) { in leaveCurrentThread()
146 void* value = (*array)[n]; in leaveCurrentThread()
150 (*array)[n] = NULL; in leaveCurrentThread()
165 ::free(array); in leaveCurrentThread()
174 TlsSlotArray* array = in getArray() local
[all …]
/device/google/sunfish/json-c/
Darraylist.c35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new()
47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free()
48 free(arr->array); in array_list_free()
56 return arr->array[i]; in array_list_get_idx()
68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal()
69 arr->array = (void**)t; in array_list_expand_internal()
70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
/device/google/coral/json-c/
Darraylist.c35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new()
47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free()
48 free(arr->array); in array_list_free()
56 return arr->array[i]; in array_list_get_idx()
68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal()
69 arr->array = (void**)t; in array_list_expand_internal()
70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
/device/google/redbull/json-c/
Darraylist.c35 if(!(arr->array = (void**)calloc(sizeof(void*), arr->size))) { in array_list_new()
47 if(arr->array[i]) arr->free_fn(arr->array[i]); in array_list_free()
48 free(arr->array); in array_list_free()
56 return arr->array[i]; in array_list_get_idx()
68 if(!(t = realloc(arr->array, new_size*sizeof(void*)))) return -1; in array_list_expand_internal()
69 arr->array = (void**)t; in array_list_expand_internal()
70 (void)memset(arr->array + arr->size, 0, (new_size-arr->size)*sizeof(void*)); in array_list_expand_internal()
79 if(arr->array[idx]) arr->free_fn(arr->array[idx]); in array_list_put_idx()
80 arr->array[idx] = data; in array_list_put_idx()
94 qsort(arr->array, arr->length, sizeof(arr->array[0]), in array_list_sort()
/device/google/felix/vibrator/cs40l26/tests/
Dtest-hwcal.cpp33 static constexpr std::array<uint32_t, 2> V_TICK_DEFAULT = {1, 100};
34 static constexpr std::array<uint32_t, 2> V_CLICK_DEFAULT = {1, 100};
35 static constexpr std::array<uint32_t, 2> V_LONG_DEFAULT = {1, 100};
46 template <typename T, typename std::array<T, 0>::size_type N>
47 static void pack(std::ostream &stream, const std::array<T, N> &value, std::string lpad, in pack()
137 std::array<uint32_t, 2> expect; in TEST_F()
138 std::array<uint32_t, 2> actual; in TEST_F()
181 std::array<uint32_t, 2> expect = V_TICK_DEFAULT; in TEST_F()
182 std::array<uint32_t, 2> actual; in TEST_F()
211 std::array<uint32_t, 2> expect = V_TICK_DEFAULT; in TEST_F()
[all …]
Dmocks.h71 MOCK_METHOD1(getTickVolLevels, bool(std::array<uint32_t, 2> *value));
72 MOCK_METHOD1(getClickVolLevels, bool(std::array<uint32_t, 2> *value));
73 MOCK_METHOD1(getLongVolLevels, bool(std::array<uint32_t, 2> *value));
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/
DMultiDisplayService.java195 private void dumpArray(PrintWriter writer, Object[] array, String name) { in dumpArray() argument
196 if (array != null) { in dumpArray()
197 int size = array.length; in dumpArray()
200 writer.printf(" %d: %s\n", i, array[i]); in dumpArray()
363 int[] array = {0, 0, 0, 0, 0, 0}; in run() local
364 if (!nativeReadPipe(array)) { in run()
367 Log.v(TAG, "run(): array= " + Arrays.toString(array)); in run()
368 switch (array[0]) { in run()
371 Log.d(TAG, "received " + array[j]); in run()
373 int i = array[1]; in run()
[all …]
/device/linaro/dragonboard/qcom/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()
/device/generic/vulkan-cereal/stream-servers/gl/OpenGLESDispatch/
Dgles2_extensions_dispatch_logging_wrappers.impl34 void glBindVertexArrayOES_dispatchLoggingWrapper(GLuint array) {
35 DISPATCH_DEBUG_LOG("glBindVertexArrayOES(array:%d)", array);
36 GLDispatch::glBindVertexArrayOES_underlying(array);
49 GLboolean glIsVertexArrayOES_dispatchLoggingWrapper(GLuint array) {
50 DISPATCH_DEBUG_LOG("glIsVertexArrayOES(array:%d)", array);
51 return GLDispatch::glIsVertexArrayOES_underlying(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/redfin/vibrator/drv2624/
DVibrator.h96 virtual bool getEffectCoeffs(std::array<float, 4> *value) = 0;
98 virtual bool getEffectTargetG(std::array<float, 5> *value) = 0;
102 virtual bool getSteadyCoeffs(std::array<float, 4> *value) = 0;
104 virtual bool getSteadyTargetG(std::array<float, 3> *value) = 0;
209 std::array<uint32_t, 5> mEffectTargetOdClamp;
210 std::array<uint32_t, 3> mSteadyTargetOdClamp;
DVibrator.cpp62 static std::array<float, 5> EFFECT_TARGET_G = {0.275, 0.55, 0.6, 0.9, 1.12};
63 static std::array<float, 3> STEADY_TARGET_G = {2.15, 1.145, 1.3};
158 static float targetGToVlevelsUnderLinearEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderLinearEquation()
170 static float targetGToVlevelsUnderCubicEquation(std::array<float, 4> inputCoeffs, float targetG) { in targetGToVlevelsUnderCubicEquation()
253 std::array<float, 4> inputCoeffs, float vLevel) { in vLevelsToTargetGUnderCubicEquation()
291 std::array<float, 4> effectCoeffs = {0.0f}; in Vibrator()
292 std::array<float, 4> steadyCoeffs = {0.0f}; in Vibrator()
310 std::array<float, 5> externalEffectTargetG = {0.0f}; in Vibrator()
311 std::array<float, 3> externalSteadyTargetG = {0.0f}; in Vibrator()
DHardware.h129 bool getEffectCoeffs(std::array<float, 4> *value) override { in getEffectCoeffs()
135 bool getEffectTargetG(std::array<float, 5> *value) override { in getEffectTargetG()
147 bool getSteadyCoeffs(std::array<float, 4> *value) override { in getSteadyCoeffs()
153 bool getSteadyTargetG(std::array<float, 3> *value) override { in getSteadyTargetG()
/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/felix/vibrator/cs40l26/
DVibrator.h123 virtual bool getTickVolLevels(std::array<uint32_t, 2> *value) = 0;
124 virtual bool getClickVolLevels(std::array<uint32_t, 2> *value) = 0;
125 virtual bool getLongVolLevels(std::array<uint32_t, 2> *value) = 0;
215 std::array<uint32_t, 2> mTickEffectVol;
216 std::array<uint32_t, 2> mClickEffectVol;
217 std::array<uint32_t, 2> mLongEffectVol;
DHardware.h292 static constexpr std::array<uint32_t, 2> V_TICK_DEFAULT = {1, 100};
293 static constexpr std::array<uint32_t, 2> V_CLICK_DEFAULT = {1, 100};
294 static constexpr std::array<uint32_t, 2> V_LONG_DEFAULT = {1, 100};
340 bool getTickVolLevels(std::array<uint32_t, 2> *value) override { in getTickVolLevels()
347 bool getClickVolLevels(std::array<uint32_t, 2> *value) override { in getClickVolLevels()
354 bool getLongVolLevels(std::array<uint32_t, 2> *value) override { in getLongVolLevels()
/device/google/cuttlefish/host/libs/wmediumd_controller/
Dwmediumd_api_protocol.h112 std::array<uint8_t, 6> node1_mac_;
113 std::array<uint8_t, 6> node2_mac_;
219 std::array<uint8_t, 6> mac_;
235 std::array<uint8_t, 6> mac_;
251 std::array<uint8_t, 6> mac_;
/device/generic/vulkan-cereal/include/OpenGLESDispatch/
Dgles2_extensions_functions.h17 X(void, glBindVertexArrayOES, (GLuint array), (array)) \
20 X(GLboolean, glIsVertexArrayOES, (GLuint array), (array)) \
/device/generic/goldfish-opengl/android-emu/aemu/base/containers/
DSmallVector.h294 offsetof(Data, array) == 0, in SmallFixedVector()
337 this->mBegin = mData.array; in SmallFixedVector()
392 void init_inplace() { this->init(mData.array, mData.array, kSmallSize); } in init_inplace()
398 alignas(size_type) T array[kSmallSize]; member
/device/google/barbet/vibrator/drv2624/
DVibrator.h96 virtual bool getEffectCoeffs(std::array<float, 4> *value) = 0;
100 virtual bool getSteadyCoeffs(std::array<float, 4> *value) = 0;
203 std::array<uint32_t, 5> mEffectTargetOdClamp;
204 std::array<uint32_t, 3> mSteadyTargetOdClamp;
/device/google/bramble/vibrator/drv2624/
DVibrator.h96 virtual bool getEffectCoeffs(std::array<float, 4> *value) = 0;
100 virtual bool getSteadyCoeffs(std::array<float, 4> *value) = 0;
203 std::array<uint32_t, 5> mEffectTargetOdClamp;
204 std::array<uint32_t, 3> mSteadyTargetOdClamp;
/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()
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/
DBluetoothUtils.java66 context.getResources().getStringArray(R.array.known_bluetooth_device_labels))); in setKnownRemoteLabels()
72 R.array.known_remote_labels))); in setKnownRemoteLabels()
162 R.array.official_bt_device_manufacturer_names); in isOfficialDevice()
168 R.array.official_bt_device_model_names); in isOfficialDevice()

123456