/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | AUtils.h | 25 inline static const T divRound(const T &num, const T &den) { in divRound() argument 26 if ((num >= 0) ^ (den >= 0)) { in divRound() 27 return (num - den / 2) / den; in divRound() 29 return (num + den / 2) / den; in divRound() 35 inline static const T divUp(const T &num, const T &den) { in divUp() argument 37 return (num < 0 ? num + den + 1 : num) / den; in divUp() 39 return (num < 0 ? num : num + den - 1) / den; in divUp() 45 inline static const T align(const T &num, const U &den) { in align() argument 46 return (num + (T)(den - 1)) & (T)~(den - 1); in align()
|
/frameworks/av/media/libstagefright/ |
D | SkipCutBuffer.cpp | 137 void SkipCutBuffer::write(const char *src, size_t num) { in write() argument 145 if (available < num) { in write() 146 int32_t newcapacity = mCapacity + (num - available); in write() 156 if (copyfirst > num) copyfirst = num; in write() 159 num -= copyfirst; in write() 164 if (num) { in write() 165 memcpy(mCutBuffer, src, num); in write() 166 mWriteHead += num; in write() 171 size_t SkipCutBuffer::read(char *dst, size_t num) { in read() argument 179 if (available < int32_t(num)) { in read() [all …]
|
/frameworks/av/media/codecs/amrwb/enc/src/ |
D | util.c | 37 Word32 num = (Word32)L; in Set_zero() local 38 while (num > 0) { in Set_zero() 40 --num; in Set_zero() 57 Word32 temp1,temp2,num; in Copy() local 66 num = (Word32)(L>>1); in Copy() 67 while (num > 0) { in Copy() 72 --num; in Copy()
|
D | hp400.c | 66 Word32 num; in HP400_12k8() local 73 num = (Word32)lg; in HP400_12k8() 94 }while(--num !=0); in HP400_12k8()
|
D | hp50.c | 67 Word32 num; in HP50_12k8() local 75 num = (Word32)lg; in HP50_12k8() 94 }while(--num !=0); in HP50_12k8()
|
D | weight_a.c | 35 Word32 num = m - 1, fac; in Weight_a() local 41 }while(--num != 0); in Weight_a()
|
/frameworks/native/opengl/tests/gl_perf/ |
D | filltest.cpp | 41 for (uint32_t num = 0; num < gFragmentTestCount; num++) { in doTest() local 42 doSingleTest(num, 2); in doTest() 43 if (gFragmentTests[num]->texCount) { in doTest() 44 doSingleTest(num, 1); in doTest()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneFilterTypeAdapter.java | 203 int num = parseNum(prefixString, startParsePosition); in performFiltering() local 204 if (num != Integer.MIN_VALUE) { in performFiltering() 207 handleSearchByGmt(filtered, num, positiveOnly); in performFiltering() 302 private void handleSearchByGmt(ArrayList<FilterTypeResult> filtered, int num, in handleSearchByGmt() argument 306 if (num >= 0) { in handleSearchByGmt() 307 if (num == 1) { in handleSearchByGmt() 316 if (mTimeZoneData.hasTimeZonesInHrOffset(num)) { in handleSearchByGmt() 317 r = new FilterTypeResult(FILTER_TYPE_GMT, "GMT+" + num, num); in handleSearchByGmt() 320 num *= -1; in handleSearchByGmt() 323 if (!positiveOnly && num != 0) { in handleSearchByGmt() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | ADebug.cpp | 161 uint64_t num = 0; // it is okay for this number to overflow in getExperimentFlag() local 166 num = num * 10 + (c - '0'); in getExperimentFlag() 168 num = num * 26 + (c - 'a'); in getExperimentFlag() 170 num = num * 26 + (c - 'A'); in getExperimentFlag() 172 num = num * 256 + c; in getExperimentFlag() 175 serialNum = num; in getExperimentFlag()
|
/frameworks/av/media/codec2/tests/ |
D | C2_test.cpp | 29 inline constexpr static int num() { return N; } in num() function 39 static_assert(c2_const_checker<min_i32_i32>::num() == 1, "should be 1"); 40 static_assert(c2_const_checker<min_i32_i64>::num() == 2, "should be 2"); 41 static_assert(c2_const_checker<min_i8_i32>::num() == 0xffffffff, "should be 0xffffffff"); 50 static_assert(c2_const_checker<min_u32_u32>::num() == 1, "should be 1"); 51 static_assert(c2_const_checker<min_u32_u64>::num() == 2, "should be 2"); 52 static_assert(c2_const_checker<min_u32_u8>::num() == 0xff, "should be 0xff"); 61 static_assert(c2_const_checker<max_i32_i32>::num() == 2, "should be 2"); 62 static_assert(c2_const_checker<max_i32_i64>::num() == 3, "should be 3"); 63 static_assert(c2_const_checker<max_i8_i32>::num() == 0xffffffff, "should be 0xffffffff"); [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/emergency/ |
D | EmergencyNumberTracker.java | 724 for (EmergencyNumber num : mEmergencyNumberList) { in isEmergencyNumber() 736 if (num.getNumber().equals(number)) { in isEmergencyNumber() 740 if (number.startsWith(num.getNumber())) { in isEmergencyNumber() 760 for (EmergencyNumber num : getEmergencyNumberList()) { in getEmergencyNumber() 761 if (num.getNumber().equals(emergencyNumber)) { in getEmergencyNumber() 762 return num; in getEmergencyNumber() 779 for (EmergencyNumber num : getEmergencyNumberList()) { in getEmergencyServiceCategories() 780 if (num.getNumber().equals(emergencyNumber)) { in getEmergencyServiceCategories() 781 if (num.isFromSources(EmergencyNumber.EMERGENCY_NUMBER_SOURCE_NETWORK_SIGNALING) in getEmergencyServiceCategories() 782 || num.isFromSources(EmergencyNumber.EMERGENCY_NUMBER_SOURCE_SIM)) { in getEmergencyServiceCategories() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuProcStringReader.java | 263 long num = -1; in asLongs() local 272 if (num < 0) { in asLongs() 274 num = c - '0'; in asLongs() 278 num = num * 10 + c - '0'; in asLongs() 279 if (num < 0) { in asLongs() 284 array[count++] = num; in asLongs() 285 num = -1; in asLongs() 289 if (num >= 0) { in asLongs() 290 array[count++] = num; in asLongs()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 568 uint32_t num; in main() local 574 num = numOverlapping(backgroundFormat, foregroundFormat, in main() 576 measPtr->overlapBlendNone.push_back(num); in main() 578 num = numOverlapping(backgroundFormat, foregroundFormat, in main() 580 measPtr->overlapBlendPremult.push_back(num); in main() 582 num = numOverlapping(backgroundFormat, foregroundFormat, in main() 584 measPtr->overlapBlendCoverage.push_back(num); in main() 664 uint32_t num = numOverlays(rectList); in maxOverlays() local 665 if (num > max) { max = num; } in maxOverlays() 686 uint32_t num = numOverlays(rectList); in supportedTransforms() local [all …]
|
/frameworks/base/core/jni/ |
D | android_util_StringBlock.cpp | 108 int num = 0; in android_content_StringBlock_nativeGetStyle() local 117 num++; in android_content_StringBlock_nativeGetStyle() 121 if (num == 0) { in android_content_StringBlock_nativeGetStyle() 125 array = env->NewIntArray((num * sizeof(ResStringPool_span)) / sizeof(jint)); in android_content_StringBlock_nativeGetStyle() 131 int num = 0; in android_content_StringBlock_nativeGetStyle() local 134 env->SetIntArrayRegion(array, num * numInts, numInts, (jint*)spans->unsafe_ptr()); in android_content_StringBlock_nativeGetStyle() 136 num++; in android_content_StringBlock_nativeGetStyle()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseStatementTest.java | 143 long num = c.getLong(numCol); in testStatementLongBinding() local 144 assertEquals(i, num); in testStatementLongBinding() 165 String num = c.getString(numCol); in testStatementStringBinding() local 166 assertEquals(Long.toHexString(i), num); in testStatementStringBinding() local 210 String num = c.getString(numCol); in testSimpleStringBinding() local 211 assertEquals(Integer.toHexString(0), num); in testSimpleStringBinding() 236 long num = c.getLong(numCol); in testStatementMultipleBindings() local 238 assertEquals(i, num); in testStatementMultipleBindings() 271 long num = c.getLong(numCol); in run() local 273 assertEquals(i, num); in run() [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderThroughputTest.cpp | 171 String16 generateServiceName(int num) in generateServiceName() argument 174 snprintf(num_str, sizeof(num_str), "%d", num); in generateServiceName() 179 void worker_fx(int num, in worker_fx() argument 190 serviceMgr->addService(generateServiceName(num), service); in worker_fx() 192 srand(num); in worker_fx() 201 cout << "Created BinderWorker" << num << endl; in worker_fx() 205 if (num == i) in worker_fx() 213 for (int i = 0; (!cs_pair || num >= server_count) && i < iterations; i++) { in worker_fx() 215 int target = cs_pair ? num % server_count : rand() % workers.size(); in worker_fx() 230 cout << "thread " << num << " failed " << ret << "i : " << i << endl; in worker_fx() [all …]
|
D | schd-dbg.cpp | 258 String16 generateServiceName(int num) { in generateServiceName() argument 260 snprintf(num_str, sizeof(num_str), "%d", num); in generateServiceName() 321 void worker_fx(int num, int no_process, int iterations, int payload_size, in worker_fx() argument 330 serviceMgr->addService(generateServiceName(num), service); in worker_fx() 342 if (num == i) continue; in worker_fx() 348 for (int i = 0; is_client(num) && i < iterations; i++) { in worker_fx() 352 int target = num % server_count; in worker_fx() 376 if (is_client(num)) { in worker_fx() 380 cout << "\"P" << (num - server_count) << "\":{\"SYNC\":\"" in worker_fx() 396 Pipe make_process(int num, int iterations, int no_process, int payload_size) { in make_process() argument [all …]
|
/frameworks/rs/perf-test-scripts/ |
D | timing | 196 for num in `seq 0 $((${#TESTS[@]} - 1))`; do 199 testId=${TESTS[$num]} 202 printf "Running ${TEST_NAMES[$testId]} ($(($num + 1))/${#TESTS[@]})" 254 for num in `seq 1 $((${#TESTS[@]} - 1))`; do 255 TESTS_TEXT=$TESTS_TEXT,"$TEST_ROOT#${FUNCTION_NAMES[${TESTS[$num]}]}" 262 for num in `seq 0 $((${#TESTS[@]} - 1))`; do 265 testId=${TESTS[$num]}
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 174 private static Rational scaleRatio(Rational ratio, int num, int den) { 175 int common = gcd(num, den); 176 num /= common; 179 (int)(ratio.getNumerator() * (double)num), // saturate to int 183 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) { 184 if (num == den) { 188 scaleRatio(range.getLower(), num, den), 189 scaleRatio(range.getUpper(), num, den)); 198 static int divUp(int num, int den) { 199 return (num + den - 1) / den; [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkUtilsInternal.java | 85 public static long multiplySafeByRational(long value, long num, long den) { in multiplySafeByRational() argument 90 long y = num; in multiplySafeByRational() 103 return (long) (((double) num / den) * value); in multiplySafeByRational()
|
/frameworks/base/tests/JankBench/scripts/external/ |
D | statistics.py | 263 num = 0 265 num = num*10 + digit 269 num *= 10**exp 272 num = -num 273 return (num, den)
|
/frameworks/native/libs/ui/include/ui/ |
D | FatVector.h | 51 T* allocate(size_t num, const void* = 0) { 52 if (!mAllocation.inUse && num <= SIZE) { 56 return static_cast<T*>(static_cast<void*>(malloc(num * sizeof(T))));
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | FatVector.h | 51 T* allocate(size_t num, const void* = 0) { 52 if (!mAllocation.inUse && num <= SIZE) { 56 return static_cast<T*>(static_cast<void*>(malloc(num * sizeof(T))));
|
/frameworks/native/include/ui/ |
D | FatVector.h | 51 T* allocate(size_t num, const void* = 0) { 52 if (!mAllocation.inUse && num <= SIZE) { 56 return static_cast<T*>(static_cast<void*>(malloc(num * sizeof(T))));
|
/frameworks/base/core/java/android/webkit/ |
D | FindAddress.java | 272 int num = Integer.parseInt(suffixMatcher.group(1)); in checkHouseNumber() local 273 if (num == 0) { in checkHouseNumber() 277 switch (num % 10) { in checkHouseNumber() 279 return suffix.equals(num % 100 == 11 ? "th" : "st"); in checkHouseNumber() 281 return suffix.equals(num % 100 == 12 ? "th" : "nd"); in checkHouseNumber() 283 return suffix.equals(num % 100 == 13 ? "th" : "rd"); in checkHouseNumber()
|