Home
last modified time | relevance | path

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

1234567891011

/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/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.java367 MimeBodyPart p = new MimeBodyPart(); in testGetTextFromPartContentTypeCase() local
370 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/plain"); in testGetTextFromPartContentTypeCase()
371 p.setBody(tb); in testGetTextFromPartContentTypeCase()
372 String gotText = MimeUtility.getTextFromPart(p); in testGetTextFromPartContentTypeCase()
376 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "TEXT/PLAIN"); in testGetTextFromPartContentTypeCase()
377 p.setBody(tb); in testGetTextFromPartContentTypeCase()
378 gotText = MimeUtility.getTextFromPart(p); in testGetTextFromPartContentTypeCase()
382 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/other"); in testGetTextFromPartContentTypeCase()
383 p.setBody(tb); in testGetTextFromPartContentTypeCase()
384 gotText = MimeUtility.getTextFromPart(p); in testGetTextFromPartContentTypeCase()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java662 AppRestrictionsPreference p = new AppRestrictionsPreference(context, this); in populateApps() local
664 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps()
665 p.setChecked(false); in populateApps()
666 p.setTitle(app.activityName); in populateApps()
668 p.setSummary(context.getString(R.string.user_restrictions_controlled_by, in populateApps()
671 p.setKey(getKeyForPackage(packageName)); in populateApps()
672 p.setSettingsEnabled((hasSettings || isSettingsApp) && app.masterEntry == null); in populateApps()
673 p.setPersistent(false); in populateApps()
674 p.setOnPreferenceChangeListener(this); in populateApps()
675 p.setOnPreferenceClickListener(this); in populateApps()
[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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java100 Position p = stack.peek(); in readUnigramsAndBigramsBinaryInner() local
103 MakedictLog.d("read: address=" + p.mAddress + ", numOfPtNode=" + in readUnigramsAndBigramsBinaryInner()
104 p.mNumOfPtNode + ", position=" + p.mPosition + ", length=" + p.mLength); in readUnigramsAndBigramsBinaryInner()
107 if (dictDecoder.getPosition() != p.mAddress) dictDecoder.setPosition(p.mAddress); in readUnigramsAndBigramsBinaryInner()
108 if (index != p.mLength) index = p.mLength; in readUnigramsAndBigramsBinaryInner()
110 if (p.mNumOfPtNode == Position.NOT_READ_PTNODE_COUNT) { in readUnigramsAndBigramsBinaryInner()
111 p.mNumOfPtNode = dictDecoder.readPtNodeCount(); in readUnigramsAndBigramsBinaryInner()
112 p.mAddress = dictDecoder.getPosition(); in readUnigramsAndBigramsBinaryInner()
113 p.mPosition = 0; in readUnigramsAndBigramsBinaryInner()
115 if (p.mNumOfPtNode == 0) { in readUnigramsAndBigramsBinaryInner()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java87 SipPreference(Context c, SipProfile p) { in SipPreference() argument
89 setProfile(p); in SipPreference()
96 void setProfile(SipProfile p) { in setProfile() argument
97 mProfile = p; in setProfile()
98 setTitle(getProfileName(p)); in setProfile()
223 public boolean equals(SipProfile p) { in retrieveSipLists()
233 for (SipProfile p : mSipProfileList) { in retrieveSipLists()
234 addPreferenceFor(p); in retrieveSipLists()
239 for (SipProfile p : mSipProfileList) { in retrieveSipLists()
240 if (mUid == p.getCallingUid()) { in retrieveSipLists()
[all …]
DSipEditor.java161 SipProfile p = mOldProfile = (SipProfile) ((savedInstanceState == null) in onCreate() local
170 if (p == null) { in onCreate()
176 loadPreferencesFromProfile(p); in onCreate()
249 private void saveAndRegisterProfile(SipProfile p) throws IOException { in saveAndRegisterProfile() argument
250 if (p == null) return; in saveAndRegisterProfile()
251 mProfileDb.saveProfile(p); in saveAndRegisterProfile()
252 mSipAccountRegistry.startSipService(this, p.getUriString()); in saveAndRegisterProfile()
261 private void deleteAndUnregisterProfile(SipProfile p) { in deleteAndUnregisterProfile() argument
262 if (p == null) return; in deleteAndUnregisterProfile()
263 mProfileDb.deleteProfile(p); in deleteAndUnregisterProfile()
[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/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialog.java168 final AlertController.AlertParams p = mAlertParams; in createUserEntryDialog() local
169 p.mTitle = getString(R.string.bluetooth_pairing_request); in createUserEntryDialog()
170 p.mView = createPinEntryView(); in createUserEntryDialog()
171 p.mPositiveButtonText = getString(android.R.string.ok); in createUserEntryDialog()
172 p.mPositiveButtonListener = this; in createUserEntryDialog()
173 p.mNegativeButtonText = getString(android.R.string.cancel); in createUserEntryDialog()
174 p.mNegativeButtonListener = this; in createUserEntryDialog()
272 final AlertController.AlertParams p = mAlertParams; in createConfirmationDialog() local
273 p.mTitle = getString(R.string.bluetooth_pairing_request); in createConfirmationDialog()
274 p.mView = createView(); in createConfirmationDialog()
[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 …]
Dfx.c19 __inline__ int interp(unsigned char *src, int p , int *off ,float dr,float dg, float db){ in interp() argument
21 float fr00 = (src[p+off[0]])*(1-dr)+(src[p+off[1]])*dr; in interp()
22 float fr01 = (src[p+off[2]])*(1-dr)+(src[p+off[3]])*dr; in interp()
23 float fr10 = (src[p+off[4]])*(1-dr)+(src[p+off[5]])*dr; in interp()
24 float fr11 = (src[p+off[6]])*(1-dr)+(src[p+off[7]])*dr; in interp()
75 int p = lut_r+lut_b*lutdim_r+lut_g*lutdim_r*lutdim_b; in JNIFUNCF() local
76 p*=STEP; in JNIFUNCF()
80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); in JNIFUNCF()
81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); in JNIFUNCF()
82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db)); in JNIFUNCF()
/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/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/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/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.h91 inline double db_PolyEval1(const double p[2],double x) in db_PolyEval1()
93 return(p[0]+x*p[1]); in db_PolyEval1()
219 inline void db_CharacteristicPolynomial4x4(double p[5],const double A[16]) in db_CharacteristicPolynomial4x4()
278 db_MultiplyPoly1_3( p,P7,three3); in db_CharacteristicPolynomial4x4()
279 db_AddPolyProduct0_2( p,P4,neg_three0); in db_CharacteristicPolynomial4x4()
280 db_SubtractPolyProduct0_2(p,P5,neg_three1); in db_CharacteristicPolynomial4x4()
281 db_SubtractPolyProduct0_2(p,P6,three2); in db_CharacteristicPolynomial4x4()
286 double p[5]; variable
288 db_CharacteristicPolynomial4x4(p,A);
289 if(forced) db_SolveQuarticForced(lambda,nr_roots,p[4],p[3],p[2],p[1],p[0]);
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_poly.h91 inline double db_PolyEval1(const double p[2],double x) in db_PolyEval1()
93 return(p[0]+x*p[1]); in db_PolyEval1()
219 inline void db_CharacteristicPolynomial4x4(double p[5],const double A[16]) in db_CharacteristicPolynomial4x4()
278 db_MultiplyPoly1_3( p,P7,three3); in db_CharacteristicPolynomial4x4()
279 db_AddPolyProduct0_2( p,P4,neg_three0); in db_CharacteristicPolynomial4x4()
280 db_SubtractPolyProduct0_2(p,P5,neg_three1); in db_CharacteristicPolynomial4x4()
281 db_SubtractPolyProduct0_2(p,P6,three2); in db_CharacteristicPolynomial4x4()
286 double p[5]; variable
288 db_CharacteristicPolynomial4x4(p,A);
289 if(forced) db_SolveQuarticForced(lambda,nr_roots,p[4],p[3],p[2],p[1],p[0]);
[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 …]
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndldic.c929 NJ_UINT8 *ptr, *p; in get_cand_by_sequential() local
965 p = ptr + (current * NJ_INDEX_SIZE); in get_cand_by_sequential()
968 que_id = GET_UINT16(p); in get_cand_by_sequential()
1048 p += NJ_INDEX_SIZE; in get_cand_by_sequential()
1062 NJ_UINT8 *ptr, *p; in get_cand_by_evaluate() local
1112 p = ptr + (loctset->loct.top * NJ_INDEX_SIZE); in get_cand_by_evaluate()
1115 que_id = GET_UINT16(p); in get_cand_by_evaluate()
1181 p += NJ_INDEX_SIZE; in get_cand_by_evaluate()
1201 NJ_UINT8 *ptr, *p; in search_range_by_yomi() local
1238 p = ptr + (mid * NJ_INDEX_SIZE); in search_range_by_yomi()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DFolderList.java47 final Parcel p = Parcel.obtain(); in toBlob() local
48 writeToParcel(p, 0); in toBlob()
49 final byte[] result = p.marshall(); in toBlob()
50 p.recycle(); in toBlob()
62 final Parcel p = Parcel.obtain(); in listToBlob() local
63 p.writeTypedList(in); in listToBlob()
64 final byte[] result = p.marshall(); in listToBlob()
65 p.recycle(); in listToBlob()
74 final Parcel p = Parcel.obtain(); in fromBlob() local
75 p.unmarshall(blob, 0, blob.length); in fromBlob()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java53 DeviceProfileQuery(DeviceProfile p, float v) { in DeviceProfileQuery() argument
54 widthDps = p.minWidthDps; in DeviceProfileQuery()
55 heightDps = p.minHeightDps; in DeviceProfileQuery()
58 profile = p; in DeviceProfileQuery()
197 for (DeviceProfile p : profiles) { in DeviceProfile()
198 points.add(new DeviceProfileQuery(p, 0f)); in DeviceProfile()
217 for (DeviceProfile p : profiles) { in DeviceProfile()
218 points.add(new DeviceProfileQuery(p, p.iconSize)); in DeviceProfile()
227 for (DeviceProfile p : profiles) { in DeviceProfile()
228 points.add(new DeviceProfileQuery(p, p.iconTextSize)); in DeviceProfile()
[all …]

1234567891011