Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dpointertest.cpp37 Pointer p(""); in TEST() local
38 EXPECT_TRUE(p.IsValid()); in TEST()
39 EXPECT_EQ(0u, p.GetTokenCount()); in TEST()
43 Pointer p("/"); in TEST() local
44 EXPECT_TRUE(p.IsValid()); in TEST()
45 EXPECT_EQ(1u, p.GetTokenCount()); in TEST()
46 EXPECT_EQ(0u, p.GetTokens()[0].length); in TEST()
47 EXPECT_STREQ("", p.GetTokens()[0].name); in TEST()
48 EXPECT_EQ(kPointerInvalidIndex, p.GetTokens()[0].index); in TEST()
52 Pointer p("/foo"); in TEST() local
[all …]
/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/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp377 char *p = buffer; in WriteUint() local
379 *p++ = char(u % 10) + '0'; in WriteUint()
384 --p; in WriteUint()
385 os_->Put(*p); in WriteUint()
386 } while (p != buffer); in WriteUint()
401 char *p = buffer; in WriteUint64() local
403 *p++ = char(u64 % 10) + '0'; in WriteUint64()
408 --p; in WriteUint64()
409 os_->Put(*p); in WriteUint64()
410 } while (p != buffer); in WriteUint64()
[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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DAppRestrictionsFragment.java364 AppRestrictionsPreference p = new AppRestrictionsPreference(getPrefContext(), this); in populateApps() local
367 addLocationAppRestrictionsPreference(app, p); in populateApps()
386 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps()
387 p.setChecked(false); in populateApps()
388 p.setTitle(app.activityName); in populateApps()
389 p.setKey(getKeyForPackage(packageName)); in populateApps()
390 p.setSettingsEnabled(hasSettings && app.masterEntry == null); in populateApps()
391 p.setPersistent(false); in populateApps()
392 p.setOnPreferenceChangeListener(this); in populateApps()
393 p.setOnPreferenceClickListener(this); in populateApps()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java364 AppRestrictionsPreference p = new AppRestrictionsPreference(getPrefContext(), this); in populateApps() local
367 addLocationAppRestrictionsPreference(app, p); in populateApps()
386 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps()
387 p.setChecked(false); in populateApps()
388 p.setTitle(app.activityName); in populateApps()
389 p.setKey(getKeyForPackage(packageName)); in populateApps()
390 p.setSettingsEnabled(hasSettings && app.masterEntry == null); in populateApps()
391 p.setPersistent(false); in populateApps()
392 p.setOnPreferenceChangeListener(this); in populateApps()
393 p.setOnPreferenceClickListener(this); in populateApps()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java420 AppRestrictionsPreference p = in populateApps() local
442 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps()
443 p.setChecked(false); in populateApps()
444 p.setTitle(app.activityName); in populateApps()
445 p.setKey(getKeyForPackage(packageName)); in populateApps()
446 p.setPersistent(false); in populateApps()
447 p.setOnPreferenceChangeListener(this); in populateApps()
448 p.setSummary(getPackageSummary(pi, app)); in populateApps()
450 p.setChecked(true); in populateApps()
451 p.setImmutable(true); in populateApps()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java144 PreviewItemDrawingParams p = params.get(i); in drawParams() local
145 if (!p.hidden) { in drawParams()
146 drawPreviewItem(canvas, p); in drawParams()
216 PreviewItemDrawingParams p = params.get(i);
217 p.drawable = items.get(i).getCompoundDrawables()[1];
219 if (p.drawable != null && !mIcon.mFolder.isOpen()) {
222 p.drawable.setCallback(mIcon);
226 computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, p);
228 mReferenceDrawable = p.drawable;
231 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, i, prevNumItems, i,
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java808 Paint p = mSelectionPaint; in init() local
809 p.setColor(gridLineColor); in init()
810 p.setStyle(Style.FILL); in init()
811 p.setAntiAlias(false); in init()
813 p = mPaint; in init()
814 p.setAntiAlias(true); in init()
843 p.setTextSize(DATE_HEADER_FONT_SIZE); in init()
844 p.setTypeface(mBold); in init()
846 mDateStrWidth = computeMaxStringWidth(0, dateStrs, p); in init()
847 p.setTextSize(DAY_HEADER_FONT_SIZE); in init()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java90 Position p = stack.peek(); in readUnigramsAndBigramsBinaryInner() local
93 MakedictLog.d("read: address=" + p.mAddress + ", numOfPtNode=" + in readUnigramsAndBigramsBinaryInner()
94 p.mNumOfPtNode + ", position=" + p.mPosition + ", length=" + p.mLength); in readUnigramsAndBigramsBinaryInner()
97 if (dictDecoder.getPosition() != p.mAddress) dictDecoder.setPosition(p.mAddress); in readUnigramsAndBigramsBinaryInner()
98 if (index != p.mLength) index = p.mLength; in readUnigramsAndBigramsBinaryInner()
100 if (p.mNumOfPtNode == Position.NOT_READ_PTNODE_COUNT) { in readUnigramsAndBigramsBinaryInner()
101 p.mNumOfPtNode = dictDecoder.readPtNodeCount(); in readUnigramsAndBigramsBinaryInner()
102 p.mAddress = dictDecoder.getPosition(); in readUnigramsAndBigramsBinaryInner()
103 p.mPosition = 0; in readUnigramsAndBigramsBinaryInner()
105 if (p.mNumOfPtNode == 0) { in readUnigramsAndBigramsBinaryInner()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryAddonsAdapter.java127 public void onBindViewHolder(DocumentHolder holder, int p, List<Object> payload) {
139 mDelegate.onBindViewHolder(holder, toDelegatePosition(p), payload);
145 public void onBindViewHolder(DocumentHolder holder, int p) {
157 mDelegate.onBindViewHolder(holder, toDelegatePosition(p));
206 public int getItemViewType(int p) {
207 if (p == 0 && mHeaderMessage.shouldShow()) {
211 if (p == mBreakPosition) {
215 if (p == getItemCount() - 1 && mInflateMessage.shouldShow()) {
219 return mDelegate.getItemViewType(toDelegatePosition(p));
229 private int toDelegatePosition(int p) {
[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/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/jni/filters/
DredEyeMath.c26 int isRed(unsigned char *src, int p) { in isRed() argument
27 int b = src[p + 2]; in isRed()
28 int g = src[p + 1]; in isRed()
29 int r = src[p]; in isRed()
43 int p = (recX + x + sy) * 4; in findPossible() local
45 int b = src[p + 2]; in findPossible()
46 int g = src[p + 1]; in findPossible()
47 int r = src[p]; in findPossible()
64 int p = (recX + x + sy) * 4; in findReds() local
66 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/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java77 SipPreference(Context c, SipProfile p) { in SipPreference() argument
79 setProfile(p); in SipPreference()
86 void setProfile(SipProfile p) { in setProfile() argument
87 mProfile = p; in setProfile()
88 setTitle(getProfileName(p)); in setProfile()
212 public boolean equals(SipProfile p) { in retrieveSipLists()
222 for (SipProfile p : mSipProfileList) { in retrieveSipLists()
223 addPreferenceFor(p); in retrieveSipLists()
228 for (SipProfile p : mSipProfileList) { in retrieveSipLists()
229 if (mUid == p.getCallingUid()) { in retrieveSipLists()
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java74 CameraCharacteristics p; in printCameraInfo() local
76 p = manager.getCameraCharacteristics(id); in printCameraInfo()
84 Rect size = p.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in printCameraInfo()
92 Size size2 = p.get(CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE); in printCameraInfo()
95 SizeF size3 = p.get(CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE); in printCameraInfo()
99 int sensorOrientation = p.get(CameraCharacteristics.SENSOR_ORIENTATION); in printCameraInfo()
103 getTimestampSourceName(p.get(CameraCharacteristics.SENSOR_INFO_TIMESTAMP_SOURCE))); in printCameraInfo()
106 …getFocusDistanceCalibrationName(p.get(CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION))… in printCameraInfo()
108 int[] faceModes = p.get(CameraCharacteristics.STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES); in printCameraInfo()
126 …Log.v(TAG, "STATISTICS_INFO_MAX_FACE_COUNT: " + p.get(CameraCharacteristics.STATISTICS_INFO_MAX_FA… in printCameraInfo()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java129 private InvariantDeviceProfile(InvariantDeviceProfile p) { in InvariantDeviceProfile() argument
130 numRows = p.numRows; in InvariantDeviceProfile()
131 numColumns = p.numColumns; in InvariantDeviceProfile()
132 numFolderRows = p.numFolderRows; in InvariantDeviceProfile()
133 numFolderColumns = p.numFolderColumns; in InvariantDeviceProfile()
134 iconSize = p.iconSize; in InvariantDeviceProfile()
135 iconShapePath = p.iconShapePath; in InvariantDeviceProfile()
136 landscapeIconSize = p.landscapeIconSize; in InvariantDeviceProfile()
137 iconTextSize = p.iconTextSize; in InvariantDeviceProfile()
138 numHotseatIcons = p.numHotseatIcons; in InvariantDeviceProfile()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DCarPropertyUtils.java137 static CarPropertyConfig<?> toCarPropertyConfig(VehiclePropConfig p, int propertyId) { in toCarPropertyConfig() argument
138 int areaType = getVehicleAreaType(p.prop & VehicleArea.MASK); in toCarPropertyConfig()
140 int[] areas = new int[p.areaConfigs.size()]; in toCarPropertyConfig()
141 for (int i=0; i<p.areaConfigs.size(); i++) { in toCarPropertyConfig()
142 areas[i] = p.areaConfigs.get(i).areaId; in toCarPropertyConfig()
145 Class<?> clazz = getJavaClass(p.prop & VehiclePropertyType.MASK); in toCarPropertyConfig()
146 if (p.areaConfigs.isEmpty()) { in toCarPropertyConfig()
150 .setAccess(p.access) in toCarPropertyConfig()
151 .setChangeMode(p.changeMode) in toCarPropertyConfig()
152 .setConfigArray(p.configArray) in toCarPropertyConfig()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java97 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_stringResources_shouldLoadResources()
98 assertThat(p.getTitle()).isEqualTo(FAKE_TITLE); in testLoadPreference_stringResources_shouldLoadResources()
99 assertThat(p.getSummary()).isEqualTo(FAKE_SUMMARY); in testLoadPreference_stringResources_shouldLoadResources()
131 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_metadataBundleIsValue()
132 assertThat(p.getTitle()).isEqualTo(FAKE_TITLE); in testLoadPreference_metadataBundleIsValue()
133 assertThat(p.getSummary()).isEqualTo(FAKE_SUMMARY); in testLoadPreference_metadataBundleIsValue()
135 Bundle b = preferenceToBundleMap.get(p); in testLoadPreference_metadataBundleIsValue()
171 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_integerResources_shouldLoadResources()
172 assertThat(p.getTitle()).isEqualTo(FAKE_TITLE); in testLoadPreference_integerResources_shouldLoadResources()
173 assertThat(p.getSummary()).isEqualTo(FAKE_SUMMARY); in testLoadPreference_integerResources_shouldLoadResources()
[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/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dwriter.h207 for (const char* p = buffer; p != end; ++p) in WriteInt() local
208 os_->Put(*p); in WriteInt()
215 for (const char* p = buffer; p != end; ++p) in WriteUint() local
216 os_->Put(*p); in WriteUint()
223 for (const char* p = buffer; p != end; ++p) in WriteInt64() local
224 os_->Put(*p); in WriteInt64()
231 for (char* p = buffer; p != end; ++p) in WriteUint64() local
232 os_->Put(*p); in WriteUint64()
239 for (char* p = buffer; p != end; ++p) in WriteDouble() local
240 os_->Put(*p); in WriteDouble()
/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/Settings/src/com/android/settings/fuelgauge/
DInactiveApps.java91 ListPreference p = new ListPreference(getPrefContext()); in init() local
92 p.setTitle(app.loadLabel(pm)); in init()
93 p.setIcon(app.loadIcon(pm)); in init()
94 p.setKey(packageName); in init()
95 p.setEntries(SETTABLE_BUCKETS_NAMES); in init()
96 p.setEntryValues(SETTABLE_BUCKETS_VALUES); in init()
97 updateSummary(p); in init()
98 p.setOnPreferenceChangeListener(this); in init()
100 screen.addPreference(p); in init()
116 private void updateSummary(ListPreference p) { in updateSummary() argument
[all …]

12345678910>>...16