Home
last modified time | relevance | path

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

123456789

/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()
/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/ndk/platforms/android-3/include/linux/
Dmoduleparam.h73 #define __param_check(name, p, type) static inline type *__check_##name(void) { return(p); } argument
75 #define param_check_byte(name, p) __param_check(name, p, unsigned char) argument
77 #define param_check_short(name, p) __param_check(name, p, short) argument
79 #define param_check_ushort(name, p) __param_check(name, p, unsigned short) argument
81 #define param_check_int(name, p) __param_check(name, p, int) argument
83 #define param_check_uint(name, p) __param_check(name, p, unsigned int) argument
85 #define param_check_long(name, p) __param_check(name, p, long) argument
87 #define param_check_ulong(name, p) __param_check(name, p, unsigned long) argument
89 #define param_check_charp(name, p) __param_check(name, p, char *) argument
91 #define param_check_bool(name, p) __param_check(name, p, int) argument
[all …]
Dppp_defs.h19 #define PPP_ADDRESS(p) (((__u8 *)(p))[0]) argument
20 #define PPP_CONTROL(p) (((__u8 *)(p))[1]) argument
21 #define PPP_PROTOCOL(p) ((((__u8 *)(p))[2] << 8) + ((__u8 *)(p))[3]) argument
107 struct pppstat p; member
Dirqflags.h19 #define trace_hardirq_context(p) 0 argument
20 #define trace_softirq_context(p) 0 argument
21 #define trace_hardirqs_enabled(p) 0 argument
22 #define trace_softirqs_enabled(p) 0 argument
/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/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/ndk/platforms/android-21/include/linux/
Dmroute6.h64 #define IF_SET(n, p) ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS))) argument
65 #define IF_CLR(n, p) ((p)->ifs_bits[(n)/NIFBITS] &= ~(1 << ((n) % NIFBITS))) argument
66 #define IF_ISSET(n, p) ((p)->ifs_bits[(n)/NIFBITS] & (1 << ((n) % NIFBITS))) argument
69 #define IF_ZERO(p) bzero(p, sizeof(*(p))) argument
Dppp_defs.h26 #define PPP_ADDRESS(p) (((__u8 *)(p))[0]) argument
27 #define PPP_CONTROL(p) (((__u8 *)(p))[1]) argument
29 #define PPP_PROTOCOL(p) ((((__u8 *)(p))[2] << 8) + ((__u8 *)(p))[3]) argument
120 struct pppstat p; member
/development/samples/Support7Demos/src/com/example/android/supportv7/view/
DGridLayout3.java51 GridLayout p = new GridLayout(context); in create() local
52 p.setUseDefaultMargins(true); in create()
53 p.setAlignmentMode(ALIGN_BOUNDS); in create()
56 p.setColumnOrderPreserved(false); in create()
58 p.setRowOrderPreserved(false); in create()
79 p.addView(c, new LayoutParams(titleRow, centerInAllColumns)); in create()
85 p.addView(c, new LayoutParams(introRow, leftAlignInAllColumns)); in create()
90 p.addView(c, new LayoutParams(emailRow, labelColumn)); in create()
96 p.addView(c, new LayoutParams(emailRow, fieldColumn)); in create()
101 p.addView(c, new LayoutParams(passwordRow, labelColumn)); in create()
[all …]
/development/ndk/platforms/android-8/include/
Dstdio.h362 #define __sfeof(p) (((p)->_flags & __SEOF) != 0) argument
363 #define __sferror(p) (((p)->_flags & __SERR) != 0) argument
364 #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) argument
365 #define __sfileno(p) ((p)->_file) argument
367 #define feof(p) __sfeof(p) argument
368 #define ferror(p) __sferror(p) argument
371 #define clearerr(p) __sclearerr(p) argument
375 #define fileno(p) __sfileno(p) argument
/development/ndk/platforms/android-3/include/
Dstdio.h362 #define __sfeof(p) (((p)->_flags & __SEOF) != 0) argument
363 #define __sferror(p) (((p)->_flags & __SERR) != 0) argument
364 #define __sclearerr(p) ((void)((p)->_flags &= ~(__SERR|__SEOF))) argument
365 #define __sfileno(p) ((p)->_file) argument
367 #define feof(p) __sfeof(p) argument
368 #define ferror(p) __sferror(p) argument
371 #define clearerr(p) __sclearerr(p) argument
375 #define fileno(p) __sfileno(p) argument
/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/ndk/platforms/android-3/arch-arm/include/asm/arch/
Dserial.h19 #define is_omap_port(p) ({int __ret = 0; if (p == IO_ADDRESS(OMAP_UART1_BASE) || p == IO_ADDRES… argument
/development/tutorials/ReverseDebug/
Dmain.c33 int *p = (int *) malloc(sizeof(int)); in main() local
34 *p = 10; in main()
42 printf("*p = %d\n", *p); in main()
43 free(p); in main()
/development/ndk/platforms/android-21/include/machine/
Dieee.h98 #define EXT_TO_ARRAY32(p, a) do { \ argument
99 (a)[0] = (uint32_t)(p)->ext_fracl; \
100 (a)[1] = (uint32_t)(p)->ext_fraclm; \
101 (a)[2] = (uint32_t)(p)->ext_frachm; \
102 (a)[3] = (uint32_t)(p)->ext_frach; \
/development/perftests/panorama/feature_stab/db_vlvm/
Ddb_utilities_indexing.cpp100 float* db_AlignPointer_f(float *p,unsigned long nr_bytes) in db_AlignPointer_f() argument
105 m=((unsigned long)p)%nr_bytes; in db_AlignPointer_f()
106 if(m) ap=(float*) (((unsigned long)p)-m+nr_bytes); in db_AlignPointer_f()
107 else ap=p; in db_AlignPointer_f()
111 short* db_AlignPointer_s(short *p,unsigned long nr_bytes) in db_AlignPointer_s() argument
116 m=((unsigned long)p)%nr_bytes; in db_AlignPointer_s()
117 if(m) ap=(short*) (((unsigned long)p)-m+nr_bytes); in db_AlignPointer_s()
118 else ap=p; in db_AlignPointer_s()
/development/perftests/panorama/feature_mos/src/mosaic/
DPyramid.cpp215 ImageTypeShortBase *s, *ns, *ls, *p, *np; in BorderReduceOdd() local
222 p = in->ptr[-scr->border] - off; in BorderReduceOdd()
223 np = p + in->pitch; in BorderReduceOdd()
226 for (; s < ls; s = ns, ns += scr->pitch, p = np, np += in->pitch) { in BorderReduceOdd()
227 for (int w = width; w--; s++, p += 2) { in BorderReduceOdd()
228 *s = (short)((((int) p[-2]) + ((int) p[2]) + 8 + // 1 in BorderReduceOdd()
229 ((((int) p[-1]) + ((int) p[1])) << 2) + // 4 in BorderReduceOdd()
230 ((int) *p) * 6) >> 4); // 6 in BorderReduceOdd()
239 p = scr->ptr[-off] - out->border; in BorderReduceOdd()
242 np = p + pitch2; in BorderReduceOdd()
[all …]
/development/ndk/platforms/android-9/arch-mips/include/machine/
Dieee.h94 #define EXT_TO_ARRAY32(p, a) do { \ argument
95 (a)[0] = (uint32_t)(p)->ext_fracl; \
96 (a)[1] = (uint32_t)(p)->ext_fraclm; \
97 (a)[2] = (uint32_t)(p)->ext_frachm; \
98 (a)[3] = (uint32_t)(p)->ext_frach; \
/development/ndk/platforms/android-9/arch-mips/include/asm/
Daddrspace.h81 #define PHYS_TO_XKSEG_UNCACHED(p) PHYS_TO_XKPHYS(K_CALG_UNCACHED, (p)) argument
82 #define PHYS_TO_XKSEG_CACHED(p) PHYS_TO_XKPHYS(K_CALG_COH_SHAREABLE, (p)) argument
84 #define XKPHYS_TO_PHYS(p) ((p) & TO_PHYS_MASK) argument

123456789