/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 198 for (int n = 1; n < MAX_N; n++) { in GeomagneticField() 199 for (int m = 0; m <= n; m++) { in GeomagneticField() 201 float g = G_COEFF[n][m] + yearsSinceBase * DELTA_G[n][m]; in GeomagneticField() 202 float h = H_COEFF[n][m] + yearsSinceBase * DELTA_H[n][m]; in GeomagneticField() 209 gcX += relativeRadiusPower[n+2] in GeomagneticField() 211 * legendre.mPDeriv[n][m] in GeomagneticField() 212 * SCHMIDT_QUASI_NORM_FACTORS[n][m]; in GeomagneticField() 216 gcY += relativeRadiusPower[n+2] * m in GeomagneticField() 218 * legendre.mP[n][m] in GeomagneticField() 219 * SCHMIDT_QUASI_NORM_FACTORS[n][m] in GeomagneticField() [all …]
|
/frameworks/av/media/libstagefright/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/av/media/libeffects/lvm/lib/Common/lib/ |
D | VectorArithmetic.h | 35 LVM_INT16 n ); 39 LVM_INT16 n ); 43 LVM_INT16 n ); 49 LVM_INT16 n ); 53 LVM_INT16 n ); 68 LVM_INT16 n); 73 LVM_INT16 n); 87 LVM_INT16 n); 94 LVM_INT16 n) ; /* Number of stereo samples */ 101 LVM_INT16 n); [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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 23 public final int n; field in Matrix 34 n = rows; in Matrix() 49 n = (values.length + stride - 1) / stride; in Matrix() 52 if (mem.length != n * m) throw new IllegalArgumentException(); in Matrix() 61 n = that.n; in Matrix() 78 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in get() 91 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in put() 103 return plus(that, new Matrix(n, m)); in plus() 116 if (!(this.n == that.n && this.m == that.m && this.n == result.n && this.m == result.m)) { in plus() 133 return minus(that, new Matrix(n, m)); in minus() [all …]
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 124 Notification n = new Notification.Builder(NotificationTestList.this, 129 mNM.notify(7001, n); 136 Notification n = new Notification.Builder(NotificationTestList.this, 141 mNM.notify("default", 7004, n); 154 Notification n = new Notification.Builder(NotificationTestList.this, 159 mNM.notify("default", 7004, n); 171 Notification n = new Notification.Builder(NotificationTestList.this, "min") 176 mNM.notify(6000, n); 177 n = new Notification.Builder(NotificationTestList.this, "low") 182 mNM.notify(6001, n); [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/core/java/android/os/ |
D | HwBlob.java | 60 final int n = array.length; in wrapArray() local 61 Boolean[] wrappedArray = new Boolean[n]; in wrapArray() 62 for (int i = 0; i < n; ++i) { in wrapArray() 69 final int n = array.length; in wrapArray() local 70 Long[] wrappedArray = new Long[n]; in wrapArray() 71 for (int i = 0; i < n; ++i) { in wrapArray() 78 final int n = array.length; in wrapArray() local 79 Byte[] wrappedArray = new Byte[n]; in wrapArray() 80 for (int i = 0; i < n; ++i) { in wrapArray() 87 final int n = array.length; in wrapArray() local [all …]
|
D | RevocableFileDescriptor.java | 120 int n = 0; 121 while (n < size) { 123 n += Os.pread(mInner, data, n, size - n, offset + n); 126 n += e.bytesTransferred; 129 return n; 135 int n = 0; 136 while (n < size) { 138 n += Os.pwrite(mInner, data, n, size - n, offset + n); 141 n += e.bytesTransferred; 144 return n;
|
D | HwParcel.java | 69 final int n = val.size(); in writeBoolVector() local 70 boolean[] array = new boolean[n]; in writeBoolVector() 71 for (int i = 0; i < n; ++i) { in writeBoolVector() 79 final int n = val.size(); in writeInt8Vector() local 80 byte[] array = new byte[n]; in writeInt8Vector() 81 for (int i = 0; i < n; ++i) { in writeInt8Vector() 89 final int n = val.size(); in writeInt16Vector() local 90 short[] array = new short[n]; in writeInt16Vector() 91 for (int i = 0; i < n; ++i) { in writeInt16Vector() 99 final int n = val.size(); in writeInt32Vector() local [all …]
|
D | MessageQueue.java | 651 Message n = p.next; in removeMessages() local 652 mMessages = n; in removeMessages() 654 p = n; in removeMessages() 659 Message n = p.next; in removeMessages() local 660 if (n != null) { in removeMessages() 661 if (n.target == h && n.what == what in removeMessages() 662 && (object == null || n.obj == object)) { in removeMessages() 663 Message nn = n.next; in removeMessages() 664 n.recycleUnchecked(); in removeMessages() 669 p = n; in removeMessages() [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
D | Utils.java | 49 for (int n = 0; n < s.length(); n++) { in parseMac() 50 int nibble = Utils.fromHex(s.charAt(n), true); // Set lenient to not blow up on ':' in parseMac() 66 for (int n = (len - 1) * Byte.SIZE; n >= 0; n -= Byte.SIZE) { in macToString() 72 sb.append(String.format("%02x", (mac >>> n) & Constants.BYTE_MASK)); in macToString() 82 for (int n = 0; n < PLMNText.length; n++) { in getMccMnc() 83 String expect = PLMNText[n]; in getMccMnc() 85 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc() 91 for (int n = 0; n < prefix.length(); n++) { in getMccMnc() 92 char ch = prefix.charAt(n); in getMccMnc() 147 for (int n = 0; n < s.length(); n++) { in toUnicodeEscapedString() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationTest.java | 47 Notification n = new Notification.Builder(mContext, "test") in testColorizedByPermission() local 51 assertTrue(n.isColorized()); in testColorizedByPermission() 53 n = new Notification.Builder(mContext, "test") in testColorizedByPermission() 56 assertFalse(n.isColorized()); in testColorizedByPermission() 58 n = new Notification.Builder(mContext, "test") in testColorizedByPermission() 62 assertFalse(n.isColorized()); in testColorizedByPermission() 67 Notification n = new Notification.Builder(mContext, "test") in testColorizedByForeground() local 71 assertTrue(n.isColorized()); in testColorizedByForeground() 73 n = new Notification.Builder(mContext, "test") in testColorizedByForeground() 76 assertFalse(n.isColorized()); in testColorizedByForeground() [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/core/java/android/net/ |
D | NetworkFactory.java | 174 NetworkRequestInfo n = mNetworkRequests.get(request.requestId); in handleAddRequest() local 175 if (n == null) { in handleAddRequest() 177 n = new NetworkRequestInfo(request, score); in handleAddRequest() 178 mNetworkRequests.put(n.request.requestId, n); in handleAddRequest() 181 n.score = score; in handleAddRequest() 185 evalRequest(n); in handleAddRequest() 190 NetworkRequestInfo n = mNetworkRequests.get(request.requestId); in handleRemoveRequest() local 191 if (n != null) { in handleRemoveRequest() 193 if (n.requested) releaseNetworkFor(n.request); in handleRemoveRequest() 230 private void evalRequest(NetworkRequestInfo n) { in evalRequest() argument [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/libeffects/lvm/lib/Common/src/ |
D | MixSoft_2St_D32C31_SAT.c | 34 LVM_INT16 n) in MixSoft_2St_D32C31_SAT() argument 37 if(n <= 0) return; in MixSoft_2St_D32C31_SAT() 44 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*)pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() 47 src2, dst, n); in MixSoft_2St_D32C31_SAT() 59 src2, dst, n); in MixSoft_2St_D32C31_SAT() 61 MixSoft_1St_D32C31_WRA((Mix_1St_Cll_FLOAT_t*) pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() 63 Core_MixHard_2St_D32C31_SAT(pInstance, src1, src2, dst, n); in MixSoft_2St_D32C31_SAT() 71 LVM_INT16 n) in MixSoft_2St_D32C31_SAT() argument 74 if(n<=0) return; in MixSoft_2St_D32C31_SAT() 81 MixSoft_1St_D32C31_WRA( (Mix_1St_Cll_t*) pInstance, src1, dst, n); in MixSoft_2St_D32C31_SAT() [all …]
|
D | LVC_MixSoft_2St_D16C31_SAT.c | 33 LVM_INT16 n) in LVC_MixSoft_2St_D16C31_SAT() argument 40 if(n <= 0) return; in LVC_MixSoft_2St_D16C31_SAT() 47 src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 51 src1, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 57 src1, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 59 src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 67 src1, src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 75 LVM_INT16 n) in LVC_MixSoft_2St_D16C31_SAT() argument 80 if(n<=0) return; in LVC_MixSoft_2St_D16C31_SAT() 86 … LVC_MixSoft_1St_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[1]), src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() [all …]
|
D | JoinTo2i_32x32.c | 31 LVM_INT16 n ) in JoinTo2i_32x32() argument 35 srcL += n-1; in JoinTo2i_32x32() 36 srcR += n-1; in JoinTo2i_32x32() 37 dst += ((2*n)-1); in JoinTo2i_32x32() 39 for (ii = n; ii != 0; ii--) in JoinTo2i_32x32() 56 LVM_INT16 n ) in JoinTo2i_Float() argument 60 srcL += n - 1; in JoinTo2i_Float() 61 srcR += n - 1; in JoinTo2i_Float() 62 dst += ((2 * n) - 1); in JoinTo2i_Float() 64 for (ii = n; ii != 0; ii--) in JoinTo2i_Float()
|
D | Copy_16.c | 30 LVM_INT16 n ) in Copy_16() argument 36 for (ii = n; ii != 0; ii--) in Copy_16() 45 src += n - 1; in Copy_16() 46 dst += n - 1; in Copy_16() 47 for (ii = n; ii != 0; ii--) in Copy_16() 60 LVM_INT16 n ) in Copy_Float() argument 66 for (ii = n; ii != 0; ii--) in Copy_Float() 75 src += n - 1; in Copy_Float() 76 dst += n - 1; in Copy_Float() 77 for (ii = n; ii != 0; ii--) in Copy_Float()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | Utils.java | 52 for (int n = 0; n < s.length(); n++) { in parseMac() 53 int nibble = Utils.fromHex(s.charAt(n), true); // Set lenient to not blow up on ':' in parseMac() 69 for (int n = (len - 1)*Byte.SIZE; n >= 0; n -= Byte.SIZE) { in macToString() 76 sb.append(String.format("%02x", (mac >>> n) & Constants.BYTE_MASK)); in macToString() 86 for (int n = 0; n < PLMNText.length; n++ ) { in getMccMnc() 87 String expect = PLMNText[n]; in getMccMnc() 89 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc() 95 for (int n = 0; n < prefix.length(); n++) { in getMccMnc() 96 char ch = prefix.charAt(n); in getMccMnc() 135 for (int n = 0; n < s.length(); n++) { in toUnicodeEscapedString() [all …]
|
/frameworks/support/compat/tests/java/android/support/v4/app/ |
D | NotificationCompatTest.java | 73 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testBadgeIcon() local 77 assertEquals(badgeIcon, NotificationCompat.getBadgeIconType(n)); in testBadgeIcon() 80 NotificationCompat.getBadgeIconType(n)); in testBadgeIcon() 87 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testTimeout() local 91 assertEquals(timeout, NotificationCompat.getTimeoutAfter(n)); in testTimeout() 93 assertEquals(0, NotificationCompat.getTimeoutAfter(n)); in testTimeout() 100 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testShortcutId() local 104 assertEquals(shortcutId, NotificationCompat.getShortcutId(n)); in testShortcutId() 106 assertEquals(null, NotificationCompat.getShortcutId(n)); in testShortcutId() 113 Notification n = new NotificationCompat.Builder(mActivityTestRule.getActivity()) in testNotificationChannel() local [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/core/jni/android/opengl/ |
D | poly_clip.cpp | 43 if ((q)->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \ 67 q->n = 0; in poly_clip_to_halfspace() 70 u = &p->vert[p->n-1]; in poly_clip_to_halfspace() 72 for (v= &p->vert[0], i=p->n; i>0; i--, u=v, tu=tv, v++) { in poly_clip_to_halfspace() 81 wp = (float *)&q->vert[q->n].sx; in poly_clip_to_halfspace() 85 q->n++; in poly_clip_to_halfspace() 88 q->vert[q->n++] = *v; in poly_clip_to_halfspace() 114 for (v=p1->vert, i=p1->n; i>0; i--, v++) { in poly_clip_to_frustum() 129 if (x0out==p1->n || x1out==p1->n || y0out==p1->n || in poly_clip_to_frustum() 130 y1out==p1->n || z0out==p1->n || z1out==p1->n) { in poly_clip_to_frustum() [all …]
|