/packages/apps/TV/src/com/android/tv/data/api/ |
D | Program.java | 22 static boolean isDuplicate(Program p1, Program p2) { in isDuplicate() argument 23 if (p1 == null || p2 == null) { in isDuplicate() 26 return p1.getChannelId() == p2.getChannelId() in isDuplicate() 27 && p1.getStartTimeUtcMillis() == p2.getStartTimeUtcMillis() in isDuplicate() 28 && p1.getEndTimeUtcMillis() == p2.getEndTimeUtcMillis(); in isDuplicate() 32 static boolean isOverlapping(@Nullable Program p1, @Nullable Program p2) { in isOverlapping() argument 34 && p2 != null in isOverlapping() 35 && p1.getStartTimeUtcMillis() < p2.getEndTimeUtcMillis() in isOverlapping() 36 && p1.getEndTimeUtcMillis() > p2.getStartTimeUtcMillis(); in isOverlapping() 40 static boolean sameChannel(@Nullable Program p1, @Nullable Program p2) { in sameChannel() argument [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolatorTests.java | 52 private static final int p2 = 2; field in HermiteInterpolatorTests 96 mInterpolator.setInterval(p1 - 1, p1, p2, p2 + 1); in testP1P2() 99 assertEquals("p2x", mXCoords[p2], mInterpolator.mP2X); in testP1P2() 100 assertEquals("p2y", mYCoords[p2], mInterpolator.mP2Y); in testP1P2() 133 mInterpolator.setInterval(p2 - 1, p2, p3, p3 + 1); in testP2P3() 134 assertEquals("p2x", mXCoords[p2], mInterpolator.mP1X); in testP2P3() 135 assertEquals("p2y", mYCoords[p2], mInterpolator.mP1Y); in testP2P3() 169 mInterpolator.reset(mXCoords, mYCoords, p1, p2 + 1); in testJustP1P2() 170 mInterpolator.setInterval(p1 - 1, p1, p2, p2 + 1); in testJustP1P2() 173 assertEquals("p2x", mXCoords[p2], mInterpolator.mP2X); in testJustP1P2() [all …]
|
/packages/apps/SecureElement/src/com/android/se/ |
D | SecureElementService.java | 301 public ISecureElementChannel openBasicChannel(byte[] aid, byte p2, in openBasicChannel() argument 305 + ByteArrayConverter.byteArrayToHexString(aid) + ", P2 = " + p2); in openBasicChannel() 311 } else if ((p2 != 0x00) && (p2 != 0x04) && (p2 != 0x08) in openBasicChannel() 312 && (p2 != (byte) 0x0C)) { in openBasicChannel() 314 + String.format("%02x ", p2 & 0xFF)); in openBasicChannel() 321 channel = mReader.getTerminal().openBasicChannel(this, aid, p2, listener, in openBasicChannel() 343 public ISecureElementChannel openLogicalChannel(byte[] aid, byte p2, in openLogicalChannel() argument 347 + ByteArrayConverter.byteArrayToHexString(aid) + ", P2 = " + p2); in openLogicalChannel() 353 } else if ((p2 != 0x00) && (p2 != 0x04) && (p2 != 0x08) in openLogicalChannel() 354 && (p2 != (byte) 0x0C)) { in openLogicalChannel() [all …]
|
D | Terminal.java | 425 public Channel openBasicChannel(SecureElementSession session, byte[] aid, byte p2, in openBasicChannel() argument 467 mSEHal.openBasicChannel(byteArrayToArrayList(aid), p2, in openBasicChannel() local 514 public Channel openLogicalChannel(SecureElementSession session, byte[] aid, byte p2, in openLogicalChannel() argument 545 mSEHal.openLogicalChannel(byteArrayToArrayList(aid), p2, in openLogicalChannel() local
|
/packages/apps/Gallery2/jni/filters/ |
D | tinyplanet.cc | 66 const unsigned char *p2 = image(x, y + 1); in InterpolatePixel() local 70 ax * ay * p2[4] + axn * ay * p2[0] + 0.5f); in InterpolatePixel() 72 p2++; in InterpolatePixel() 75 ax * ay * p2[4] + axn * ay * p2[0] + 0.5f); in InterpolatePixel() 77 p2++; in InterpolatePixel() 80 ax * ay * p2[4] + axn * ay * p2[0] + 0.5f); in InterpolatePixel() 82 p2++; in InterpolatePixel()
|
/packages/apps/Camera2/jni/ |
D | tinyplanet.cc | 67 const unsigned char *p2 = image(x, y + 1); in InterpolatePixel() local 71 ax * ay * p2[4] + axn * ay * p2[0] + 0.5f); in InterpolatePixel() 73 p2++; in InterpolatePixel() 76 ax * ay * p2[4] + axn * ay * p2[0] + 0.5f); in InterpolatePixel() 78 p2++; in InterpolatePixel() 81 ax * ay * p2[4] + axn * ay * p2[0] + 0.5f); in InterpolatePixel() 83 p2++; in InterpolatePixel()
|
/packages/apps/SecureElement/src/com/android/se/security/ |
D | CommandApdu.java | 49 public CommandApdu(int cla, int ins, int p1, int p2) { in CommandApdu() argument 53 mP2 = p2; in CommandApdu() 59 public CommandApdu(int cla, int ins, int p1, int p2, byte[] data) { in CommandApdu() argument 64 mP2 = p2; in CommandApdu() 68 public CommandApdu(int cla, int ins, int p1, int p2, byte[] data, int le) { in CommandApdu() argument 73 mP2 = p2; in CommandApdu() 79 public CommandApdu(int cla, int ins, int p1, int p2, int le) { in CommandApdu() argument 83 mP2 = p2; in CommandApdu() 120 public void setP2(int p2) { in setP2() argument 121 mP2 = p2; in setP2()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureStrokeDrawingPoints.java | 136 for (int p2 = mLastInterpolatedPreviewIndex + 1; p2 < size; p2++) { in interpolateStrokeAndReturnStartIndexOfLastSegment() 137 final int p1 = p2 - 1; in interpolateStrokeAndReturnStartIndexOfLastSegment() 139 final int p3 = p2 + 1; in interpolateStrokeAndReturnStartIndexOfLastSegment() 142 mInterpolator.setInterval(p0, p1, p2, p3); in interpolateStrokeAndReturnStartIndexOfLastSegment() 155 final int dt = pt[p2] - pt[p1]; in interpolateStrokeAndReturnStartIndexOfLastSegment() 168 eventTimes.addAt(d1, pt[p2]); in interpolateStrokeAndReturnStartIndexOfLastSegment() 169 xCoords.addAt(d1, px[p2]); in interpolateStrokeAndReturnStartIndexOfLastSegment() 170 yCoords.addAt(d1, py[p2]); in interpolateStrokeAndReturnStartIndexOfLastSegment()
|
D | HermiteInterpolator.java | 79 public void setInterval(final int p0, final int p1, final int p2, final int p3) { in setInterval() argument 82 mP2X = mXCoords[p2]; in setInterval() 83 mP2Y = mYCoords[p2]; in setInterval()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | dtoa.h | 64 uint64_t p2 = Mp.f & (one.f - 1); in DigitGen() local 85 uint64_t tmp = (static_cast<uint64_t>(p1) << -one.e) + p2; in DigitGen() 95 p2 *= 10; in DigitGen() 97 char d = static_cast<char>(p2 >> -one.e); in DigitGen() 100 p2 &= one.f - 1; in DigitGen() 102 if (p2 < delta) { in DigitGen() 104 GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-static_cast<int>(kappa)]); in DigitGen()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/data/ |
D | SeriesRecordingTest.java | 79 Parcel p2 = Parcel.obtain(); in testParcelable() local 83 p2.unmarshall(bytes, 0, bytes.length); in testParcelable() 84 p2.setDataPosition(0); in testParcelable() 85 SeriesRecording r2 = SeriesRecording.fromParcel(p2); in testParcelable() 89 p2.recycle(); in testParcelable()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | ProgramTest.java | 135 Parcel p2 = Parcel.obtain(); in testParcelable() local 139 p2.unmarshall(bytes, 0, bytes.length); in testParcelable() 140 p2.setDataPosition(0); in testParcelable() 141 ProgramImpl r2 = ProgramImpl.fromParcel(p2); in testParcelable() 145 p2.recycle(); in testParcelable()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | CubicBezierInterpolator.java | 51 private float getCoordinate(float t, float p1, float p2) { in getCoordinate() argument 59 float ip1 = linearInterpolate(p1, p2, t); in getCoordinate() 60 float ip2 = linearInterpolate(p2, 1, t); in getCoordinate()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserPreference.java | 43 (p1, p2) -> { 48 else if (p2 == null) { 52 int sn2 = p2.getSerialNumber();
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | UserPreference.java | 43 (p1, p2) -> { 48 else if (p2 == null) { 52 int sn2 = p2.getSerialNumber();
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_image_homography.cpp | 117 double p1[2],p2[2],p3[2],p4[2],p5[2],p6[2]; in db_CommonFocalLengthFromRotation_2Point() local 147 p2[1]=db_sqr(apx)+db_sqr(apy); in db_CommonFocalLengthFromRotation_2Point() 152 p1[0]=p2[0]=p3[0]=p4[0]=p5[0]=p6[0]=1; in db_CommonFocalLengthFromRotation_2Point() 155 db_MultiplyPoly1_2(p8,p2,p7); in db_CommonFocalLengthFromRotation_2Point()
|
/packages/modules/DnsResolver/ |
D | res_cache.cpp | 547 const uint8_t* p2 = pack2->cursor; in _dnsPacket_isEqualDomainName() local 553 if (p1 >= end1 || p2 >= end2) { in _dnsPacket_isEqualDomainName() 558 c2 = *p2++; in _dnsPacket_isEqualDomainName() 563 pack2->cursor = p2; in _dnsPacket_isEqualDomainName() 570 if ((p1 + c1 > end1) || (p2 + c1 > end2)) { in _dnsPacket_isEqualDomainName() 574 if (memcmp(p1, p2, c1) != 0) break; in _dnsPacket_isEqualDomainName() 576 p2 += c1; in _dnsPacket_isEqualDomainName() 586 const uint8_t* p2 = pack2->cursor; in _dnsPacket_isEqualBytes() local 588 if (p1 + numBytes > pack1->end || p2 + numBytes > pack2->end) return 0; in _dnsPacket_isEqualBytes() 590 if (memcmp(p1, p2, numBytes) != 0) return 0; in _dnsPacket_isEqualBytes()
|
/packages/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 336 public int channel, cla, command, p1, p2, p3; field in PhoneInterfaceManager.IccAPDUArgument 340 int p1, int p2, int p3, String data) { in IccAPDUArgument() argument 345 this.p2 = p2; in IccAPDUArgument() 494 iccArgument.p1, iccArgument.p2, iccArgument.p3, iccArgument.data, in handleMessage() 530 iccArgument.cla, iccArgument.command, iccArgument.p1, iccArgument.p2, in handleMessage() 566 iccArgument.command, iccArgument.p1, iccArgument.p2, iccArgument.p3, in handleMessage() 4446 int subId, String callingPackage, String aid, int p2) { in iccOpenLogicalChannel() argument 4451 log("iccOpenLogicalChannel: subId=" + subId + " aid=" + aid + " p2=" + p2); in iccOpenLogicalChannel() 4454 p2); in iccOpenLogicalChannel() 4460 int slotIndex, String callingPackage, String aid, int p2) { in iccOpenLogicalChannelBySlot() argument [all …]
|
D | ChangeIccPinScreen.java | 150 private int validateNewPin(String p1, String p2) { in validateNewPin() argument 155 if (!p1.equals(p2)) { in validateNewPin()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 1250 Comparator<PhoneAccount> bySimCapability = (p1, p2) -> { in sortPhoneAccounts() 1252 && !p2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in sortPhoneAccounts() 1255 && p2.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in sortPhoneAccounts() 1268 Comparator<PhoneAccount> bySortOrder = (p1, p2) -> { in sortPhoneAccounts() 1271 String sort2 = p2.getExtras() == null ? null : in sortPhoneAccounts() 1272 p2.getExtras().getString(PhoneAccount.EXTRA_SORT_ORDER, null); in sortPhoneAccounts() 1277 Comparator<PhoneAccount> byLabel = (p1, p2) -> { in sortPhoneAccounts() 1279 String s2 = p2.getLabel() == null ? null : p2.getLabel().toString(); in sortPhoneAccounts()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | FusionDictionary.java | 468 public int compare(PtNode p1, PtNode p2) { in compare() argument 469 if (p1.mChars[0] == p2.mChars[0]) return 0; in compare() 470 return p1.mChars[0] < p2.mChars[0] ? -1 : 1; in compare()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluator.java | 156 private static double calculateTimeMatchScore(Program p1, Program p2) { in calculateTimeMatchScore() argument 158 ProgramTime t2 = ProgramTime.createFromProgram(p2); in calculateTimeMatchScore()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalSource.java | 249 public int compare(PathId p1, PathId p2) { in compare() argument 251 String s2 = p2.path.getSuffix(); in compare()
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipSettings.java | 209 public int compare(SipProfile p1, SipProfile p2) { in retrieveSipLists() 210 return getProfileName(p1).compareTo(getProfileName(p2)); in retrieveSipLists()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ConferenceParticipantListAdapter.java | 432 public int compare(ParticipantInfo p1, ParticipantInfo p2) { in sortParticipantList() 441 ContactCacheEntry c2 = p2.getContactCacheEntry(); in sortParticipantList()
|