/frameworks/base/telephony/tests/telephonytests/src/android/telephony/ |
D | PhoneNumberUtilsTest.java | 82 byte [] b = new byte[20]; in testExtractNetworkPortion() 83 b[0] = (byte) 0x81; b[1] = (byte) 0x71; b[2] = (byte) 0x00; b[3] = (byte) 0x55; in testExtractNetworkPortion() 84 b[4] = (byte) 0x05; b[5] = (byte) 0x20; b[6] = (byte) 0xF0; in testExtractNetworkPortion() 86 PhoneNumberUtils.calledPartyBCDToString(b, 0, 7)); in testExtractNetworkPortion() 88 b[0] = (byte) 0x80; b[1] = (byte) 0x71; b[2] = (byte) 0x00; b[3] = (byte) 0x55; in testExtractNetworkPortion() 89 b[4] = (byte) 0x05; b[5] = (byte) 0x20; b[6] = (byte) 0xF0; in testExtractNetworkPortion() 91 PhoneNumberUtils.calledPartyBCDToString(b, 0, 7)); in testExtractNetworkPortion() 93 b[0] = (byte) 0x90; b[1] = (byte) 0x71; b[2] = (byte) 0x00; b[3] = (byte) 0x55; in testExtractNetworkPortion() 94 b[4] = (byte) 0x05; b[5] = (byte) 0x20; b[6] = (byte) 0xF0; in testExtractNetworkPortion() 96 PhoneNumberUtils.calledPartyBCDToString(b, 0, 7)); in testExtractNetworkPortion() [all …]
|
/frameworks/base/tests/CoreTests/android/core/ |
D | NIOTest.java | 36 void checkBuffer(Buffer b) { in checkBuffer() argument 37 assertTrue(0 <= b.position()); in checkBuffer() 38 assertTrue(b.position() <= b.limit()); in checkBuffer() 39 assertTrue(b.limit() <= b.capacity()); in checkBuffer() 44 ByteBuffer b; in testNIO() local 47 b = ByteBuffer.allocate(12); in testNIO() 48 byteBufferTest(b); in testNIO() 51 b = ByteBuffer.allocateDirect(12); in testNIO() 52 byteBufferTest(b); in testNIO() 70 private void byteBufferTest(ByteBuffer b) { in byteBufferTest() argument [all …]
|
D | PrintWriterTest.java | 51 PrintWriter b = new PrintWriter(ba); in testPrintWriter() local 53 b.print(true); in testPrintWriter() 54 b.print((char) 'A'); in testPrintWriter() 55 b.print("BCD".toCharArray()); in testPrintWriter() 56 b.print((double) 1.2); in testPrintWriter() 57 b.print((float) 3); in testPrintWriter() 58 b.print((int) 4); in testPrintWriter() 59 b.print((long) 5); in testPrintWriter() 61 b.println(); in testPrintWriter() 62 b.println(true); in testPrintWriter() [all …]
|
D | StreamTokenizerTest.java | 38 StreamTokenizer b = new StreamTokenizer(ba); in testStreamTokenizer() local 52 b.commentChar('u'); in testStreamTokenizer() 53 b.eolIsSignificant(true); in testStreamTokenizer() 54 b.lowerCaseMode(true); in testStreamTokenizer() 55 b.ordinaryChar('y'); in testStreamTokenizer() 56 b.slashStarComments(true); in testStreamTokenizer() 58 assertEquals(StreamTokenizer.TT_NUMBER, b.nextToken()); in testStreamTokenizer() 59 assertEquals(-3.8, b.nval); in testStreamTokenizer() 60 assertEquals("Token[n=-3.8], line 1", b.toString()); in testStreamTokenizer() 61 assertEquals(39, b.nextToken()); // ' in testStreamTokenizer() [all …]
|
D | ArrayListPerformanceTest.java | 245 boolean b; in testArrayListAddAll() 247 b = aList.addAll(mList); in testArrayListAddAll() 248 b = aList.addAll(mList); in testArrayListAddAll() 249 b = aList.addAll(mList); in testArrayListAddAll() 250 b = aList.addAll(mList); in testArrayListAddAll() 251 b = aList.addAll(mList); in testArrayListAddAll() 252 b = aList.addAll(mList); in testArrayListAddAll() 253 b = aList.addAll(mList); in testArrayListAddAll() 254 b = aList.addAll(mList); in testArrayListAddAll() 255 b = aList.addAll(mList); in testArrayListAddAll() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 54 public static float pow(float a, float b) { in pow() argument 55 return (float) Math.pow(a, b); in pow() 58 public static float max(float a, float b) { in max() argument 59 return a > b ? a : b; in max() 62 public static float max(int a, int b) { in max() argument 63 return a > b ? a : b; in max() 66 public static float max(float a, float b, float c) { in max() argument 67 return a > b ? (a > c ? a : c) : (b > c ? b : c); in max() 70 public static float max(int a, int b, int c) { in max() argument 71 return a > b ? (a > c ? a : c) : (b > c ? b : c); in max() [all …]
|
/frameworks/base/media/libstagefright/codecs/aacdec/ |
D | fxp_mul32_c_msc_evc_armv5.h | 56 #define fxp_mul_16_by_16(a, b) fxp_mul_16_by_16bb( a, b) argument 66 #define fxp_mac_16_by_16_bb(a, b, c) fxp_mac_16_by_16( a, b, c) argument 83 #define fxp_mul32_by_16b( a, b) fxp_mul32_by_16( a, b) argument 96 #define fxp_mul32_Q31( a, b) _MulHigh( b, a) argument 99 __inline Int32 fxp_mac32_Q31(Int32 L_add, const Int32 a, const Int32 b) in fxp_mac32_Q31() argument 101 return (L_add + _MulHigh(b, a)); in fxp_mac32_Q31() 105 __inline Int32 fxp_msu32_Q31(Int32 L_sub, const Int32 a, const Int32 b) in fxp_msu32_Q31() argument 107 return (L_sub - _MulHigh(b, a)); in fxp_msu32_Q31() 111 __inline Int32 fxp_mul32_Q30(const Int32 a, const Int32 b) in fxp_mul32_Q30() argument 113 return (Int32)(((int64)(a) * b) >> 30); in fxp_mul32_Q30() [all …]
|
D | fxp_mul32_c_msc_evc.h | 72 #define fxp_mul_16_by_16(a, b) fxp_mul_16_by_16bb( a, b) argument 149 #define fxp_mul32_by_16b( a, b) fxp_mul32_by_16( a, b) argument 174 #define fxp_mul32_Q31( a, b) _MulHigh( b, a) argument 176 __inline Int32 fxp_mac32_Q31(Int32 L_add, const Int32 a, const Int32 b) in fxp_mac32_Q31() argument 178 return (L_add + _MulHigh(b, a)); in fxp_mac32_Q31() 181 __inline Int32 fxp_msu32_Q31(Int32 L_sub, const Int32 a, const Int32 b) in fxp_msu32_Q31() argument 183 return (L_sub - _MulHigh(b, a)); in fxp_msu32_Q31() 187 __inline Int32 fxp_mul32_Q30(const Int32 a, const Int32 b) in fxp_mul32_Q30() argument 189 return (Int32)(((int64)(a) * b) >> 30); in fxp_mul32_Q30() 192 __inline Int32 fxp_mac32_Q30(const Int32 a, const Int32 b, Int32 L_add) in fxp_mac32_Q30() argument [all …]
|
D | fxp_mul32_c_equivalent.h | 74 #define fxp_mul_16_by_16(a, b) fxp_mul_16_by_16bb( a, b) argument 172 #define fxp_mul32_by_16b( a, b) fxp_mul32_by_16( a, b) argument 201 __inline Int32 fxp_mul32_Q31(const Int32 a, const Int32 b) in fxp_mul32_Q31() argument 203 return (Int32)(((int64_t)(a) * b) >> 32); in fxp_mul32_Q31() 206 __inline Int32 fxp_mac32_Q31(Int32 L_add, const Int32 a, const Int32 b) in fxp_mac32_Q31() argument 208 return (L_add + (Int32)(((int64_t)(a) * b) >> 32)); in fxp_mac32_Q31() 211 __inline Int32 fxp_msu32_Q31(Int32 L_sub, const Int32 a, const Int32 b) in fxp_msu32_Q31() argument 213 return (L_sub - (Int32)(((int64_t)(a) * b) >> 32)); in fxp_msu32_Q31() 217 __inline Int32 fxp_mul32_Q30(const Int32 a, const Int32 b) in fxp_mul32_Q30() argument 219 return (Int32)(((int64_t)(a) * b) >> 30); in fxp_mul32_Q30() [all …]
|
D | fxp_mul32_arm_gcc.h | 84 #define fxp_mul_16_by_16(a, b) fxp_mul_16_by_16bb( a, b) argument 225 #define fxp_mul32_by_16b( a, b) fxp_mul32_by_16( a, b) argument 274 static inline Int32 fxp_mac32_Q30(const Int32 a, const Int32 b, Int32 L_add) in fxp_mac32_Q30() argument 279 register Int32 rb = (Int32)b; in fxp_mac32_Q30() 295 static inline Int32 fxp_mac32_Q31(Int32 L_add, const Int32 a, const Int32 b) in fxp_mac32_Q31() argument 301 register Int32 rb = (Int32)b; in fxp_mac32_Q31() 317 static inline Int32 fxp_msu32_Q31(Int32 L_sub, const Int32 a, const Int32 b) in fxp_msu32_Q31() argument 322 register Int32 rb = (Int32)b; in fxp_msu32_Q31() 338 static inline Int32 fxp_mul32_Q31(const Int32 a, const Int32 b) in fxp_mul32_Q31() argument 343 register Int32 rb = (Int32)b; in fxp_mul32_Q31() [all …]
|
D | fxp_mul32_arm_v4_gcc.h | 94 #define fxp_mul_16_by_16(a, b) fxp_mul_16_by_16bb( a, b) argument 296 #define fxp_mul32_by_16b( a, b) fxp_mul32_by_16( a, b) argument 356 static inline Int32 fxp_mac32_Q30(const Int32 a, const Int32 b, Int32 L_add) in fxp_mac32_Q30() argument 361 register Int32 rb = (Int32)b; in fxp_mac32_Q30() 377 static inline Int32 fxp_mac32_Q31(Int32 L_add, const Int32 a, const Int32 b) in fxp_mac32_Q31() argument 383 register Int32 rb = (Int32)b; in fxp_mac32_Q31() 399 static inline Int32 fxp_msu32_Q31(Int32 L_sub, const Int32 a, const Int32 b) in fxp_msu32_Q31() argument 404 register Int32 rb = (Int32)b; in fxp_msu32_Q31() 420 static inline Int32 fxp_mul32_Q31(const Int32 a, const Int32 b) in fxp_mul32_Q31() argument 425 register Int32 rb = (Int32)b; in fxp_mul32_Q31() [all …]
|
/frameworks/base/libs/utils/ |
D | BufferedTextOutput.cpp | 52 void* b = realloc(buffer, ((len+bufferPos)*3)/2); in append() local 53 if (!b) return NO_MEMORY; in append() 54 buffer = (char*)b; in append() 65 void* b = realloc(buffer, 256); in restart() local 66 if (b) { in restart() 67 buffer = (char*)b; in restart() 160 BufferState* b = getBuffer(); in print() local 175 if (b->atFront) { in print() 176 if (b->indent > 0) { in print() 178 const char* prefix = stringForIndent(b->indent); in print() [all …]
|
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
D | pv_mp3dec_fxd_op_msc_evc.h | 57 __inline int32 fxp_mul32_Q30(const int32 a, const int32 b) in fxp_mul32_Q30() argument 59 return (int32)(((int64)(a) * b) >> 30); in fxp_mul32_Q30() 63 __inline int32 fxp_mac32_Q30(const int32 a, const int32 b, int32 L_add) in fxp_mac32_Q30() argument 65 return (L_add + (int32)(((int64)(a) * b) >> 30)); in fxp_mac32_Q30() 73 #define fxp_mul32_Q32( a, b) _MulHigh( b, a) argument 77 __inline int32 fxp_mul32_Q28(const int32 a, const int32 b) in fxp_mul32_Q28() argument 79 return (int32)(((int64)(a) * b) >> 28); in fxp_mul32_Q28() 83 __inline int32 fxp_mul32_Q27(const int32 a, const int32 b) in fxp_mul32_Q27() argument 85 return (int32)(((int64)(a) * b) >> 27); in fxp_mul32_Q27() 90 __inline int32 fxp_mul32_Q26(const int32 a, const int32 b) in fxp_mul32_Q26() argument [all …]
|
D | pv_mp3dec_fxd_op_c_equivalent.h | 55 int32 b = (a < 0) ? -a : a; in pv_abs() local 56 return b; in pv_abs() 62 __inline Int32 fxp_mul32_Q30(const Int32 a, const Int32 b) in fxp_mul32_Q30() argument 64 return (Int32)(((int64)(a) * b) >> 30); in fxp_mul32_Q30() 67 __inline Int32 fxp_mac32_Q30(const Int32 a, const Int32 b, Int32 L_add) in fxp_mac32_Q30() argument 69 return (L_add + (Int32)(((int64)(a) * b) >> 30)); in fxp_mac32_Q30() 72 __inline Int32 fxp_mul32_Q32(const Int32 a, const Int32 b) in fxp_mul32_Q32() argument 74 return (Int32)(((int64)(a) * b) >> 32); in fxp_mul32_Q32() 78 __inline Int32 fxp_mul32_Q28(const Int32 a, const Int32 b) in fxp_mul32_Q28() argument 80 return (Int32)(((int64)(a) * b) >> 28); in fxp_mul32_Q28() [all …]
|
D | pv_mp3dec_fxd_op_arm_gcc.h | 58 static inline int32 fxp_mul32_Q30(const int32 a, const int32 b) in fxp_mul32_Q30() argument 63 register int32 rb = (int32)b; in fxp_mul32_Q30() 75 static inline int32 fxp_mac32_Q30(const int32 a, const int32 b, int32 L_add) in fxp_mac32_Q30() argument 80 register int32 rb = (int32)b; in fxp_mac32_Q30() 97 static inline int32 fxp_mul32_Q32(const int32 a, const int32 b) in fxp_mul32_Q32() argument 102 register int32 rb = (int32)b; in fxp_mul32_Q32() 114 static inline int32 fxp_mul32_Q29(const int32 a, const int32 b) in fxp_mul32_Q29() argument 119 register int32 rb = (int32)b; in fxp_mul32_Q29() 131 static inline int32 fxp_mul32_Q28(const int32 a, const int32 b) in fxp_mul32_Q28() argument 137 register int32 rb = (int32)b; in fxp_mul32_Q28() [all …]
|
/frameworks/base/libs/surfaceflinger_client/tests/SharedBufferStack/ |
D | SharedBufferStackTest.cpp | 27 void log(const char* prefix, int *b, size_t num); 46 int b = c.dequeue(); in main() local 47 c.lock(b); in main() 48 c.queue(b); in main() 73 void log(const char* prefix, int *b, size_t num) in log() argument 77 printf("%d ", b[i]); in log() 91 int b[num], u[num], r[num]; in test0() local 94 b[i] = c.dequeue(); in test0() 95 assert(b[i]==list[i]); in test0() 97 log("DQ", b, num); in test0() [all …]
|
/frameworks/base/media/libstagefright/codecs/avc/enc/src/ |
D | findhalfpel.cpp | 154 register int a = 0, b = 0, c = 0, d = 0, e = 0, f = 0; // temp register in GenerateHalfPelPred() local 191 b = ref[-1]; in GenerateHalfPelPred() 196 *dst_16++ = a + f - 5 * (b + e) + 20 * (c + d); in GenerateHalfPelPred() 198 *dst_16++ = b + a - 5 * (c + f) + 20 * (d + e); in GenerateHalfPelPred() 199 b = ref[5]; in GenerateHalfPelPred() 200 *dst_16++ = c + b - 5 * (d + a) + 20 * (e + f); in GenerateHalfPelPred() 202 *dst_16++ = d + c - 5 * (e + b) + 20 * (f + a); in GenerateHalfPelPred() 208 *dst_16 = e + d - 5 * (f + c) + 20 * (a + b); in GenerateHalfPelPred() 227 b = ref[-1]; in GenerateHalfPelPred() 232 tmp32 = a + f - 5 * (b + e) + 20 * (c + d); in GenerateHalfPelPred() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 198 int b = Selection.getSelectionEnd(content); in deleteSurroundingText() local 200 if (a > b) { in deleteSurroundingText() 202 a = b; in deleteSurroundingText() 203 b = tmp; in deleteSurroundingText() 216 if (cb > b) b = cb; in deleteSurroundingText() 229 b = b - deleted; in deleteSurroundingText() 231 int end = b + rightLength; in deleteSurroundingText() 234 content.delete(b, end); in deleteSurroundingText() 271 int b = Selection.getSelectionEnd(content); in getCursorCapsMode() local 273 if (a > b) { in getCursorCapsMode() [all …]
|
/frameworks/base/docs/html/intl/ja/guide/ |
D | index.jd | 17 <dt><b>Android の基本</b></dt> 20 <dt><b>フレームワーク トピック</b></dt> 23 <dt><b>開発</b></dt> 26 <dt><b>公開</b></dt> 29 <dt><b>ベスト プラクティス</b></dt> 32 <dt><b>チュートリアルとサンプル</b></dt> 35 <dt><b>付録</b></dt>
|
/frameworks/base/graphics/java/android/renderscript/ |
D | ProgramStore.java | 125 public void setColorMask(boolean r, boolean g, boolean b, boolean a) { in setColorMask() argument 128 mColorMaskB = b; in setColorMask() 141 static synchronized ProgramStore internalCreate(RenderScript rs, Builder b) { in internalCreate() argument 144 if (b.mIn != null) { in internalCreate() 145 inID = b.mIn.mID; in internalCreate() 147 if (b.mOut != null) { in internalCreate() 148 outID = b.mOut.mID; in internalCreate() 151 rs.nProgramFragmentStoreDepthFunc(b.mDepthFunc.mID); in internalCreate() 152 rs.nProgramFragmentStoreDepthMask(b.mDepthMask); in internalCreate() 153 rs.nProgramFragmentStoreColorMask(b.mColorMaskR, in internalCreate() [all …]
|
D | SimpleMesh.java | 136 static synchronized SimpleMesh internalCreate(RenderScript rs, Builder b) { in internalCreate() argument 141 if (b.mIndexType.t != null) { in internalCreate() 142 indexID = b.mIndexType.t.mID; in internalCreate() 143 } else if (b.mIndexType.size != 0) { in internalCreate() 144 b.mIndexType.t = b.newType(b.mIndexType.e, b.mIndexType.size); in internalCreate() 145 indexID = b.mIndexType.t.mID; in internalCreate() 146 toDestroy[toDestroyCount++] = b.mIndexType.t; in internalCreate() 149 int[] IDs = new int[b.mVertexTypeCount]; in internalCreate() 150 for(int ct=0; ct < b.mVertexTypeCount; ct++) { in internalCreate() 151 if (b.mVertexTypes[ct].t != null) { in internalCreate() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BroadcasterTest.java | 41 Broadcaster b = new Broadcaster(); in test1() 44 b.request(MESSAGE_A, h, MESSAGE_B); in test1() 49 b.broadcast(msg); in test1() 73 Broadcaster b = new Broadcaster(); in go() local 79 b.request(MESSAGE_A, mHandlers[i], MESSAGE_B + i); in go() 85 b.broadcast(msg); in go() 138 Broadcaster b = new Broadcaster(); in test4() 142 b.request(MESSAGE_A, h1, MESSAGE_C); in test4() 143 b.request(MESSAGE_B, h2, MESSAGE_D); in test4() 148 b.broadcast(msg); in test4() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | StaticLayoutTest.java | 43 LayoutBuilder b = builder(); in testGetters1() local 44 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters1() 49 Layout l = b.build(); in testGetters1() 60 assertEquals(b.width, l.getEllipsizedWidth()); in testGetters1() 69 LayoutBuilder b = builder() in testGetters2() local 71 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters2() 73 Layout l = b.build(); in testGetters2() 84 LayoutBuilder b = builder() in testGetters3() local 87 FontMetricsInt fmi = b.paint.getFontMetricsInt(); in testGetters3() 89 Layout l = b.build(); in testGetters3() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Color.java | 120 int b = color & 0xFF; in hue() local 122 int V = Math.max(b, Math.max(r, g)); in hue() 123 int temp = Math.min(b, Math.min(r, g)); in hue() 133 final float cb = (V - b) / vtemp; in hue() 162 int b = color & 0xFF; in saturation() local 165 int V = Math.max(b, Math.max(r, g)); in saturation() 166 int temp = Math.min(b, Math.min(r, g)); in saturation() 189 int b = color & 0xFF; in brightness() local 191 int V = Math.max(b, Math.max(r, g)); in brightness() 253 public static int HSBtoColor(float h, float s, float b) { in HSBtoColor() argument [all …]
|
/frameworks/base/docs/html/intl/ja/community/ |
D | index.jd | 25 <li><b>メーリング リストのアーカイブを検索</b>して、同じ質問に関するディスカッションが既に存在しないか調べてください。 31 …ラインが記載されている<b><a href="http://sites.google.com/a/android.com/opensource/discuss/android-discussion… 33 <li><b>質問に最適なメーリング リストを選択してください</b>。後述するように、デベロッパー向けのメーリング リストは何種類かに分かれています。</li> 35 <b>質問の内容を明確に</b>。明確な質問は、回答者と、将来情報を探そうとする人の双方にとって有益です。</li> 36 <li><b>投稿は詳しく書いてください</b>。回答者の人たちが問題を理解するのに役立ちます。コードやログのスニペット、スクリーンショットへのリンクを含めることも有用です。質問をわかりやすく表現す… 44 <li><b>Android SDK Japan</b> - Android SDK に関する質問と答え、提案とフィードバックを交換できる場です。 51 <li><b>Android 初心者向け</b> - Android アプリケーションの開発初心者向けです。Android SDK と基本的な Android API の利用方法について学習したい場… 58 <li><b>Android デベロッパー向け</b> - Android アプリケーション デベロッパーとして経験を積むにつれ、Android アプリケーション開発の基本を把握して、SDK を使い… 65 <li><b>Android ディスカッション</b> - Android に関する「井戸端会議」です。ここでは、Android プラットフォームへのアイデア、自分のアプリケーションの公表、Andr… 72 <li><b>Android セキュリティ ディスカッション</b> - 安全な開発、新たに発生したセキュリティの問題、Android デベロッパー向けの Android デベロッパーによるベスト … [all …]
|