Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/development/tools/external_crates/crate_health/src/
Dname_and_version.rs32 fn key<'a>(&'a self) -> NameAndVersionRef<'a>; in key() argument
42 pub struct NameAndVersionRef<'a> {
43 name: &'a str,
44 version: &'a Version,
76 impl<'a> NameAndVersionRef<'a> {
77 pub fn new(name: &'a str, version: &'a Version) -> Self { in new()
82 impl<'a> NamedAndVersioned for NameAndVersionRef<'a> {
94 impl<'a> Borrow<dyn NamedAndVersioned + 'a> for NameAndVersion {
95 fn borrow(&self) -> &(dyn NamedAndVersioned + 'a) { in borrow() argument
100 impl<'a> PartialEq for (dyn NamedAndVersioned + 'a) { implementation
[all …]
Dname_and_version_map.rs34 fn get_versions<'a, 'b>( in get_versions() argument
35 &'a self, in get_versions()
37 ) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a Self::Value)> + 'a>; in get_versions() argument
38 fn get_versions_mut<'a, 'b>( in get_versions_mut() argument
39 &'a mut self, in get_versions_mut()
41 ) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a mut Self::Value)> + 'a>; in get_versions_mut() argument
55 'a: 'b, in filter_versions()
58 + 'a, in filter_versions()
60 &'a self, in filter_versions()
62 ) -> Box<dyn Iterator<Item = (&'a NameAndVersion, &'a Self::Value)> + 'a>; in filter_versions() argument
[all …]
Dversion_match.rs25 pub struct VersionPair<'a, T> {
26 pub source: &'a T,
27 pub dest: Option<&'a T>,
31 pub struct CompatibleVersionPair<'a, T> {
32 pub source: &'a T,
33 pub dest: &'a T,
36 impl<'a, T> VersionPair<'a, T> {
37 pub fn to_compatible(self) -> Option<CompatibleVersionPair<'a, T>> { in to_compatible() argument
101 pub fn pairs<'a>(&'a self) -> impl Iterator<Item = VersionPair<'a, CollectionType::Value>> { in pairs()
107 pub fn compatible_pairs<'a>( in compatible_pairs()
[all …]
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt1 abbey - n. a monastery ruled by an abbot
11 academy - n. a school for special training
19 account - v. furnish a justifying analysis or explanation
20 accurate - j. conforming exactly or almost exactly to fact or to a standard or performing with tota…
21 accusation - n. an assertion that someone is guilty of a fault or offence
22 accuse - v. blame for, make a claim of wrongdoing or misbehavior against
28 adjacent - j. having a common boundary or edge; abutting; touching
29 administrator - n. someone who manages a government agency or department
39 album - n. a book of blank pages with pockets or envelopes; for organizing photographs or stamp col…
40 alcohol - n. a liquor or brew containing alcohol as the active agent
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DAnimation3.java57 Animation a = new TranslateAnimation(0.0f, in onItemSelected() local
60 a.setDuration(1000); in onItemSelected()
61 a.setStartOffset(300); in onItemSelected()
62 a.setRepeatMode(Animation.RESTART); in onItemSelected()
63 a.setRepeatCount(Animation.INFINITE); in onItemSelected()
67 a.setInterpolator(AnimationUtils.loadInterpolator(this, in onItemSelected()
71 a.setInterpolator(AnimationUtils.loadInterpolator(this, in onItemSelected()
75 a.setInterpolator(AnimationUtils.loadInterpolator(this, in onItemSelected()
79 a.setInterpolator(AnimationUtils.loadInterpolator(this, in onItemSelected()
83 a.setInterpolator(AnimationUtils.loadInterpolator(this, in onItemSelected()
[all …]
/development/tools/repo_diff/service/repodiff/mappers/
Dcsv.go20 func CommitEntityToCSVRow(a e.AnalyzedCommitRow) []string {
23 a.Date,
24 a.Commit,
25 a.DownstreamProject,
26 a.Author,
27 a.Subject,
28 c.ProjectTypeToDisplay[a.Type],
/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()
71 ) -> HashSet<Version> + 'a>( in expand()
72 &'a self, in expand()
74 ) -> Box<dyn Iterator<Item =(&'a NameAndVersion, &'a Self::Value)> + 'a> { in expand()
/development/cmds/monkey/
DREADME.NETWORK.txt3 The Simple Protocol for Automated Network Control was designed to be a
5 into the input system. The idea is that a process will run on a host
14 Setup port forwarding from a local port on your machine to a port on
28 respond to every command with a line starting with OK for commands
29 that executed without a problem, or a line starting with ERROR for
30 commands that had problems being run. For commands that return a
33 on that line. For ERROR values, this could be a message indicating
39 ERROR: monkey not a number
58 Note that sending a full button press requires sending both the down
63 This command injects a MotionEvent into the input system that
[all …]
/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()
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()
65 private static int mul255(int c, int a) { in mul255() argument
66 int prod = c * a + 128; in mul255()
77 int a = Color.alpha(c); in premultiplyColor() local
79 r = mul255(r, a); in premultiplyColor()
80 g = mul255(g, a); in premultiplyColor()
81 b = mul255(b, a); in premultiplyColor()
[all …]
DColorPickerDialog.java131 int a = ave(Color.alpha(c0), Color.alpha(c1), p); in interpColor() local
136 return Color.argb(a, r, g, b); in interpColor()
154 final float[] a = cm.getArray(); 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/XYZTouristAttractions/
D_index.jd8 This sample aims to be as close to a real world example of a mobile
9 and Wear app combination as possible. It has a more refined design
10 and also provides a practical example of how a mobile app would
13 The app itself is modeled after a hypothetical tourist attractions
17 The Wear component loads a full wearable app that shows images,
19 attractions in a GridViewPager UI component.
/development/samples/browseable/ElizaChat/
D_index.jd8 … This sample is a phone application that provides a chat experience in which users can respond to
9 … messages with a quick voice response. New messages create a notification with a "Reply" action.
11 wearable opens the voice transcription UI allowing the user to speak a response.
/development/vndk/tools/header-checker/tests/integration/cpp/gold/
Dlow_volume_speaker.cpp8 void UnexportedSymbol(int *a) { in UnexportedSymbol() argument
9 if (a) { in UnexportedSymbol()
10 a++; in UnexportedSymbol()
12 a--; in UnexportedSymbol()
/development/tools/labpretest/
DREADME3 The labpretest.sh script is designed to emulate a typical automated test lab
4 session. It puts a device into bootloader mode, reboots into bootloader mode,
5 determines device type, erases user cache, flashes a generic userdata image,
7 and reboots, sets up for a monkey run and finally runs a random monkey test.
9 It will detect if it is in a low battery situation and wait for it to charge
12 The goal is to see if a device is ready for deployment to automated lab testing
15 I would connect 8 devices to a host and run this script in 8 separate shell
23 have multiple devices attached use the -d <device_id> parameter to target a
31 sub directory. If you are setting this up with only the script, create a tools
35 Here are the steps to add a new device:
[all …]
/development/tools/winscope/src/parsers/perfetto/
Dfake_proto_builder_test.ts34 expect(proto.a).toEqual(false);
41 expect(proto.a).toEqual(1);
48 expect(proto.a).toEqual(1n);
55 expect(proto.a).toEqual('valuea');
80 expect(proto.a.b).toEqual(false);
81 expect(proto.a.numbers[0]).toEqual(10);
82 expect(proto.a.numbers[1]).toEqual(11);
83 expect(proto.a.objects[0].c.d).toEqual('20');
84 expect(proto.a.objects[0].c.e).toEqual('21');
85 expect(proto.a.objects[1].c).toEqual(21n);
/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/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java439 int a = arrW[HASH_OFFSET ];
463 temp = ( ( a<<5 ) | ( a>>>27 ) ) +
469 b = a;
470 a = temp;
474 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ;
478 b = a;
479 a = temp;
483 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) +
488 b = a;
489 a = temp;
[all …]
/development/tools/apkcheck/
DREADME.txt9 and each officially released API has a numbered file (e.g. "6.xml").
15 defined locally. The tool can't easily tell anything about a dependency
16 beyond the name (e.g. whether a class is a static or non-static inner
28 analyze the APK, so if you have a large set of APKs it's best to run them
53 you disable both warnings and errors you will only see a summary.
78 This could be a Creator class in the package android.os.Parcelable,
82 The API XML does specify each package in a <package> tag, so we should have
84 at a time from the right until we match a known package. This will work
95 If apkcheck sees a reference to an unknown field, and the field's defining
97 a warning instead of an error.
[all …]
/development/samples/browseable/DrawableTinting/
D_index.jd10 … \n\nTinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters.
12 states of a View (for example disabled/enabled, focused, pressed or selected).
13 … \n\nProgrammatically, tinting is applied to a Drawable through its "setColorFilter" method,
14 with a reference to a color and a PorterDuff blend mode. The color and blend mode can be
/development/tools/winscope/src/common/
Dfunction_utils_test.ts21 a = 'a'; property in A
35 const a = new A(); constant
38 const mixin = FunctionUtils.mixin(a, b);
40 expect(mixin.a).toEqual('a');
/development/tools/cargo_embargo/
DREADME.md3 `cargo_embargo` is a tool to generate `Android.bp` files automatically for external Rust crates
5 `cargo_embargo generate cargo_embargo.json` in a directory containing one or more Rust packages. If
10 `cargo_embargo` is configured with a JSON configuration file usually called `cargo_embargo.json`.
11 This can contain a number of options, specified at several levels. A config may cover one or more
12 packages, and have one or more variants. All packages under `external/rust/crates` use a separate
13 `cargo_embargo.json` file per package, but other users (such as crosvm) may use a single
14 `cargo_embargo.json` for a tree of many packages. Most configurations have a single variant, but
15 multiple variants are used in some cases to provide both `std` and `no_std` variants of a package.
17 The overall structure of a config file looks like this:
24 // Options for all variants of a package.
[all …]
/development/samples/browseable/ActionBarCompat-Styled/
D_index.jd8 This sample shows you how to use ActionBarCompat with a customized theme. It utilizes a
9 split action bar when running on a device with a narrow display, and show three tabs.
/development/samples/Snake/src/com/example/android/snake/
DBackgroundView.java47 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.BackgroundView); in BackgroundView() local
48 mColors[0] = a.getColor(R.styleable.BackgroundView_colorSegmentOne, Color.RED); in BackgroundView()
49 mColors[1] = a.getColor(R.styleable.BackgroundView_colorSegmentTwo, Color.YELLOW); in BackgroundView()
50 mColors[2] = a.getColor(R.styleable.BackgroundView_colorSegmentThree, Color.BLUE); in BackgroundView()
51 mColors[3] = a.getColor(R.styleable.BackgroundView_colorSegmentFour, Color.GREEN); in BackgroundView()
53 a.recycle(); in BackgroundView()
/development/samples/USB/AdbTest/
DREADME.txt1 AdbTest is a sample program that implements a subset of the adb USB protocol.
3 output in a text view and only allows connecting to one device at a time.
4 However the support classes are structured in a way that would allow
/development/samples/browseable/ActiveNotifications/
D_index.jd11 together for a nicer user experience when an app may have multiple
12 notifications. To get started, press the "add a notification" button.
13 If you add more than one notification a notification summary will be
14 added. When a notification is being canceled, the count gets updated
15 via a PendingIntent.

12345678910>>...16