Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 194) sorted by relevance

12345678

/development/build/tools/
Dmk_sources_zip.py87 p = Params()
101 p.DRY = True
107 p.DIR = a
110 p.EXEC_ZIP = True
115 p.PROPS = args[0]
116 p.DST = args[1]
117 p.SRC = args[2]
119 if not os.path.isfile(p.PROPS):
120 error = "%s is not a file" % p.PROPS
121 if not os.path.isdir(p.SRC):
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTextAlign.java47 private static void makePath(Path p) { in makePath() argument
48 p.moveTo(10, 0); in makePath()
49 p.cubicTo(100, -50, 200, 50, 300, 0); in makePath()
90 Paint p = mPaint; in onDraw() local
97 p.setColor(0x80FF0000); in onDraw()
98 canvas.drawLine(x, y, x, y+DY*3, p); in onDraw()
99 p.setColor(Color.BLACK); in onDraw()
102 p.setTextAlign(Paint.Align.LEFT); in onDraw()
103 canvas.drawText(TEXT_L, x, y, p); in onDraw()
106 p.setTextAlign(Paint.Align.CENTER); in onDraw()
[all …]
DAlphaBitmap.java46 Paint p = new Paint(); in drawIntoBitmap() local
47 p.setAntiAlias(true); in drawIntoBitmap()
49 p.setAlpha(0x80); in drawIntoBitmap()
50 c.drawCircle(x/2, y/2, x/2, p); in drawIntoBitmap()
52 p.setAlpha(0x30); in drawIntoBitmap()
53 p.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC)); in drawIntoBitmap()
54 p.setTextSize(60); in drawIntoBitmap()
55 p.setTextAlign(Paint.Align.CENTER); in drawIntoBitmap()
56 Paint.FontMetrics fm = p.getFontMetrics(); in drawIntoBitmap()
57 c.drawText("Alpha", x/2, (y-fm.ascent)/2, p); in drawIntoBitmap()
[all …]
DPathEffects.java101 Path p = new Path(); in makeFollowPath() local
102 p.moveTo(0, 0); in makeFollowPath()
104 p.lineTo(i*20, (float)Math.random() * 35); in makeFollowPath()
106 return p; in makeFollowPath()
110 Path p = new Path(); in makePathDash() local
111 p.moveTo(4, 0); in makePathDash()
112 p.lineTo(0, -4); in makePathDash()
113 p.lineTo(8, -4); in makePathDash()
114 p.lineTo(12, 0); in makePathDash()
115 p.lineTo(8, 4); in makePathDash()
[all …]
DPictures.java41 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); in drawSomething() local
43 p.setColor(0x88FF0000); in drawSomething()
44 canvas.drawCircle(50, 50, 40, p); in drawSomething()
46 p.setColor(Color.GREEN); in drawSomething()
47 p.setTextSize(30); in drawSomething()
48 canvas.drawText("Pictures", 60, 60, p); in drawSomething()
DPatterns.java37 Paint p = new Paint(); in makeBitmap1() local
38 p.setColor(Color.BLUE); in makeBitmap1()
39 c.drawRect(5, 5, 35, 35, p); in makeBitmap1()
46 Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); in makeBitmap2() local
47 p.setColor(Color.GREEN); in makeBitmap2()
48 p.setAlpha(0xCC); in makeBitmap2()
49 c.drawCircle(32, 32, 27, p); in makeBitmap2()
DColorPickerDialog.java112 private int ave(int s, int d, float p) { in ave() argument
113 return s + java.lang.Math.round(p * (d - s)); in ave()
124 float p = unit * (colors.length - 1); in interpColor() local
125 int i = (int)p; in interpColor()
126 p -= i; in interpColor()
131 int a = ave(Color.alpha(c0), Color.alpha(c1), p); in interpColor()
132 int r = ave(Color.red(c0), Color.red(c1), p); in interpColor()
133 int g = ave(Color.green(c0), Color.green(c1), p); in interpColor()
134 int b = ave(Color.blue(c0), Color.blue(c1), p); in interpColor()
/development/tools/mkstubs/src/com/android/mkstubs/
DMain.java125 Params p = m.processArgs(args); in main() local
126 m.process(p); in main()
144 Params p = new Params(); in processArgs() local
149 p.setVerbose(); in processArgs()
151 p.setDumpSource(); in processArgs()
157 } else if (p.getInputJarPath() == null) { in processArgs()
158 p.setInputJarPath(arg); in processArgs()
159 } else if (p.getOutputJarPath() == null) { in processArgs()
160 p.setOutputJarPath(arg); in processArgs()
162 addString(p, arg); in processArgs()
[all …]
/development/tools/findunused/
Dfindunusedresources70 p=$(echo $i | sed 's/_/[\\._]/g')
71p\\\|@drawable/$p\\\|@anim/$p\\\|@color/$p\\\|@xml/$p\\\|@layout/$p\\\|@menu/$p\\\|@+id/$p\\\|@arr…
/development/tools/line_endings/
Dline_endings.c115 char* p = buf; in to_unix() local
117 while (*p) { in to_unix()
118 if (p[0] == '\r' && p[1] == '\n') { in to_unix()
121 p += 2; in to_unix()
124 else if (p[0] == '\r') { in to_unix()
127 p += 1; in to_unix()
131 *q = *p; in to_unix()
132 p += 1; in to_unix()
142 const char* p = buf; in unix_to_dos() local
144 while (*p) { in unix_to_dos()
[all …]
/development/tools/repo_diff/service/repodiff/repositories/
Dproject.go22 func (p project) InsertDiffRows(diffRows []e.AnalyzedDiffRow) error {
25 p.db,
43 p.target,
44 mappers.DiffRowsToPersistCols(diffRows, p.timestampGenerator()),
51 func (p project) GetMostRecentOuterKey() (int64, uuid.UUID, error) {
54 err := p.db.QueryRow(
58 p.target.UpstreamTarget,
59 p.target.DownstreamTarget,
60 p.target.UpstreamTarget,
61 p.target.DownstreamTarget,
[all …]
Dproject_test.go41 p, err := repositories.NewProjectRepository(testDiffTarget)
45 p.InsertDiffRows(fixtures)
51 p, _ := repositories.NewProjectRepository(testDiffTarget)
52 p.InsertDiffRows(fakeFixtures())
55 timestamp, uid, _ := p.GetMostRecentOuterKey()
64 p, _ := repositories.NewProjectRepository(testDiffTarget)
65 _, _, err := p.GetMostRecentOuterKey()
71 p, _ := repositories.NewProjectRepository(testDiffTarget)
76 p.InsertDiffRows(fixtures)
77 diffRows, err := p.GetMostRecentDifferentials()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGridLayout3.java40 GridLayout p = new GridLayout(context); in create() local
41 p.setUseDefaultMargins(true); in create()
42 p.setAlignmentMode(ALIGN_BOUNDS); in create()
45 p.setColumnOrderPreserved(false); in create()
47 p.setRowOrderPreserved(false); in create()
68 p.addView(c, new LayoutParams(titleRow, centerInAllColumns)); in create()
74 p.addView(c, new LayoutParams(introRow, leftAlignInAllColumns)); in create()
79 p.addView(c, new LayoutParams(emailRow, labelColumn)); in create()
85 p.addView(c, new LayoutParams(emailRow, fieldColumn)); in create()
90 p.addView(c, new LayoutParams(passwordRow, labelColumn)); in create()
[all …]
/development/samples/browseable/BatchStepSensor/
D_index.jd6 <p>
8 … <p>This sample demonstrates the use of the two step sensors (step detector and counter) and
9 sensor batching.</p>
10 <p>It shows how to register a SensorEventListener with and without
11 batching and shows how these events are received.</p>
12 <p>The Step Detector sensor fires an
19 covered in this sample.</p>
21 </p>
/development/gsi/gsi_util/
Drun_test.py41 p = Process(target=run_test, args=(path,)) variable
42 p.start()
43 p.join()
44 if p.exitcode != 0:
/development/tools/privapp_permissions/
Dprivapp_permissions.py211 for p in partitions.split(','):
212 if p.endswith('/'):
213 p = p[:-1]
214 self.partitions.append(p)
216 self._check_dir(p + '/priv-app')
409 for p in partitions:
410 results[p] = self._resolve_all_privapps(p)
415 p = partitions[0]
416 results[p] = []
426 results[p].append(apk)
[all …]
/development/vndk/tools/header-checker/src/utils/
Dcommand_line_utils.cpp39 for (llvm::StringMapEntry<llvm::cl::Option *> &p : map) { in HideIrrelevantCommandLineOptions()
40 if (IsOptionInCategory(*p.second, category)) { in HideIrrelevantCommandLineOptions()
43 if (p.first().startswith("help")) { in HideIrrelevantCommandLineOptions()
46 p.second->setHiddenFlag(llvm::cl::Hidden); in HideIrrelevantCommandLineOptions()
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/
DGridExampleActivity.java89 Paint p = new Paint(); in getBackgroundForPage() local
91 c.drawRect(0, 0, 200, 200, p); in getBackgroundForPage()
92 p.setAntiAlias(true); in getBackgroundForPage()
93 p.setTypeface(Typeface.DEFAULT); in getBackgroundForPage()
94 p.setTextSize(64); in getBackgroundForPage()
95 p.setColor(Color.LTGRAY); in getBackgroundForPage()
96 p.setTextAlign(Align.CENTER); in getBackgroundForPage()
97 c.drawText(column+ "-" + row, 100, 100, p); in getBackgroundForPage()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DExec.java48 final Process p = Runtime.getRuntime().exec( in runForStream() local
50 final InputStream in = p.getInputStream(); in runForStream()
55 Log.v(TAG, "Waiting for process: " + p); in runForStream()
56 final boolean success = p.waitFor(timeoutSeconds, TimeUnit.SECONDS); in runForStream()
59 p.exitValue())); in runForStream()
64 p.destroyForcibly(); in runForStream()
/development/tools/repo_diff/service/repodiff/interactors/
Dapplication.go18 func ApplyApplicationMutations(p AppProcessingParameters) ([]ent.AnalyzedDiffRow, []ent.AnalyzedCom…
19 projectNameToType := ProjectNamesToType(p.Manifests)
20 return diffRowsToAnalyzed(p.DiffRows, projectNameToType),
21 commitRowsToAnalyzed(p.CommitRows, projectNameToType)
/development/samples/browseable/RevealEffectBasic/
D_index.jd6 <p>
10 </p>
/development/samples/browseable/ClippingBasic/
D_index.jd6 <p>
10 </p>
/development/samples/browseable/CustomNotifications/
D_index.jd6 <p>
10 </p>
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyGetFrameRateEvent.java111 java.lang.Process p = null; in injectEvent() local
114 p = Runtime.getRuntime().exec(GET_FRAMERATE_CMD); in injectEvent()
115 int status = p.waitFor(); in injectEvent()
120 result = new BufferedReader(new InputStreamReader(p.getInputStream())); in injectEvent()
145 if (p != null) { in injectEvent()
146 p.destroy(); in injectEvent()
/development/samples/Spinner/src/com/android/example/spinner/
DSpinnerActivity.java304 SharedPreferences p = c.getSharedPreferences(PREFERENCES_FILE, MODE_WORLD_READABLE); in readInstanceState() local
309 this.mPos = p.getInt(POSITION_KEY, SpinnerActivity.DEFAULT_POSITION); in readInstanceState()
310 this.mSelection = p.getString(SELECTION_KEY, ""); in readInstanceState()
318 return (p.contains(POSITION_KEY)); in readInstanceState()
333 SharedPreferences p = in writeInstanceState() local
341 SharedPreferences.Editor e = p.edit(); in writeInstanceState()

12345678