Home
last modified time | relevance | path

Searched refs:longArray (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/packages/ScriptExecutor/src/
DJniUtils.cpp138 jlongArray longArray = static_cast<jlongArray>(value.get()); in pushBundleToLuaTable() local
139 const auto kLength = env->GetArrayLength(longArray); in pushBundleToLuaTable()
144 jlong* rawLongArray = env->GetLongArrayElements(longArray, nullptr); in pushBundleToLuaTable()
153 env->ReleaseLongArrayElements(longArray, rawLongArray, JNI_ABORT); in pushBundleToLuaTable()
285 std::vector<int64_t> longArray; in convertLuaTableToBundle() local
316 longArray.push_back(lua_tointeger(lua, /* index = */ -1)); in convertLuaTableToBundle()
340 if (longArray.size() > 0) { in convertLuaTableToBundle()
341 bundleInsertionResult = bundleWrapper->putLongArray(key, longArray); in convertLuaTableToBundle()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/statsconverters/
DAbstractAtomConverter.java205 long[] longArray = new long[objList.size()]; in setPersistableBundleArrayField() local
207 longArray[i] = (Long) objList.get(i); in setPersistableBundleArrayField()
209 bundle.putLongArray(name, longArray); in setPersistableBundleArrayField()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java341 long[] longArray = null; in testCloneOrNull() local
342 assertThat(ArrayUtils.cloneOrNull(longArray)).isNull(); in testCloneOrNull()
344 longArray = new long[]{1L}; in testCloneOrNull()
345 assertThat(ArrayUtils.cloneOrNull(longArray)).isEqualTo(longArray); in testCloneOrNull()
/packages/modules/StatsD/statsd/tests/e2e/
DEventMetric_e2e_test.cpp125 vector<int64_t> longArray = {1000L, 10002L}; in TEST_F() local
136 bucketStartTimeNs + 10 * NS_PER_SEC, intArray, longArray, floatArray, stringArray, in TEST_F()
169 EXPECT_THAT(atom.repeated_long_field(), ElementsAreArray(longArray)); in TEST_F()
DGaugeMetric_e2e_push_test.cpp339 vector<int64_t> longArray = {1000L, 10002L}; in TEST_F() local
350 bucketStartTimeNs + 10 * NS_PER_SEC, intArray, longArray, floatArray, stringArray, in TEST_F()
DCountMetric_e2e_test.cpp991 vector<int64_t> longArray = {1000L, 10002L}; in TEST() local
1002 bucketStartTimeNs + 10 * NS_PER_SEC, intArray, longArray, floatArray, stringArray, in TEST()
DDurationMetric_e2e_test.cpp1597 vector<int64_t> longArray = {1000L, 10002L}; in TEST() local
/packages/services/Car/packages/ScriptExecutor/tests/functional/src/com/android/car/scriptexecutortest/functional/
DScriptExecutorFunctionalTest.java458 long[] longArray = new long[n]; in invokeScript_noLuaBufferOverflowForLargeInputArrays() local
460 longArray[i] = i; in invokeScript_noLuaBufferOverflowForLargeInputArrays()
462 previousState.putLongArray("long_array", longArray); in invokeScript_noLuaBufferOverflowForLargeInputArrays()
464 (longArray[0] + longArray[n - 1]) * n / 2; // sum of an arithmetic sequence. in invokeScript_noLuaBufferOverflowForLargeInputArrays()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java552 Long[] longArray = new Long[size]; in get() local
554 longArray[i] = propValue.getInt64Value(i); in get()
556 return (T) longArray; in get()
573 long[] longArray = new long[size]; in get() local
575 longArray[i] = propValue.getInt64Value(i); in get()
577 return (T) longArray; in get()
/packages/modules/StatsD/statsd/tests/
DFieldValue_test.cpp598 vector<int64_t> longArray = {1000L, 10002L}; in TEST() local
609 12345, intArray, longArray, floatArray, stringArray, boolArray, boolArrayLength, in TEST()
631 EXPECT_THAT(atom.repeated_long_field(), ElementsAreArray(longArray)); in TEST()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DStatsPublisher.java313 long[] longArray = (long[]) array; in isBundleLargeData() local
314 bytes += longArray.length * Long.BYTES; in isBundleLargeData()
/packages/modules/Media/apex/framework/java/android/media/
DMediaParser.java2068 private static ByteBuffer toByteBuffer(long[] longArray) { in toByteBuffer() argument
2069 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(longArray.length * Long.BYTES); in toByteBuffer()
2070 for (long element : longArray) { in toByteBuffer()