Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapResponseParserTest.java51 final ImapResponseParser p = generateParser(100000, "abc"); in testExpect() local
52 p.expect('a'); in testExpect()
53 p.expect('b'); in testExpect()
55 p.expect('C'); in testExpect()
63 final ImapResponseParser p = generateParser(100000, "!ab!c!!def!"); in testreadUntil() local
64 assertEquals("", p.readUntil('!')); in testreadUntil()
65 assertEquals("ab", p.readUntil('!')); in testreadUntil()
66 assertEquals("c", p.readUntil('!')); in testreadUntil()
67 assertEquals("", p.readUntil('!')); in testreadUntil()
68 assertEquals("def", p.readUntil('!')); in testreadUntil()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
Dnexus.rs137 struct pulse_s * p = &gExtras[i];
138 p->pulseType = PULSE_EXTRA;
139 p->active = 0;
160 struct pulse_s * p = &pulseSet[i];
161 int delta = gNow - p->startTime;
163 if (p->active != 0 && delta >= 0) {
173 rsMatrixScale(&modelMatrix, p->scale * gWorldScaleX, p->scale * gWorldScaleY, 1.0f);
176 float x = p->originX + (p->dx * SPEED * delta);
177 float y = p->originY + (p->dy * SPEED * delta);
180 if (p->dx < 0) {
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java825 Paint p = mSelectionPaint; in init() local
826 p.setColor(gridLineColor); in init()
827 p.setStyle(Style.FILL); in init()
828 p.setAntiAlias(false); in init()
830 p = mPaint; in init()
831 p.setAntiAlias(true); in init()
860 p.setTextSize(DATE_HEADER_FONT_SIZE); in init()
861 p.setTypeface(mBold); in init()
863 mDateStrWidth = computeMaxStringWidth(0, dateStrs, p); in init()
864 p.setTextSize(DAY_HEADER_FONT_SIZE); in init()
[all …]
/packages/apps/Email/tests/src/com/android/emailcommon/internet/
DMimeUtilityTest.java407 MimeBodyPart p = new MimeBodyPart(); in testGetTextFromPartContentTypeCase() local
410 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/plain"); in testGetTextFromPartContentTypeCase()
411 p.setBody(tb); in testGetTextFromPartContentTypeCase()
412 String gotText = MimeUtility.getTextFromPart(p); in testGetTextFromPartContentTypeCase()
416 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/PLAIN"); in testGetTextFromPartContentTypeCase()
417 p.setBody(tb); in testGetTextFromPartContentTypeCase()
418 gotText = MimeUtility.getTextFromPart(p); in testGetTextFromPartContentTypeCase()
422 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/other"); in testGetTextFromPartContentTypeCase()
423 p.setBody(tb); in testGetTextFromPartContentTypeCase()
424 gotText = MimeUtility.getTextFromPart(p); in testGetTextFromPartContentTypeCase()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
DImageUtils.java311 final Paint p = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG); in drawCenterOverlay() local
312 p.setTypeface(Typeface.DEFAULT_BOLD); in drawCenterOverlay()
313 p.setColor(textColor); in drawCenterOverlay()
319 p.setTextSize(titleFontSize); in drawCenterOverlay()
320 title = StringUtils.trimText(title, p, maxWidth); in drawCenterOverlay()
321 canvas.drawText(title, (width - (2 * INSET) - p.measureText(title)) / 2, in drawCenterOverlay()
322 startYOffset - p.descent(), p); in drawCenterOverlay()
326 p.setTextSize(titleFontSize - 6); in drawCenterOverlay()
327 subTitle = StringUtils.trimText(subTitle, p, maxWidth); in drawCenterOverlay()
328 canvas.drawText(subTitle, (width - (2 * INSET) - p.measureText(subTitle)) / 2, in drawCenterOverlay()
[all …]
/packages/services/Telephony/src/com/android/phone/sip/
DSipSettings.java91 SipPreference(Context c, SipProfile p) { in SipPreference() argument
93 setProfile(p); in SipPreference()
100 void setProfile(SipProfile p) { in setProfile() argument
101 mProfile = p; in setProfile()
102 setTitle(getProfileName(p)); in setProfile()
233 for (SipProfile p : sipProfileList) { in handleSipReceiveCallsOption()
234 String sipUri = p.getUriString(); in handleSipReceiveCallsOption()
235 p = updateAutoRegistrationFlag(p, enabled); in handleSipReceiveCallsOption()
238 mSipManager.open(p, in handleSipReceiveCallsOption()
244 mSipManager.open(p); in handleSipReceiveCallsOption()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java676 AppRestrictionsPreference p = new AppRestrictionsPreference(context, this); in populateApps() local
678 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps()
679 p.setChecked(false); in populateApps()
680 p.setTitle(app.activityName); in populateApps()
682 p.setSummary(context.getString(R.string.user_restrictions_controlled_by, in populateApps()
685 p.setKey(getKeyForPackage(packageName)); in populateApps()
686 p.setSettingsEnabled(hasSettings || isSettingsApp); in populateApps()
687 p.setPersistent(false); in populateApps()
688 p.setOnPreferenceChangeListener(this); in populateApps()
689 p.setOnPreferenceClickListener(this); in populateApps()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java163 final AlertController.AlertParams p = mAlertParams; in createUserEntryDialog() local
164 p.mIconId = android.R.drawable.ic_dialog_info; in createUserEntryDialog()
165 p.mTitle = getString(R.string.bluetooth_pairing_request); in createUserEntryDialog()
166 p.mView = createPinEntryView(deviceManager.getName(mDevice)); in createUserEntryDialog()
167 p.mPositiveButtonText = getString(android.R.string.ok); in createUserEntryDialog()
168 p.mPositiveButtonListener = this; in createUserEntryDialog()
169 p.mNegativeButtonText = getString(android.R.string.cancel); in createUserEntryDialog()
170 p.mNegativeButtonListener = this; in createUserEntryDialog()
254 final AlertController.AlertParams p = mAlertParams; in createConfirmationDialog() local
255 p.mIconId = android.R.drawable.ic_dialog_info; in createConfirmationDialog()
[all …]
/packages/apps/Camera2/src/com/android/camera/crop/
DBoundedRect.java196 float[] p = GeometryMathUtils.lineIntersect(pathOfCorner, outerSide); in resizeInner() local
197 if (p == null) { in resizeInner()
199 p = new float[2]; in resizeInner()
200 p[0] = oldInnerCorners[i]; in resizeInner()
201 p[1] = oldInnerCorners[i + 1]; in resizeInner()
208 ret.left = (p[0] > ret.left) ? p[0] : ret.left; in resizeInner()
209 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
213 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
214 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
218 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
[all …]
DCropDrawingUtils.java31 Paint p = new Paint(); in drawRuleOfThird() local
32 p.setStyle(Paint.Style.STROKE); in drawRuleOfThird()
33 p.setColor(Color.argb(128, 255, 255, 255)); in drawRuleOfThird()
34 p.setStrokeWidth(2); in drawRuleOfThird()
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird()
44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird()
50 Paint p = new Paint(); in drawCropRect() local
51 p.setStyle(Paint.Style.STROKE); in drawCropRect()
52 p.setColor(Color.WHITE); in drawCropRect()
53 p.setStrokeWidth(3); in drawCropRect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DBoundedRect.java198 float[] p = GeometryMathUtils.lineIntersect(pathOfCorner, outerSide); in resizeInner() local
199 if (p == null) { in resizeInner()
201 p = new float[2]; in resizeInner()
202 p[0] = oldInnerCorners[i]; in resizeInner()
203 p[1] = oldInnerCorners[i + 1]; in resizeInner()
210 ret.left = (p[0] > ret.left) ? p[0] : ret.left; in resizeInner()
211 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
215 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
216 ret.top = (p[1] > ret.top) ? p[1] : ret.top; in resizeInner()
220 ret.right = (p[0] < ret.right) ? p[0] : ret.right; in resizeInner()
[all …]
DCropDrawingUtils.java31 Paint p = new Paint(); in drawRuleOfThird() local
32 p.setStyle(Paint.Style.STROKE); in drawRuleOfThird()
33 p.setColor(Color.argb(128, 255, 255, 255)); in drawRuleOfThird()
34 p.setStrokeWidth(2); in drawRuleOfThird()
40 canvas.drawLine(x, bounds.top, x, bounds.bottom, p); in drawRuleOfThird()
44 canvas.drawLine(bounds.left, y, bounds.right, y, p); in drawRuleOfThird()
50 Paint p = new Paint(); in drawCropRect() local
51 p.setStyle(Paint.Style.STROKE); in drawCropRect()
52 p.setColor(Color.WHITE); in drawCropRect()
53 p.setStrokeWidth(3); in drawCropRect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java44 Path p = mChildren.get(segment); in getChild() local
45 if (p != null) return p; in getChild()
48 Path p = new Path(this, segment); in getChild() local
49 mChildren.put(segment, p); in getChild()
50 return p; in getChild()
95 public boolean equalsIgnoreCase (String p) { in equalsIgnoreCase() argument
97 return path.equalsIgnoreCase(p); in equalsIgnoreCase()
114 for (Path p = this; p != sRoot; p = p.mParent) { in split()
119 for (Path p = this; p != sRoot; p = p.mParent) { in split()
120 segments[i--] = p.mSegment; in split()
[all …]
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c24 int isRed(unsigned char *src, int p) { in isRed() argument
25 int b = src[p + 2]; in isRed()
26 int g = src[p + 1]; in isRed()
27 int r = src[p]; in isRed()
41 int p = (recX + x + sy) * 4; in findPossible() local
43 int b = src[p + 2]; in findPossible()
44 int g = src[p + 1]; in findPossible()
45 int r = src[p]; in findPossible()
62 int p = (recX + x + sy) * 4; in findReds() local
64 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java78 Position p = stack.peek(); in readUnigramsAndBigramsBinaryInner() local
81 MakedictLog.d("read: address=" + p.mAddress + ", numOfPtNode=" + in readUnigramsAndBigramsBinaryInner()
82 p.mNumOfPtNode + ", position=" + p.mPosition + ", length=" + p.mLength); in readUnigramsAndBigramsBinaryInner()
85 if (dictDecoder.getPosition() != p.mAddress) dictDecoder.setPosition(p.mAddress); in readUnigramsAndBigramsBinaryInner()
86 if (index != p.mLength) index = p.mLength; in readUnigramsAndBigramsBinaryInner()
88 if (p.mNumOfPtNode == Position.NOT_READ_PTNODE_COUNT) { in readUnigramsAndBigramsBinaryInner()
89 p.mNumOfPtNode = dictDecoder.readPtNodeCount(); in readUnigramsAndBigramsBinaryInner()
90 p.mAddress += getPtNodeCountSize(p.mNumOfPtNode); in readUnigramsAndBigramsBinaryInner()
91 p.mPosition = 0; in readUnigramsAndBigramsBinaryInner()
93 if (p.mNumOfPtNode == 0) { in readUnigramsAndBigramsBinaryInner()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarm.java209 public Alarm createFromParcel(Parcel p) {
210 return new Alarm(p);
265 Alarm(Parcel p) { in Alarm() argument
266 id = p.readLong(); in Alarm()
267 enabled = p.readInt() == 1; in Alarm()
268 hour = p.readInt(); in Alarm()
269 minutes = p.readInt(); in Alarm()
270 daysOfWeek = new DaysOfWeek(p.readInt()); in Alarm()
271 vibrate = p.readInt() == 1; in Alarm()
272 label = p.readString(); in Alarm()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryStatsHelper.java371 for (int p = 0; p < speedSteps; p++) { in processAppUsage()
372 powerCpuNormal[p] = mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE, p); in processAppUsage()
384 double p; // in mAs in processAppUsage() local
460 p = (wakelockTime in processAppUsage()
462 power += p; in processAppUsage()
463 if (DEBUG && p != 0) Log.i(TAG, String.format("wakelock power=%.2f", p)); in processAppUsage()
468 p = (mobileRx + mobileTx) * mobilePowerPerByte; in processAppUsage()
469 power += p; in processAppUsage()
470 if (DEBUG && p != 0) Log.i(TAG, String.format("mobile power=%.2f", p)); in processAppUsage()
475 p = (wifiRx + wifiTx) * wifiPowerPerByte; in processAppUsage()
[all …]
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.java114 protected Paint p = new Paint(); field in SimpleWeekView
319 p.setFakeBoldText(false); in initView()
320 p.setAntiAlias(true); in initView()
321 p.setTextSize(MINI_DAY_NUMBER_TEXT_SIZE); in initView()
322 p.setStyle(Style.FILL); in initView()
408 p.setColor(mSelectedWeekBGColor); in drawBackground()
409 p.setStyle(Style.FILL); in drawBackground()
417 canvas.drawRect(r, p); in drawBackground()
420 canvas.drawRect(r, p); in drawBackground()
436 p.setTextSize(MINI_WK_NUMBER_TEXT_SIZE); in drawWeekNums()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java186 for (DeviceProfile p : profiles) { in DeviceProfile()
187 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.numRows)); in DeviceProfile()
192 for (DeviceProfile p : profiles) { in DeviceProfile()
193 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.numColumns)); in DeviceProfile()
198 for (DeviceProfile p : profiles) { in DeviceProfile()
199 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.numHotseatIcons)); in DeviceProfile()
206 for (DeviceProfile p : profiles) { in DeviceProfile()
207 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.iconSize)); in DeviceProfile()
215 for (DeviceProfile p : profiles) { in DeviceProfile()
216 points.add(new DeviceProfileQuery(p.minWidthDps, p.minHeightDps, p.iconTextSize)); in DeviceProfile()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterGradRepresentation.java111 Band p = new Band(); in creatExample() local
112 p.mask = false; in creatExample()
113 p.xPos1 = -1; in creatExample()
114 p.yPos1 = 100; in creatExample()
115 p.xPos2 = -1; in creatExample()
116 p.yPos2 = 100; in creatExample()
117 p.brightness = -50; in creatExample()
118 p.contrast = 0; in creatExample()
119 p.saturation = 0; in creatExample()
120 mBands.add(0, p); in creatExample()
[all …]
/packages/apps/Camera/jni/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 …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DPyramid.cpp209 ImageTypeShortBase *s, *ns, *ls, *p, *np; in BorderReduceOdd() local
216 p = in->ptr[-scr->border] - off; in BorderReduceOdd()
217 np = p + in->pitch; in BorderReduceOdd()
220 for (; s < ls; s = ns, ns += scr->pitch, p = np, np += in->pitch) { in BorderReduceOdd()
221 for (int w = width; w--; s++, p += 2) { in BorderReduceOdd()
222 *s = (short)((((int) p[-2]) + ((int) p[2]) + 8 + // 1 in BorderReduceOdd()
223 ((((int) p[-1]) + ((int) p[1])) << 2) + // 4 in BorderReduceOdd()
224 ((int) *p) * 6) >> 4); // 6 in BorderReduceOdd()
233 p = scr->ptr[-off] - out->border; in BorderReduceOdd()
236 np = p + pitch2; in BorderReduceOdd()
[all …]
/packages/apps/Camera2/jni/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 …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactEntryAdapter.java53 protected void writeToParcel(Parcel p) { in writeToParcel() argument
54 p.writeInt(type); in writeToParcel()
55 p.writeString(label); in writeToParcel()
56 p.writeString(data); in writeToParcel()
57 p.writeParcelable(uri, 0); in writeToParcel()
58 p.writeLong(id); in writeToParcel()
59 p.writeInt(maxLines); in writeToParcel()
60 p.writeString(mimetype); in writeToParcel()
66 protected void readFromParcel(Parcel p) { in readFromParcel() argument
68 type = p.readInt(); in readFromParcel()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DReorderHelper.java62 public boolean handleDrop(Point p) { in handleDrop() argument
65 reorderTarget = getReorderableChildAtCoordinate(p); in handleDrop()
100 public void handleDragStart(View view, int pos, long id, Point p) { in handleDragStart() argument
112 public void handleDrag(Point p) { in handleDrag() argument
113 if (p == null || p.y < 0 && p.y > mParentView.getHeight()) { in handleDrag()
116 handleDrop(p); in handleDrag()
126 reorderTarget = getReorderableChildAtCoordinate(p); in handleDrag()
242 public View getReorderableChildAtCoordinate(Point p) { in getReorderableChildAtCoordinate() argument
243 if (p == null || p.y < 0) { in getReorderableChildAtCoordinate()
255 if (p.x >= childView.getLeft() && p.x < childView.getRight() in getReorderableChildAtCoordinate()
[all …]

12345678910>>...12