/frameworks/base/errorprone/refaster/ |
D | EfficientXml.java | 32 void beforeToString(TypedXmlSerializer out, String n, int v) throws Exception { in beforeToString() argument 33 out.attribute(null, n, Integer.toString(v)); in beforeToString() 37 void beforeValueOf(TypedXmlSerializer out, String n, int v) throws Exception { in beforeValueOf() argument 38 out.attribute(null, n, String.valueOf(v)); in beforeValueOf() 42 void beforeUtils(TypedXmlSerializer out, String n, int v) throws Exception { in beforeUtils() argument 43 XmlUtils.writeIntAttribute(out, n, v); in beforeUtils() 47 void beforeRadix(TypedXmlSerializer out, String n, int v) throws Exception { in beforeRadix() argument 48 out.attribute(null, n, Integer.toString(v, 10)); in beforeRadix() 52 void after(TypedXmlSerializer out, String n, int v) throws Exception { in after() argument 53 out.attributeInt(null, n, v); in after() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 202 for (int n = 1; n < MAX_N; n++) { in GeomagneticField() 203 for (int m = 0; m <= n; m++) { in GeomagneticField() 205 float g = G_COEFF[n][m] + yearsSinceBase * DELTA_G[n][m]; in GeomagneticField() 206 float h = H_COEFF[n][m] + yearsSinceBase * DELTA_H[n][m]; in GeomagneticField() 213 gcX += relativeRadiusPower[n+2] in GeomagneticField() 215 * legendre.mPDeriv[n][m] in GeomagneticField() 216 * SCHMIDT_QUASI_NORM_FACTORS[n][m]; in GeomagneticField() 220 gcY += relativeRadiusPower[n+2] * m in GeomagneticField() 222 * legendre.mP[n][m] in GeomagneticField() 223 * SCHMIDT_QUASI_NORM_FACTORS[n][m] in GeomagneticField() [all …]
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | rate_control.cpp | 60 Int n; in RC_Initialize() local 62 for (n = 0; n < numLayers; n++) in RC_Initialize() 65 rc[n]->fine_frame_skip = encParams->FineFrameSkip_Enabled; in RC_Initialize() 66 rc[n]->no_frame_skip = encParams->NoFrameSkip_Enabled; in RC_Initialize() 67 rc[n]->no_pre_skip = encParams->NoPreSkip_Enabled; in RC_Initialize() 68 rc[n]->skip_next_frame = 0; /* must be initialized */ in RC_Initialize() 71 rc[n]->Bs = video->encParams->BufferSize[n]; in RC_Initialize() 72 rc[n]->TMN_W = 0; in RC_Initialize() 73 rc[n]->VBV_fullness = (Int)(rc[n]->Bs * 0.5); /* rc[n]->Bs */ in RC_Initialize() 74 rc[n]->encoded_frames = 0; in RC_Initialize() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 269 int n = DAYS_PER_MONTH[this.month]; in getActualMaximum() local 270 if (n != 28) { in getActualMaximum() 271 return n; in getActualMaximum() 432 int n = getChar(s, 0, 1000); in parseInternal() local 433 n += getChar(s, 1, 100); in parseInternal() 434 n += getChar(s, 2, 10); in parseInternal() 435 n += getChar(s, 3, 1); in parseInternal() 436 year = n; in parseInternal() 439 n = getChar(s, 4, 10); in parseInternal() 440 n += getChar(s, 5, 1); in parseInternal() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationHistoryTest.java | 94 HistoricalNotification n = new HistoricalNotification.Builder() in testHistoricalNotificationBuilder() local 107 assertThat(n.getPackage()).isEqualTo(expectedPackage); in testHistoricalNotificationBuilder() 108 assertThat(n.getChannelName()).isEqualTo(expectedChannelName); in testHistoricalNotificationBuilder() 109 assertThat(n.getChannelId()).isEqualTo(expectedChannelId); in testHistoricalNotificationBuilder() 110 assertThat(n.getUid()).isEqualTo(expectedUid); in testHistoricalNotificationBuilder() 111 assertThat(n.getUserId()).isEqualTo(expectedUserId); in testHistoricalNotificationBuilder() 112 assertThat(n.getPostedTimeMs()).isEqualTo(expectedPostTime); in testHistoricalNotificationBuilder() 113 assertThat(n.getTitle()).isEqualTo(expectedTitle); in testHistoricalNotificationBuilder() 114 assertThat(n.getText()).isEqualTo(expectedText); in testHistoricalNotificationBuilder() 115 assertThat(expectedIcon.sameAs(n.getIcon())).isTrue(); in testHistoricalNotificationBuilder() [all …]
|
/frameworks/av/media/module/foundation/ |
D | ABitReader.cpp | 54 uint32_t ABitReader::getBits(size_t n) { in getBits() argument 56 CHECK(getBitsGraceful(n, &ret)); in getBits() 60 uint32_t ABitReader::getBitsWithFallback(size_t n, uint32_t fallback) { in getBitsWithFallback() argument 62 (void)getBitsGraceful(n, &ret); in getBitsWithFallback() 66 bool ABitReader::getBitsGraceful(size_t n, uint32_t *out) { in getBitsGraceful() argument 67 if (n > 32) { in getBitsGraceful() 72 while (n > 0) { in getBitsGraceful() 79 size_t m = n; in getBitsGraceful() 88 n -= m; in getBitsGraceful() 95 bool ABitReader::skipBits(size_t n) { in skipBits() argument [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationHistoryProtoHelperTest.java | 87 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications() local 88 expectedEntries.add(n); in testReadWriteNotifications() 89 history.addNotificationToWrite(n); in testReadWriteNotifications() 114 HistoricalNotification n = getHistoricalNotification(i); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool() local 115 expectedEntries.add(n); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool() 116 history.addNotificationToWrite(n); in testReadWriteNotifications_stringFieldsPersistedEvenIfNoPool() 141 HistoricalNotification n = in testReadNotificationsWithPkgFilter() local 145 expectedStrings.add(n.getPackage()); in testReadNotificationsWithPkgFilter() 146 expectedStrings.add(n.getChannelName()); in testReadNotificationsWithPkgFilter() 147 expectedStrings.add(n.getChannelId()); in testReadNotificationsWithPkgFilter() [all …]
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 119 Notification n = new Notification.Builder(NotificationTestList.this, 124 mNM.notify(7001, n); 131 Notification n = new Notification.Builder(NotificationTestList.this, 136 mNM.notify("default", 7004, n); 149 Notification n = new Notification.Builder(NotificationTestList.this, 154 mNM.notify("default", 7004, n); 166 Notification n = new Notification.Builder(NotificationTestList.this, "min") 171 mNM.notify(6000, n); 172 n = new Notification.Builder(NotificationTestList.this, "low") 177 mNM.notify(6001, n); [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/ |
D | EuiccNotificationTest.java | 31 EuiccNotification n = in testEqualsHashCode() local 33 assertTrue(n.equals(n)); in testEqualsHashCode() 34 assertFalse(n.equals(new Object())); in testEqualsHashCode() 37 assertFalse(n.equals(t)); in testEqualsHashCode() 40 assertTrue(n.equals(t)); in testEqualsHashCode() 41 assertEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode() 44 assertFalse(n.equals(t)); in testEqualsHashCode() 45 assertNotEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode() 48 assertFalse(n.equals(t)); in testEqualsHashCode() 49 assertNotEquals(n.hashCode(), t.hashCode()); in testEqualsHashCode() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | EbmlUtil.cpp | 38 uint64_t highestOneBit(uint64_t n) { in highestOneBit() argument 39 n |= (n >> 1); in highestOneBit() 40 n |= (n >> 2); in highestOneBit() 41 n |= (n >> 4); in highestOneBit() 42 n |= (n >> 8); in highestOneBit() 43 n |= (n >> 16); in highestOneBit() 44 n |= (n >> 32); in highestOneBit() 45 return n - (n >> 1); in highestOneBit()
|
/frameworks/base/tests/JankBench/scripts/external/ |
D | statistics.py | 155 n, d = _exact_ratio(start) 156 partials = {d: n} 161 for n,d in map(_exact_ratio, values): 163 partials[d] = partials_get(d, 0) + n 172 total = sum(Fraction(n, d) for d, n in sorted(partials.items())) 328 n = len(data) 329 if n < 1: 332 assert count == n 333 return _convert(total/n, T) 351 n = len(data) [all …]
|
/frameworks/base/core/java/android/os/ |
D | MessageQueue.java | 779 Message n = p.next; in removeMessages() local 780 mMessages = n; in removeMessages() 785 p = n; in removeMessages() 794 Message n = p.next; in removeMessages() local 795 if (n != null) { in removeMessages() 796 if (n.target == h && n.what == what in removeMessages() 797 && (object == null || n.obj == object)) { in removeMessages() 798 Message nn = n.next; in removeMessages() 799 if (n.isAsynchronous()) { in removeMessages() 802 n.recycleUnchecked(); in removeMessages() [all …]
|
D | HwBlob.java | 346 final int n = array.length; in wrapArray() local 347 Boolean[] wrappedArray = new Boolean[n]; in wrapArray() 348 for (int i = 0; i < n; ++i) { in wrapArray() 361 final int n = array.length; in wrapArray() local 362 Long[] wrappedArray = new Long[n]; in wrapArray() 363 for (int i = 0; i < n; ++i) { in wrapArray() 376 final int n = array.length; in wrapArray() local 377 Byte[] wrappedArray = new Byte[n]; in wrapArray() 378 for (int i = 0; i < n; ++i) { in wrapArray() 391 final int n = array.length; in wrapArray() local [all …]
|
D | RevocableFileDescriptor.java | 145 int n = 0; 146 while (n < size) { 148 n += Os.pread(mInner, data, n, size - n, offset + n); 151 n += e.bytesTransferred; 154 return n; 160 int n = 0; 161 while (n < size) { 163 n += Os.pwrite(mInner, data, n, size - n, offset + n); 166 n += e.bytesTransferred; 169 return n;
|
/frameworks/av/ |
D | METADATA | 5 license_note: "would be NOTICE save for Widevine Master License Agreement in:\n" 6 " drm/mediadrm/plugins/clearkey/hidl/DeviceFiles.cpp\n" 7 " drm/mediadrm/plugins/clearkey/hidl/MemoryFileSystem.cpp\n" 8 " drm/mediadrm/plugins/clearkey/hidl/include/DeviceFiles.h\n" 9 " drm/mediadrm/plugins/clearkey/hidl/protos/DeviceFiles.proto\n" 10 " drm/mediadrm/plugins/clearkey/hidl/include/MemoryFileSystem.h\n" 11 " and patent disclaimers in:\n" 12 " media/codec2/components/aac/patent_disclaimer.txt\n" 13 " media/codec2/components/amr_nb_wb/patent_disclaimer.txt\n" 14 " media/codec2/components/mp3/patent_disclaimer.txt\n" [all …]
|
/frameworks/av/media/module/codecs/amrwb/enc/src/ |
D | convolve.c | 37 Word32 i, n; in Convolve() local 42 for (n = 0; n < 64;) in Convolve() 44 tmpH = h+n; in Convolve() 46 i=n+1; in Convolve() 56 y[n] = voround(L_shl(s, 1)); in Convolve() 57 n++; in Convolve() 59 tmpH = h+n; in Convolve() 61 i=n+1; in Convolve() 75 y[n] = voround(L_shl(s, 1)); in Convolve() 76 n++; in Convolve() [all …]
|
/frameworks/rs/ |
D | rsScriptGroup.cpp | 63 Node *n = mNodes[ct]; in findNode() local 64 for (size_t ct2=0; ct2 < n->mKernels.size(); ct2++) { in findNode() 65 if (n->mKernels[ct2]->mScript == s) { in findNode() 66 return n; in findNode() 74 bool ScriptGroup::calcOrderRecurse(Node *n, int depth) { in calcOrderRecurse() argument 75 n->mSeen = true; in calcOrderRecurse() 76 if (n->mOrder < depth) { in calcOrderRecurse() 77 n->mOrder = depth; in calcOrderRecurse() 81 for (size_t ct=0; ct < n->mOutputs.size(); ct++) { in calcOrderRecurse() 82 const Link *l = n->mOutputs[ct]; in calcOrderRecurse() [all …]
|
/frameworks/av/media/module/extractors/mp4/ |
D | HeifCleanAperture.cpp | 52 Fraction::Fraction(int32_t n, int32_t d) { in Fraction() argument 53 this->n = n; in Fraction() 58 int64_t gcd = calculateGreatestCommonDivisor(n, d); in simplify() 60 n = static_cast<int32_t>(n / gcd); in simplify() 71 const int64_t thisnNew = n * fd; in commonDenominator() 73 const int64_t fnNew = f->n * this_d; in commonDenominator() 79 n = static_cast<int32_t>(thisnNew); in commonDenominator() 81 f->n = static_cast<int32_t>(fnNew); in commonDenominator() 91 const int64_t result = static_cast<int64_t>(n) + f.n; in add() 95 n = static_cast<int32_t>(result); in add() [all …]
|
/frameworks/base/core/java/android/util/ |
D | SparseSetArray.java | 50 public boolean add(int n, T value) { in add() argument 51 ArraySet<T> set = mData.get(n); in add() 54 mData.put(n, set); in add() 66 public void addAll(int n, ArraySet<T> values) { in addAll() argument 67 ArraySet<T> set = mData.get(n); in addAll() 70 mData.put(n, set); in addAll() 86 public boolean contains(int n, T value) { in contains() argument 87 final ArraySet<T> set = mData.get(n); in contains() 97 public ArraySet<T> get(int n) { in get() argument 98 return mData.get(n); in get() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/ |
D | NotificationContentDescriptionTest.kt | 38 val n = createNotification(TITLE, TEXT, TICKER) in notificationWithAllDifferentFields_descriptionIsTitle() constant 39 val description = contentDescForNotification(context, n) in notificationWithAllDifferentFields_descriptionIsTitle() 40 assertThat(description).isEqualTo(createDescriptionText(n, TITLE)) in notificationWithAllDifferentFields_descriptionIsTitle() 45 val n = createNotification(getTestAppName(), TEXT, TICKER) in notificationWithAllDifferentFields_titleMatchesAppName_descriptionIsText() constant 46 val description = contentDescForNotification(context, n) in notificationWithAllDifferentFields_titleMatchesAppName_descriptionIsText() 47 assertThat(description).isEqualTo(createDescriptionText(n, TEXT)) in notificationWithAllDifferentFields_titleMatchesAppName_descriptionIsText() 52 val n = createNotification(getTestAppName(), null, TICKER) in notificationWithAllDifferentFields_titleMatchesAppNameNoText_descriptionIsTicker() constant 53 val description = contentDescForNotification(context, n) in notificationWithAllDifferentFields_titleMatchesAppNameNoText_descriptionIsTicker() 54 assertThat(description).isEqualTo(createDescriptionText(n, TICKER)) in notificationWithAllDifferentFields_titleMatchesAppNameNoText_descriptionIsTicker() 60 val n = createNotification(appName, null, null) in notificationWithAllDifferentFields_titleMatchesAppNameNoTextNoTicker_descriptionEmpty() constant [all …]
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/ |
D | MonotonicCurveFit.java | 39 final int n = time.length; in MonotonicCurveFit() local 42 double[][] slope = new double[n - 1][dim]; // could optimize this out in MonotonicCurveFit() 43 double[][] tangent = new double[n][dim]; in MonotonicCurveFit() 45 for (int i = 0; i < n - 1; i++) { in MonotonicCurveFit() 54 tangent[n - 1][j] = slope[n - 2][j]; in MonotonicCurveFit() 57 for (int i = 0; i < n - 1; i++) { in MonotonicCurveFit() 85 final int n = mT.length; in getPos() local 95 if (t >= mT[n - 1]) { in getPos() 96 getSlope(mT[n - 1], mSlopeTemp); in getPos() 98 v[j] = mY[n - 1][j] + (t - mT[n - 1]) * mSlopeTemp[j]; in getPos() [all …]
|
/frameworks/base/core/java/android/app/ |
D | WindowConfiguration.java | 622 int n = 0; in compareTo() local 628 n = mAppBounds.left - that.mAppBounds.left; in compareTo() 629 if (n != 0) return n; in compareTo() 630 n = mAppBounds.top - that.mAppBounds.top; in compareTo() 631 if (n != 0) return n; in compareTo() 632 n = mAppBounds.right - that.mAppBounds.right; in compareTo() 633 if (n != 0) return n; in compareTo() 634 n = mAppBounds.bottom - that.mAppBounds.bottom; in compareTo() 635 if (n != 0) return n; in compareTo() 638 n = mMaxBounds.left - that.mMaxBounds.left; in compareTo() [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Duration.java | 92 int n = 0; in parse() local 96 n *= 10; in parse() 97 n += ((int)(c-'0')); in parse() 100 weeks = n; in parse() 101 n = 0; in parse() 104 hours = n; in parse() 105 n = 0; in parse() 108 minutes = n; in parse() 109 n = 0; in parse() 112 seconds = n; in parse() [all …]
|
/frameworks/av/media/module/codecs/amrwb/dec/src/ |
D | pvamrwbdecoder_mem_funcs.h | 58 #define pv_memset(to, c, n) memset(to, c, n) argument 61 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument 62 #define pv_memmove(to, from, n) memmove(to, from, n) argument 63 #define pv_memcmp(p, q, n) memcmp(p, q, n) argument
|
/frameworks/av/media/module/codecs/mp3dec/src/ |
D | mp3_mem_funcs.h | 64 #define pv_memset(to, c, n) memset(to, c, n) argument 67 #define pv_memcpy(to, from, n) memcpy(to, from, n) argument 68 #define pv_memmove(to, from, n) memmove(to, from, n) argument 69 #define pv_memcmp(p, q, n) memcmp(p, q, n) argument
|