Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 376) 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/modules/NetworkStack/common/moduleutils/src/android/net/shared/
DProvisioningConfiguration.java300 final InformationElementParcelable p = new InformationElementParcelable(); in toStableParcelable() local
301 p.id = mId; in toStableParcelable()
302 p.payload = mPayload != null ? mPayload.clone() : null; in toStableParcelable()
303 return p; in toStableParcelable()
311 public static InformationElement fromStableParcelable(InformationElementParcelable p) { in fromStableParcelable() argument
312 if (p == null) return null; in fromStableParcelable()
313 return new InformationElement(p.id, in fromStableParcelable()
314 ByteBuffer.wrap(p.payload.clone()).asReadOnlyBuffer()); in fromStableParcelable()
384 final ScanResultInfoParcelable p = new ScanResultInfoParcelable(); in toStableParcelable() local
385 p.ssid = mSsid; in toStableParcelable()
[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/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/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/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/modules/NetworkStack/src/android/net/dhcp/
DDhcpResultsParcelableUtil.java38 final DhcpResultsParcelable p = new DhcpResultsParcelable(); in toStableParcelable()
39 p.baseConfiguration = results.toStaticIpConfiguration(); in toStableParcelable()
40 p.leaseDuration = results.leaseDuration; in toStableParcelable()
41 p.mtu = results.mtu; in toStableParcelable()
42 p.serverAddress = parcelAddress(results.serverAddress); in toStableParcelable()
43 p.vendorInfo = results.vendorInfo; in toStableParcelable()
44 p.serverHostName = results.serverHostName; in toStableParcelable()
45 p.captivePortalApiUrl = results.captivePortalApiUrl; in toStableParcelable()
46 return p; in toStableParcelable()
52 public static DhcpResults fromStableParcelable(@Nullable DhcpResultsParcelable p) { in fromStableParcelable() argument
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java170 PreviewItemDrawingParams p = params.get(i); in drawParams() local
171 if (!p.hidden) { in drawParams()
172 drawPreviewItem(canvas, p); in drawParams()
242 PreviewItemDrawingParams p = params.get(i);
243 setDrawable(p, items.get(i));
246 computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, p);
248 mReferenceDrawable = p.drawable;
251 FolderPreviewItemAnim anim = new FolderPreviewItemAnim(this, p, i, prevNumItems, i,
254 if (p.anim != null) {
255 if (p.anim.hasEqualFinalState(anim)) {
[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.java78 SipPreference(Context c, SipProfile p) { in SipPreference() argument
80 setProfile(p); in SipPreference()
87 void setProfile(SipProfile p) { in setProfile() argument
88 mProfile = p; in setProfile()
89 setTitle(getProfileName(p)); in setProfile()
213 public boolean equals(SipProfile p) { in retrieveSipLists()
223 for (SipProfile p : mSipProfileList) { in retrieveSipLists()
224 addPreferenceFor(p); in retrieveSipLists()
229 for (SipProfile p : mSipProfileList) { in retrieveSipLists()
230 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.java138 private InvariantDeviceProfile(InvariantDeviceProfile p) { in InvariantDeviceProfile() argument
139 numRows = p.numRows; in InvariantDeviceProfile()
140 numColumns = p.numColumns; in InvariantDeviceProfile()
141 numFolderRows = p.numFolderRows; in InvariantDeviceProfile()
142 numFolderColumns = p.numFolderColumns; in InvariantDeviceProfile()
143 iconSize = p.iconSize; in InvariantDeviceProfile()
144 iconShapePath = p.iconShapePath; in InvariantDeviceProfile()
145 landscapeIconSize = p.landscapeIconSize; in InvariantDeviceProfile()
146 iconTextSize = p.iconTextSize; in InvariantDeviceProfile()
147 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/TV/tuner/tests/assets/
Dcapture_kqed.ts16 �G�8p<��JM� a�{� Ӷ~nj�'T_�n�U��.��Lo+\�D�ݺ��9���Gc�XZ/,&���G�ۮ����}
22 ….��Lo;lʄ�W��Nc3�H��&V�UN��'�h�Y��f;�<r G�6tˍo^��qeA~l����������a'�p�"�F�ٺ���}�'N{���U�
26 …_G�y�j_!$�����6E>�n��d��f�y�#V[�N�ժ���m=�(JaҶd-�L���� �=��>�I�� �pE@V�\?)��p����i�g�[���K����…
27 1�/��p�2�ٺ~߼b!�t�*�V��ZC{���UO_���·کg���W�+j}*L���G�f!N̯��3�WЩ�i�H�O͗Z)�/���;t<hȘ0�ߴ�…
31 �Ժ�� �5p(X�P��2����a�O]7��Q��竗~���\���L�ݲv���QWY�z�"�~�*�v�
36 …�J@,�fM|x���G�0��*_ɶ��(if$6XV>B#��@6s�`�&���[��Fs 4hШ@}:lؠ%� �PΗ��p"�y�F��<*�l�a�{� …
59 …Of�2�D?4Un�d'�l�Y��f;W'G8�9O�9���]2��GN^���.G�4��`�#����aQ�֐b��pL�P��ݔx����7�O�����P��<p
73 …�-�W�*4�,�[J��/Y#6�>���G�f��� ���C�C� ���H���mReeg�S�6 ��Xk��]����)ɓ��p*�i�5F�?Q�a2�/)~A5GP…
114 …�7U ��fM��82.k\���R��,���K�G�<�t>�j��}+��4(��tN�x����G��z�l�_,���և�aAp �"�m�h8���B�W���s�B�…
115 �(��M��X;᤼嚙�� ��B^p��D���S����_�;�-W/6�.b��I��P;鴌5:ٕ�F���
[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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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