/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/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 | 87 HistoricalNotification n = new HistoricalNotification.Builder() in testHistoricalNotificationBuilder() local 100 assertThat(n.getPackage()).isEqualTo(expectedPackage); in testHistoricalNotificationBuilder() 101 assertThat(n.getChannelName()).isEqualTo(expectedChannelName); in testHistoricalNotificationBuilder() 102 assertThat(n.getChannelId()).isEqualTo(expectedChannelId); in testHistoricalNotificationBuilder() 103 assertThat(n.getUid()).isEqualTo(expectedUid); in testHistoricalNotificationBuilder() 104 assertThat(n.getUserId()).isEqualTo(expectedUserId); in testHistoricalNotificationBuilder() 105 assertThat(n.getPostedTimeMs()).isEqualTo(expectedPostTime); in testHistoricalNotificationBuilder() 106 assertThat(n.getTitle()).isEqualTo(expectedTitle); in testHistoricalNotificationBuilder() 107 assertThat(n.getText()).isEqualTo(expectedText); in testHistoricalNotificationBuilder() 108 assertThat(expectedIcon.sameAs(n.getIcon())).isTrue(); in testHistoricalNotificationBuilder() [all …]
|
/frameworks/libs/net/common/device/android/net/ |
D | NetworkFactoryLegacyImpl.java | 212 NetworkRequestInfo n = mNetworkRequests.get(request); in handleAddRequest() local 213 if (n == null) { in handleAddRequest() 218 n = new NetworkRequestInfo(request, score, servingProviderId); in handleAddRequest() 219 mNetworkRequests.put(n.request, n); in handleAddRequest() 225 n.score = score; in handleAddRequest() 226 n.providerId = servingProviderId; in handleAddRequest() 230 evalRequest(n); in handleAddRequest() 234 NetworkRequestInfo n = mNetworkRequests.get(request); in handleRemoveRequest() local 235 if (n != null) { in handleRemoveRequest() 237 if (n.requested) mParent.releaseNetworkFor(n.request); in handleRemoveRequest() [all …]
|
/frameworks/av/media/libstagefright/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/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/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/core/java/android/os/ |
D | MessageQueue.java | 684 Message n = p.next; in removeMessages() local 685 mMessages = n; in removeMessages() 687 p = n; in removeMessages() 692 Message n = p.next; in removeMessages() local 693 if (n != null) { in removeMessages() 694 if (n.target == h && n.what == what in removeMessages() 695 && (object == null || n.obj == object)) { in removeMessages() 696 Message nn = n.next; in removeMessages() 697 n.recycleUnchecked(); in removeMessages() 702 p = n; 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 | 130 int n = 0; 131 while (n < size) { 133 n += Os.pread(mInner, data, n, size - n, offset + n); 136 n += e.bytesTransferred; 139 return n; 145 int n = 0; 146 while (n < size) { 148 n += Os.pwrite(mInner, data, n, size - n, offset + n); 151 n += e.bytesTransferred; 154 return n;
|
/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/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/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/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/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/base/core/java/android/app/ |
D | WindowConfiguration.java | 625 int n = 0; in compareTo() local 631 n = mAppBounds.left - that.mAppBounds.left; in compareTo() 632 if (n != 0) return n; in compareTo() 633 n = mAppBounds.top - that.mAppBounds.top; in compareTo() 634 if (n != 0) return n; in compareTo() 635 n = mAppBounds.right - that.mAppBounds.right; in compareTo() 636 if (n != 0) return n; in compareTo() 637 n = mAppBounds.bottom - that.mAppBounds.bottom; in compareTo() 638 if (n != 0) return n; in compareTo() 641 n = mMaxBounds.left - that.mMaxBounds.left; in compareTo() [all …]
|
/frameworks/base/core/java/android/util/ |
D | SparseSetArray.java | 49 public boolean add(int n, T value) { in add() argument 50 ArraySet<T> set = mData.get(n); in add() 53 mData.put(n, set); in add() 65 public void addAll(int n, ArraySet<T> values) { in addAll() argument 66 ArraySet<T> set = mData.get(n); in addAll() 69 mData.put(n, set); in addAll() 85 public boolean contains(int n, T value) { in contains() argument 86 final ArraySet<T> set = mData.get(n); in contains() 96 public ArraySet<T> get(int n) { in get() argument 97 return mData.get(n); in get() [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/base/services/backup/backuplib/java/com/android/server/backup/transport/ |
D | TransportStats.java | 80 pw.println(String.format(Locale.US, "%sNumber of connections: %d ", prefix, stats.n)); in dumpStats() 86 a.n + b.n, in merge() 87 (a.average * a.n + b.average * b.n) / (a.n + b.n), in merge() 92 public int n; field in TransportStats.Stats 98 n = 0; in Stats() 104 private Stats(int n, double average, long max, long min) { in Stats() argument 105 this.n = n; in Stats() 112 this(original.n, original.average, original.max, original.min); in Stats() 116 average = (average * n + sample) / (n + 1); in register() 117 n++; in register()
|
/frameworks/av/media/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/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
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | math_conformance.rscript | 11 // rootn(+/-0, n) -> +/-inf for odd n < 0 15 // rootn(+/-0, n) -> +inf for even n < 0 19 // rootn(+/-0, n) -> +/-0 for odd n > 0 23 // rootn(+/-0, n) -> +0 for even n > 0 27 // rootn(x, n) -> NaN for x < 0 and even n 31 // rootn(x, n) -> value for x < 0 and odd n
|