Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 182) sorted by relevance

12345678

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapPixels.java53 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 …]
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DShortcutHelper.java141 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/
DShortcutHelper.java143 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/
DInsecureSHA1PRNGKeyDerivator.java440 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/
DGameView.java355 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/tools/winscope/src/trace_processor/
Dbigint_math.ts78 static max(a: bigint, b: bigint): bigint {
79 return a > b ? a : b;
83 static min(a: bigint, b: bigint): bigint {
84 return a < b ? a : b;
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DShortcutListFragment.java52 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/tools/winscope/src/common/
Dfunction_utils_test.ts28 b = 'b'; property in B
36 const b = new B(); constant
38 const mixin = FunctionUtils.mixin(a, b);
41 expect(mixin.b).toEqual('b');
Dfunction_utils.ts28 static mixin<T extends object, U extends object>(a: T, b: U): T & U {
31 Object.assign(ret, b);
43 assignMethods(ret, b);
/development/samples/ApiDemos/src/com/example/android/apis/content/
DShareContent.java44 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/tools/winscope/src/app/components/timeline/expanded-timeline/
Dcanvas_drawer.ts42 const {r, g, b} = rgbColor; constant
45 this.ctx.fillStyle = `rgba(${r},${g},${b},${alpha})`;
106 private hexToRgb(hex: string): {r: number; g: number; b: number} | undefined {
109 hex = hex.replace(shorthandRegex, (m, r, g, b) => {
110 return r + r + g + g + b + b;
121 b: parseInt(result[3], 16),
/development/vndk/tools/sourcedr/ninja/tests/testdata/
Dglobal_binding.ninja2 b = 2
5 d = $a $b $c
6 e = mixed $a and $b
/development/vndk/tools/header-checker/tests/integration/c_and_cpp/include/
Dc_and_cpp.h15 Foo(int *a, int *b) : a_(a), b_(b) {} in Foo() argument
21 Foo foo(int *a, int *b);
/development/tools/external_crates/crate_health/src/
Dname_and_version_map.rs34 fn get_versions<'a, 'b>( in get_versions()
36 name: &'b str, in get_versions()
38 fn get_versions_mut<'a, 'b>( in get_versions_mut()
40 name: &'b str, in get_versions_mut()
55 'a: 'b, in filter_versions() argument
56 'b, in filter_versions()
57 F: Fn(&mut dyn Iterator<Item = (&'b NameAndVersion, &'b Self::Value)>) -> HashSet<Version> in filter_versions()
93 fn get_versions<'a, 'b>( in get_versions()
95 name: &'b str, in get_versions()
106 fn get_versions_mut<'a, 'b>( in get_versions_mut()
[all …]
/development/tools/external_crates/crate_health_proc_macros/src/
Dlib.rs62 …fn get_versions<'a, 'b>(&'a self, name: &'b str) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &… in expand()
66 …fn get_versions_mut<'a, 'b>(&'a mut self, name: &'b str) -> Box<dyn Iterator<Item = (&'a NameAndVe… in expand()
70 …fn filter_versions<'a: 'b, 'b, F: Fn(&mut dyn Iterator<Item = (&'b NameAndVersion, &'b Self::Value… in expand()
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DQuotedPrintable.java45 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/
DCheckableLinearLayout.java47 public void setChecked(boolean b) { in setChecked() argument
48 if (b != mChecked) { in setChecked()
49 mChecked = b; in setChecked()
/development/cmds/monkey/
Dexample_script.txt29 key down b
30 key up b
43 key down b
44 key up b
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncUtils.java90 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/
DConsumerIr.java103 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/c_and_cpp/
Dsource1.cpp4 Foo foo(int *a, int *b) { in foo() argument
6 return Foo(a, b); in foo()
/development/tools/winscope/src/parsers/perfetto/
Dfake_proto_builder_test.ts35 expect(proto.b).toEqual(true);
42 expect(proto.b).toEqual(10);
49 expect(proto.b).toEqual(10n);
56 expect(proto.b).toEqual('valueb');
80 expect(proto.a.b).toEqual(false);
/development/tools/otagui/src/services/
DTableService.js6 return arr.sort(function(a, b) { argument
8 keyB = b[key];
/development/tools/winscope/src/parsers/surface_flinger/computations/
Dvisibility_properties_computation_test.ts48 color: {r: 0, g: 0, b: 0, a: 1},
98 color: {r: 0, g: 0, b: 0, a: 1},
146 color: {r: 0, g: 0, b: 0, a: 1},
174 color: {r: 0, g: 0, b: 0, a: 1},
205 color: {r: 0, g: 0, b: 0, a: 1},
261 color: {r: 0, g: 0, b: 0, a: 0},
310 color: {r: 0, g: 0, b: 0, a: 0},
364 color: {r: 0, g: 0, b: 0, a: 1},
412 color: {r: 0, g: 0, b: 0, a: 1},
462 color: {r: 0, g: 0, b: 0, a: 1},
[all …]
/development/samples/ShortcutDemo/publisher/src/com/example/android/pm/shortcutdemo/
DShortcutPublisher.java190 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 …]

12345678