/development/vndk/tools/definition-tool/tests/ |
D | test_dex_file.py | 20 self.assertEqual(b'\xc0\x80', u'\u0000'.encode('mutf-8')) 21 self.assertEqual(b'\x09', u'\u0009'.encode('mutf-8')) 22 self.assertEqual(b'\x7f', u'\u007f'.encode('mutf-8')) 23 self.assertEqual(b'\xc2\x80', u'\u0080'.encode('mutf-8')) 24 self.assertEqual(b'\xdf\xbf', u'\u07ff'.encode('mutf-8')) 25 self.assertEqual(b'\xe0\xa0\x80', u'\u0800'.encode('mutf-8')) 26 self.assertEqual(b'\xe7\xbf\xbf', u'\u7fff'.encode('mutf-8')) 27 self.assertEqual(b'\xed\xa0\x81\xed\xb0\x80', 32 self.assertEqual(u'\u0000', b'\xc0\x80'.decode('mutf-8')) 33 self.assertEqual(u'\u0009', b'\x09'.decode('mutf-8')) [all …]
|
/development/samples/RenderScript/Levels/src/com/android/rs/levels/ |
D | LevelsDalvikActivity.java | 170 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap() local 171 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap() 173 c.drawBitmap(b, 0, 0, null); in loadBitmap() 174 b.recycle(); in loadBitmap() 186 float b = (float)((mInPixels[i] >> 16) & 0xff); in filter() local 188 float tr = r * m[0] + g * m[3] + b * m[6]; in filter() 189 float tg = r * m[1] + g * m[4] + b * m[7]; in filter() 190 float tb = r * m[2] + g * m[5] + b * m[8]; in filter() 193 b = tb; in filter() 199 if (b < 0.f) b = 0.f; in filter() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | BitmapPixels.java | 53 private static int pack8888(int r, int g, int b, int a) { in pack8888() argument 54 return (r << 0) | ( g << 8) | (b << 16) | (a << 24); in pack8888() 57 private static short pack565(int r, int g, int b) { in pack565() argument 58 return (short)((r << 11) | ( g << 5) | (b << 0)); in pack565() 61 private static short pack4444(int r, int g, int b, int a) { in pack4444() argument 62 return (short)((a << 0) | ( b << 4) | (g << 8) | (r << 12)); in pack4444() 76 int b = Color.blue(c); in premultiplyColor() local 81 b = mul255(b, a); in premultiplyColor() 83 return pack8888(r, g, b, a); in premultiplyColor() 91 int b = getB32(from) << 23; in makeRamp() local [all …]
|
D | ColorPickerDialog.java | 134 int b = ave(Color.blue(c0), Color.blue(c1), p); in interpColor() local 136 return Color.argb(a, r, g, b); in interpColor() 143 int b = Color.blue(color); in rotateColor() local 156 int ir = floatToByte(a[0] * r + a[1] * g + a[2] * b); in rotateColor() 157 int ig = floatToByte(a[5] * r + a[6] * g + a[7] * b); in rotateColor() 158 int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b); in rotateColor()
|
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/ |
D | ShortcutHelper.java | 141 final ShortcutInfo.Builder b = new ShortcutInfo.Builder( in refreshShortcuts() local 144 setSiteInformation(b, shortcut.getIntent().getData()); in refreshShortcuts() 145 setExtras(b); in refreshShortcuts() 147 updateList.add(b.build()); in refreshShortcuts() 162 final ShortcutInfo.Builder b = new ShortcutInfo.Builder(mContext, urlAsString); in createShortcutForUrl() local 165 b.setIntent(new Intent(Intent.ACTION_VIEW, uri)); in createShortcutForUrl() 167 setSiteInformation(b, uri); in createShortcutForUrl() 168 setExtras(b); in createShortcutForUrl() 170 return b.build(); in createShortcutForUrl() 173 private ShortcutInfo.Builder setSiteInformation(ShortcutInfo.Builder b, Uri uri) { in setSiteInformation() argument [all …]
|
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/ |
D | ShortcutHelper.java | 143 final ShortcutInfo.Builder b = new ShortcutInfo.Builder( in refreshShortcuts() local 146 setSiteInformation(b, shortcut.getIntent().getData()); in refreshShortcuts() 147 setExtras(b); in refreshShortcuts() 149 updateList.add(b.build()); in refreshShortcuts() 165 final ShortcutInfo.Builder b = new ShortcutInfo.Builder(mContext, urlAsString); in createShortcutForUrl() local 168 b.setIntent(new Intent(Intent.ACTION_VIEW, uri)); in createShortcutForUrl() 170 setSiteInformation(b, uri); in createShortcutForUrl() 171 setExtras(b); in createShortcutForUrl() 173 return b.build(); in createShortcutForUrl() 176 private ShortcutInfo.Builder setSiteInformation(ShortcutInfo.Builder b, Uri uri) { in setSiteInformation() argument [all …]
|
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/ |
D | InsecureSHA1PRNGKeyDerivator.java | 440 int b = arrW[HASH_OFFSET +1]; 464 ( ( b & c) | ((~b) & d) ) + 468 c = ( b<<30 ) | ( b>>>2 ) ; 469 b = a; 474 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; 477 c = ( b<<30 ) | ( b>>>2 ) ; 478 b = a; 483 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) + 487 c = ( b<<30 ) | ( b>>>2 ) ; 488 b = a; [all …]
|
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/ |
D | GameView.java | 355 Bundle b = new Bundle(); 358 b.putParcelable("gv_super_state", s); 360 b.putBoolean("gv_en", isEnabled()); 366 b.putIntArray("gv_data", data); 368 b.putInt("gv_sel_cell", mSelectedCell); 369 b.putInt("gv_sel_val", mSelectedValue.getValue()); 370 b.putInt("gv_curr_play", mCurrentPlayer.getValue()); 371 b.putInt("gv_winner", mWinner.getValue()); 373 b.putInt("gv_win_col", mWinCol); 374 b.putInt("gv_win_row", mWinRow); [all …]
|
/development/vndk/tools/sourcedr/ninja/tests/testdata/ |
D | global_binding.ninja | 2 b = 2 5 d = $a $b $c 6 e = mixed $a and $b
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ShareContent.java | 44 Uri.Builder b = new Uri.Builder(); in onCreate() 45 b.scheme("content"); in onCreate() 46 b.authority("com.example.android.apis.content.FileProvider"); in onCreate() 49 b.appendEncodedPath(Integer.toString(tv.assetCookie)); in onCreate() 50 b.appendEncodedPath(tv.string.toString()); in onCreate() 51 Uri uri = b.build(); in onCreate()
|
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
D | ShortcutListFragment.java | 52 final Bundle b = new Bundle(); in setArguments() local 53 b.putString(ARG_TARGET_PACKAGE, targetPackage); in setArguments() 54 b.putParcelable(ARG_TARGET_ACTIVITY, targetActivity); in setArguments() 55 b.putBoolean(ARG_INCLUDE_DYNAMIC, includeDynamic); in setArguments() 56 b.putBoolean(ARG_INCLUDE_MANIFEST, includeManifest); in setArguments() 57 b.putBoolean(ARG_INCLUDE_PINNED, includePinned); in setArguments() 58 b.putParcelable(ARG_USER, user); in setArguments() 59 b.putBoolean(ARG_SHOW_DETAILS, showDetails); in setArguments() 61 setArguments(b); in setArguments() 157 final Bundle b = getArguments(); in refreshList() local [all …]
|
/development/vndk/tools/header-checker/tests/integration/c_and_cpp/include/ |
D | c_and_cpp.h | 15 Foo(int *a, int *b) : a_(a), b_(b) {} in Foo() argument 21 Foo foo(int *a, int *b);
|
/development/samples/browseable/HdrViewfinder/src/rs/ |
D | hdr_merge.rscript | 34 curPixel.b = rsGetElementAtYuv_uchar_V(gCurrentFrame, x, y); 45 uchar saturationCurrent = abs(curPixel.g - 128) + abs(curPixel.b - 128); 46 uchar saturationPrev = abs(prevPixel.g - 128) + abs(prevPixel.b - 128); 48 mergedPixel.b = saturationCurrent > saturationPrev ? curPixel.b : prevPixel.b; 66 mergedPixel.b * 1436 / 1024 - 179; 69 mergedPixel.b * 93604 / 131072 + 91; 70 rgb.b = mergedPixel.r +
|
/development/vndk/tools/header-checker/tests/integration/c_and_cpp/ |
D | source1.cpp | 4 Foo foo(int *a, int *b) { in foo() argument 6 return Foo(a, b); in foo()
|
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/ |
D | QuotedPrintable.java | 45 int b = bytes[i]; in decodeQuotedPrintable() local 46 if (b == ESCAPE_CHAR) { in decodeQuotedPrintable() 63 buffer.write(b); in decodeQuotedPrintable()
|
/development/samples/browseable/CustomChoiceList/src/com.example.android.customchoicelist/ |
D | CheckableLinearLayout.java | 47 public void setChecked(boolean b) { in setChecked() argument 48 if (b != mChecked) { in setChecked() 49 mChecked = b; in setChecked()
|
/development/cmds/monkey/ |
D | example_script.txt | 29 key down b 30 key up b 43 key down b 44 key up b
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
D | SyncUtils.java | 90 Bundle b = new Bundle(); in TriggerRefresh() local 92 b.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); in TriggerRefresh() 93 b.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); in TriggerRefresh() 97 b); // Extras in TriggerRefresh() local
|
/development/samples/ApiDemos/src/com/example/android/apis/hardware/ |
D | ConsumerIr.java | 103 StringBuilder b = new StringBuilder(); 113 b.append("IR Carrier Frequencies:\n"); 115 b.append(String.format(" %d - %d\n", range.getMinFrequency(), 118 mFreqsText.setText(b.toString());
|
/development/vndk/tools/header-checker/tests/integration/cpp/header/ |
D | undeclared_types.h | 9 extern namespace_b::template_b<B> b; 10 extern const decltype(b) c;
|
/development/samples/SimpleJNI/jni/ |
D | native.cpp | 31 add(JNIEnv* /*env*/, jobject /*thiz*/, jint a, jint b) { in add() argument 32 int result = a + b; in add() 33 ALOGI("%d + %d = %d", a, b, result); in add()
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
D | MidiConstants.java | 94 byte b = msg[offset + i]; in isAllActiveSensing() 95 if (b != MidiConstants.STATUS_ACTIVE_SENSING) { in isAllActiveSensing()
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
D | MidiConstants.java | 94 byte b = msg[offset + i]; in isAllActiveSensing() 95 if (b != MidiConstants.STATUS_ACTIVE_SENSING) { in isAllActiveSensing()
|
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/ |
D | ShortcutPublisher.java | 190 public static ShortcutInfo.Builder addRandomIntents(Context context, ShortcutInfo.Builder b) { in addRandomIntents() argument 192 b.setShortLabel(sIntentList.get(i).first); in addRandomIntents() 193 b.setIntent(new Intent(Intent.ACTION_VIEW, Uri.parse(sIntentList.get(i).second))); in addRandomIntents() 196 b.setIcon(Icon.createWithResource(context, R.drawable.icon2)); in addRandomIntents() 198 b.setIcon(Icon.createWithBitmap(BitmapFactory.decodeResource(context.getResources(), in addRandomIntents() 201 return b; in addRandomIntents() 205 ShortcutInfoCompat.Builder b) { in addRandomIntents() argument 207 b.setShortLabel(sIntentList.get(i).first); in addRandomIntents() 208 b.setIntent(new Intent(Intent.ACTION_VIEW, Uri.parse(sIntentList.get(i).second))); in addRandomIntents() 211 b.setIcon(IconCompat.createWithResource(context, R.drawable.icon2)); in addRandomIntents() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | FragmentArguments.java | 62 Bundle b = new Bundle(); in newInstance() local 63 b.putCharSequence("label", label); in newInstance() 64 f.setArguments(b); in newInstance()
|