/frameworks/av/media/libstagefright/ |
D | SkipCutBuffer.cpp | 128 void SkipCutBuffer::write(const char *src, size_t num) { in write() argument 136 if (available < num) { in write() 137 int32_t newcapacity = mCapacity + (num - available); in write() 147 if (copyfirst > num) copyfirst = num; in write() 150 num -= copyfirst; in write() 155 if (num) { in write() 156 memcpy(mCutBuffer, src, num); in write() 157 mWriteHead += num; in write() 162 size_t SkipCutBuffer::read(char *dst, size_t num) { in read() argument 170 if (available < int32_t(num)) { in read() [all …]
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/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()
|
/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/native/opengl/tests/gl_perf/ |
D | filltest.cpp | 45 for (uint32_t num = 0; num < gFragmentTestCount; num++) { in doTest() local 46 doSingleTest(num, 2); in doTest() 47 if (gFragmentTests[num]->texCount) { in doTest() 48 doSingleTest(num, 1); in doTest()
|
/frameworks/av/media/libstagefright/codecs/avc/common/src/ |
D | reflist.cpp | 407 void SortPicByPicNum(AVCPictureData *data[], int num) in SortPicByPicNum() argument 412 for (i = 0; i < num - 1; i++) in SortPicByPicNum() 414 for (j = i + 1; j < num; j++) in SortPicByPicNum() 429 void SortPicByPicNumLongTerm(AVCPictureData *data[], int num) in SortPicByPicNumLongTerm() argument 434 for (i = 0; i < num - 1; i++) in SortPicByPicNumLongTerm() 436 for (j = i + 1; j < num; j++) in SortPicByPicNumLongTerm() 452 void SortFrameByFrameNumWrap(AVCFrameStore *data[], int num) in SortFrameByFrameNumWrap() argument 457 for (i = 0; i < num - 1; i++) in SortFrameByFrameNumWrap() 459 for (j = i + 1; j < num; j++) in SortFrameByFrameNumWrap() 474 void SortFrameByLTFrameIdx(AVCFrameStore *data[], int num) in SortFrameByLTFrameIdx() argument [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/native/opengl/libs/tools/ |
D | glapigen | 54 for (my $num = 0; $num < $len; $num++) { 55 if ($args[$num] ne "void") { 64 if ($args[$num] =~ /(\S+\s)+\**\s*([\w]+)/) {
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcCommit.cpp | 566 uint32_t num; in main() local 572 num = numOverlapping(backgroundFormat, foregroundFormat, in main() 574 measPtr->overlapBlendNone.push_back(num); in main() 576 num = numOverlapping(backgroundFormat, foregroundFormat, in main() 578 measPtr->overlapBlendPremult.push_back(num); in main() 580 num = numOverlapping(backgroundFormat, foregroundFormat, in main() 582 measPtr->overlapBlendCoverage.push_back(num); in main() 662 uint32_t num = numOverlays(rectList); in maxOverlays() local 663 if (num > max) { max = num; } in maxOverlays() 684 uint32_t num = numOverlays(rectList); in supportedTransforms() local [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | transform.c | 42 static void Shuffle(int *buf, int num, const unsigned char* bitTab) in Shuffle() argument 49 part1 = buf + num; in Shuffle() 73 static void Radix4First(int *buf, int num) in Radix4First() argument 78 for (; num != 0; num--) in Radix4First() 108 static void Radix8First(int *buf, int num) in Radix8First() argument 116 for ( ; num != 0; num--) in Radix8First() 188 static void Radix4FFT(int *buf, int num, int bgn, int *twidTab) in Radix4FFT() argument 197 for (num >>= 2; num != 0; num >>= 2) in Radix4FFT() 202 for (i = num; i != 0; i--) in Radix4FFT() 279 static void PreMDCT(int *buf0, int num, const int *csptr) in PreMDCT() argument [all …]
|
/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/base/media/java/android/media/ |
D | Utils.java | 149 private static Rational scaleRatio(Rational ratio, int num, int den) { 150 int common = gcd(num, den); 151 num /= common; 154 (int)(ratio.getNumerator() * (double)num), // saturate to int 158 static Range<Rational> scaleRange(Range<Rational> range, int num, int den) { 159 if (num == den) { 163 scaleRatio(range.getLower(), num, den), 164 scaleRatio(range.getUpper(), num, den)); 173 static int divUp(int num, int den) { 174 return (num + den - 1) / den; [all …]
|
/frameworks/base/core/jni/ |
D | android_util_StringBlock.cpp | 113 int num = 0; in android_content_StringBlock_nativeGetStyle() local 115 num++; in android_content_StringBlock_nativeGetStyle() 119 if (num == 0) { in android_content_StringBlock_nativeGetStyle() 123 jintArray array = env->NewIntArray((num*sizeof(ResStringPool_span))/sizeof(jint)); in android_content_StringBlock_nativeGetStyle() 128 num = 0; in android_content_StringBlock_nativeGetStyle() 132 num*numInts, numInts, in android_content_StringBlock_nativeGetStyle() 135 num++; in android_content_StringBlock_nativeGetStyle()
|
/frameworks/native/libs/binder/tests/ |
D | binderThroughputTest.cpp | 161 String16 generateServiceName(int num) in generateServiceName() argument 164 snprintf(num_str, sizeof(num_str), "%d", num); in generateServiceName() 170 int num, in worker_fx() argument 179 serviceMgr->addService(generateServiceName(num), service); in worker_fx() 181 srand(num); in worker_fx() 186 cout << "Created BinderWorker" << num << endl; in worker_fx() 190 if (num == i) in worker_fx() 209 cout << "thread " << num << " failed " << ret << "i : " << i << endl; in worker_fx() 224 Pipe make_worker(int num, int iterations, int worker_count) in make_worker() argument 233 worker_fx(num, worker_count, iterations, move(get<1>(pipe_pair))); in make_worker()
|
/frameworks/av/media/libstagefright/codecs/avc/common/include/ |
D | avclib_common.h | 500 void SortPicByPicNum(AVCPictureData *data[], int num); 509 void SortPicByPicNumLongTerm(AVCPictureData *data[], int num); 518 void SortFrameByFrameNumWrap(AVCFrameStore *data[], int num); 527 void SortFrameByLTFrameIdx(AVCFrameStore *data[], int num); 536 void SortPicByPOC(AVCPictureData *data[], int num, int descending); 545 void SortPicByLTPicNum(AVCPictureData *data[], int num); 554 void SortFrameByPOC(AVCFrameStore *data[], int num, int descending);
|
/frameworks/base/libs/hwui/utils/ |
D | FatVector.h | 62 T* allocate(size_t num, const void* = 0) { 63 if (!mAllocation.inUse && num <= SIZE) { 67 return (T*) malloc(num * sizeof(T)); 71 void deallocate(pointer p, size_t num) { in deallocate() argument
|
D | LinearAllocator.h | 176 T* allocate(size_t num, const void* = 0) { 177 return (T*)(linearAllocator.alloc<void*>(num * sizeof(T))); 180 void deallocate(pointer p, size_t num) { in deallocate() argument 182 linearAllocator.rewindIfLastAlloc(p, num * sizeof(T)); in deallocate()
|
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 83 private void verifyOnLevelChangedCallback(int num) { in verifyOnLevelChangedCallback() argument 85 Mockito.verify(mAccessPointListener, Mockito.atLeast(num)) in verifyOnLevelChangedCallback() 90 private void verifyOnAccessPointsCallback(int num) { in verifyOnAccessPointsCallback() argument 92 Mockito.verify(mAccessPointListener, Mockito.atLeast(num)) in verifyOnAccessPointsCallback()
|
/frameworks/native/opengl/libagl/ |
D | array.cpp | 544 GLsizei num = count > vcs ? vcs : count; in drawPrimitivesPoints() local 546 c->arrays.compileElements(c, v, first, num); in drawPrimitivesPoints() 547 first += num; in drawPrimitivesPoints() 548 count -= num; in drawPrimitivesPoints() 556 num--; in drawPrimitivesPoints() 557 } while (num); in drawPrimitivesPoints() 582 GLsizei num = count > vcs ? vcs : count; in drawPrimitivesLineStrip() local 583 c->arrays.compileElements(c, v, first, num); in drawPrimitivesLineStrip() 584 first += num; in drawPrimitivesLineStrip() 585 count -= num; in drawPrimitivesLineStrip() [all …]
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | FragmentDialogSupport.java | 87 static String getNameForNum(int num) { in getNameForNum() argument 88 switch ((num-1)%6) { in getNameForNum() 110 static MyDialogFragment newInstance(int num) { in newInstance() argument 115 args.putInt("num", num); in newInstance()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | TransferPipe.java | 165 void closeFd(int num) { in closeFd() argument 166 if (mFds[num] != null) { in closeFd() 167 if (DEBUG) Slog.i(TAG, "Closing: " + mFds[num]); in closeFd() 169 mFds[num].close(); in closeFd() 172 mFds[num] = null; in closeFd()
|
/frameworks/base/core/java/android/util/ |
D | Rational.java | 338 double num = mNumerator; in doubleValue() local 341 return num / den; in doubleValue() 355 float num = mNumerator; in floatValue() local 358 return num / den; in floatValue()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMetrics.java | 500 void setNumSavedNetworks(int num) { in setNumSavedNetworks() argument 502 mWifiLogProto.numSavedNetworks = num; in setNumSavedNetworks() 506 void setNumOpenNetworks(int num) { in setNumOpenNetworks() argument 508 mWifiLogProto.numOpenNetworks = num; in setNumOpenNetworks() 512 void setNumPersonalNetworks(int num) { in setNumPersonalNetworks() argument 514 mWifiLogProto.numPersonalNetworks = num; in setNumPersonalNetworks() 518 void setNumEnterpriseNetworks(int num) { in setNumEnterpriseNetworks() argument 520 mWifiLogProto.numEnterpriseNetworks = num; in setNumEnterpriseNetworks() 524 void setNumHiddenNetworks(int num) { in setNumHiddenNetworks() argument 526 mWifiLogProto.numHiddenNetworks = num; in setNumHiddenNetworks() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | vlc_decode.cpp | 1475 int count, len, num[2] = {0, 0} /* 01/30/01 */; in RvlcDecTCOEFInter() local 1508 num[0]++; /* number of zeros in the middle */ in RvlcDecTCOEFInter() 1521 num[count-1]++; /* number of ones in the middle */ in RvlcDecTCOEFInter() 1537 if (num[1] > 10 || num[0] > 11) /* invalid RVLC code */ in RvlcDecTCOEFInter() 1541 tab2 = RvlcDCTtabInter + 146 + (num[0] << 1) + (code & 1); in RvlcDecTCOEFInter() 1543 tab2 = RvlcDCTtabInter + ptrRvlcTab[num[1]] + (num[0] << 1) + (code & 1); in RvlcDecTCOEFInter() 1558 int count, len, num[2] = {0, 0} /* 01/30/01 */; in RvlcDecTCOEFIntra() local 1591 num[0]++; /* number of zeros in the middle */ in RvlcDecTCOEFIntra() 1604 num[count-1]++; /* number of ones in the middle */ in RvlcDecTCOEFIntra() 1620 if (num[1] > 10 || num[0] > 11) /* invalid RVLC code */ in RvlcDecTCOEFIntra() [all …]
|