/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | pointertest.cpp | 37 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/ |
D | ImapResponseParserTest.java | 51 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/ |
D | misctest.cpp | 377 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/ |
D | MimeUtilityTest.java | 367 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/android_support_car_api_test/src/com/android/support/car/apitest/ |
D | ExtendableParcelableTest.java | 295 Parcel p = Parcel.obtain(); in testV1ToV3() local 296 int startPos = p.dataPosition(); in testV1ToV3() 305 v1.writeToParcel(p, 0); in testV1ToV3() 307 p.writeInt(additionalData); in testV1ToV3() 309 p.setDataPosition(startPos); in testV1ToV3() 310 V3Parcelable v3 = new V3Parcelable(p); in testV1ToV3() 318 assertEquals(additionalData, p.readInt()); in testV1ToV3() 322 Parcel p = Parcel.obtain(); in testV2ToV3() local 323 int startPos = p.dataPosition(); in testV2ToV3() 335 v2.writeToParcel(p, 0); in testV2ToV3() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InvariantDeviceProfile.java | 89 public InvariantDeviceProfile(InvariantDeviceProfile p) { in InvariantDeviceProfile() argument 90 this(p.name, p.minWidthDps, p.minHeightDps, p.numRows, p.numColumns, in InvariantDeviceProfile() 91 p.numFolderRows, p.numFolderColumns, p.minAllAppsPredictionColumns, in InvariantDeviceProfile() 92 p.iconSize, p.iconTextSize, p.numHotseatIcons, p.hotseatIconSize, in InvariantDeviceProfile() 93 p.defaultLayoutId); in InvariantDeviceProfile() 233 Partner p = Partner.get(context.getPackageManager()); in applyPartnerDeviceProfileOverrides() local 234 if (p != null) { in applyPartnerDeviceProfileOverrides() 235 p.applyInvariantDeviceProfileOverrides(this, dm); in applyPartnerDeviceProfileOverrides() 267 InvariantDeviceProfile p = points.get(0); in invDistWeightedInterpolate() local 268 if (dist(width, height, p.minWidthDps, p.minHeightDps) == 0) { in invDistWeightedInterpolate() [all …]
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 363 AppRestrictionsPreference p = new AppRestrictionsPreference(getPrefContext(), this); in populateApps() local 366 addLocationAppRestrictionsPreference(app, p); in populateApps() 385 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps() 386 p.setChecked(false); in populateApps() 387 p.setTitle(app.activityName); in populateApps() 388 p.setKey(getKeyForPackage(packageName)); in populateApps() 389 p.setSettingsEnabled(hasSettings && app.masterEntry == null); in populateApps() 390 p.setPersistent(false); in populateApps() 391 p.setOnPreferenceChangeListener(this); in populateApps() 392 p.setOnPreferenceClickListener(this); in populateApps() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | AppRestrictionsFragment.java | 396 AppRestrictionsPreference p = in populateApps() local 418 p.setIcon(app.icon != null ? app.icon.mutate() : null); in populateApps() 419 p.setChecked(false); in populateApps() 420 p.setTitle(app.activityName); in populateApps() 421 p.setKey(getKeyForPackage(packageName)); in populateApps() 422 p.setPersistent(false); in populateApps() 423 p.setOnPreferenceChangeListener(this); in populateApps() 424 p.setSummary(getPackageSummary(pi, app)); in populateApps() 426 p.setChecked(true); in populateApps() 427 p.setImmutable(true); in populateApps() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictIOUtils.java | 90 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/Gallery2/src/com/android/gallery3d/data/ |
D | Path.java | 44 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/ |
D | redEyeMath.c | 24 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 …]
|
D | fx.c | 19 __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/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | BoundedRect.java | 198 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 …]
|
D | CropDrawingUtils.java | 31 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/services/Car/libvehiclenetwork/tool/ |
D | vehiclehal_code_gen.py | 106 for p in props: 107 print JAVA_INT_DEF + p.name + " = " + p.value + ";" 113 for p in props: 114 if p.type != "": 115 print "case " + p.name + ": return VehicleValueType." + p.type + ";" 125 for p in props: 126 if (p.startEnd == 0): 127 print "case " + p.name + ': return "' + p.name + '";' 137 for p in props: 138 if p.changeMode != "": [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipSettings.java | 77 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 …]
|
D | SipProfileDb.java | 69 public void deleteProfile(SipProfile p) { in deleteProfile() argument 71 deleteProfile(new File(mProfilesDirectory + p.getProfileName())); in deleteProfile() 93 public void saveProfile(SipProfile p) throws IOException { in saveProfile() argument 96 File f = new File(mProfilesDirectory + p.getProfileName()); in saveProfile() 104 oos.writeObject(p); in saveProfile() 130 SipProfile p = retrieveSipProfileFromName(dir); in retrieveSipProfileListInternal() local 131 if (p == null) continue; in retrieveSipProfileListInternal() 132 sipProfileList.add(p); in retrieveSipProfileListInternal() 147 SipProfile p = deserialize(f); in retrieveSipProfileFromName() local 148 if (p != null && name.equals(p.getProfileName())) { in retrieveSipProfileFromName() [all …]
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 74 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/UnifiedEmail/src/com/android/mail/providers/ |
D | FolderList.java | 47 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/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactEntryAdapter.java | 53 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/Calendar/src/com/android/calendar/ |
D | DayView.java | 825 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/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialog.java | 173 final AlertController.AlertParams p = mAlertParams; in createUserEntryDialog() local 174 p.mTitle = getString(R.string.bluetooth_pairing_request, in createUserEntryDialog() 176 p.mView = createPinEntryView(); in createUserEntryDialog() 177 p.mPositiveButtonText = getString(android.R.string.ok); in createUserEntryDialog() 178 p.mPositiveButtonListener = this; in createUserEntryDialog() 179 p.mNegativeButtonText = getString(android.R.string.cancel); in createUserEntryDialog() 180 p.mNegativeButtonListener = this; in createUserEntryDialog() 331 final AlertController.AlertParams p = mAlertParams; in createConfirmationDialog() local 332 p.mTitle = getString(R.string.bluetooth_pairing_request, in createConfirmationDialog() 334 p.mView = createView(); in createConfirmationDialog() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | writer.h | 207 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/ |
D | SimpleWeekView.java | 114 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/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Pyramid.cpp | 209 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 …]
|