Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 19 of 19) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java57 private static final int p2 = 2; field in HermiteInterpolatorTests
99 mInterpolator.setInterval(p1 - 1, p1, p2, p2 + 1); in testP1P2()
102 assertEquals("p2x", mXCoords[p2], mInterpolator.mP2X); in testP1P2()
103 assertEquals("p2y", mYCoords[p2], mInterpolator.mP2Y); in testP1P2()
135 mInterpolator.setInterval(p2 - 1, p2, p3, p3 + 1); in testP2P3()
136 assertEquals("p2x", mXCoords[p2], mInterpolator.mP1X); in testP2P3()
137 assertEquals("p2y", mYCoords[p2], mInterpolator.mP1Y); in testP2P3()
170 mInterpolator.reset(mXCoords, mYCoords, p1, p2 + 1); in testJustP1P2()
171 mInterpolator.setInterval(p1 - 1, p1, p2, p2 + 1); in testJustP1P2()
174 assertEquals("p2x", mXCoords[p2], mInterpolator.mP2X); in testJustP1P2()
[all …]
/packages/apps/Camera2/jni/
Dtinyplanet.cc67 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/Gallery2/jni/filters/
Dtinyplanet.cc66 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeDrawingPoints.java136 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()
DHermiteInterpolator.java79 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/Email/tests/src/com/android/email/
DSecurityPolicyTests.java263 Policy p2 = in testEquals() local
269 assertTrue(p1.equals(p2)); in testEquals()
270 assertFalse(p2.equals(p3)); in testEquals()
305 Policy p2 = setupPolicy(20, Policy.PASSWORD_MODE_STRONG, 25, 26, false, 0, 0, 0, in testDisableAdmin() local
307 SecurityPolicy.setAccountPolicy(mMockContext, a2, p2, "security-sync-key-2"); in testDisableAdmin()
353 Policy p2 = setupPolicy(20, Policy.PASSWORD_MODE_STRONG, 25, 26, false, 30, 0, 0, in testFindExpiringAccount() local
355 SecurityPolicy.setAccountPolicy(mMockContext, a2, p2, null); in testFindExpiringAccount()
391 Policy p2 = setupPolicy(20, Policy.PASSWORD_MODE_STRONG, 25, 26, false, 0, 0, 0, in testWipeExpiringAccounts() local
393 SecurityPolicy.setAccountPolicy(mMockContext, a2, p2, null); in testWipeExpiringAccounts()
461 Policy p2 = setupPolicy(4, Policy.PASSWORD_MODE_SIMPLE, in testGetDPManagerPasswordQuality() local
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java144 public int channel, cla, command, p1, p2, p3; field in PhoneInterfaceManager.IccAPDUArgument
148 int p1, int p2, int p3, String data) { in IccAPDUArgument() argument
153 this.p2 = p2; in IccAPDUArgument()
291 iccArgument.p1, iccArgument.p2, iccArgument.p3, iccArgument.data, in handleMessage()
330 iccArgument.cla, iccArgument.command, iccArgument.p1, iccArgument.p2, in handleMessage()
369 iccArgument.command, iccArgument.p1, iccArgument.p2, iccArgument.p3, in handleMessage()
1677 int command, int p1, int p2, int p3, String data) { in iccTransmitApduLogicalChannel() argument
1682 " cmd=" + command + " p1=" + p1 + " p2=" + p2 + " p3=" + p3 + in iccTransmitApduLogicalChannel()
1691 new IccAPDUArgument(channel, cla, command, p1, p2, p3, data)); in iccTransmitApduLogicalChannel()
1704 public String iccTransmitApduBasicChannel(int cla, int command, int p1, int p2, in iccTransmitApduBasicChannel() argument
[all …]
DChangeIccPinScreen.java150 private int validateNewPin(String p1, String p2) { in validateNewPin() argument
155 if (!p1.equals(p2)) { in validateNewPin()
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DHostAuthTests.java213 final Parcel p2 = Parcel.obtain(); in testParceling() local
214 orig.writeToParcel(p2, 0); in testParceling()
215 p2.setDataPosition(0); in testParceling()
216 final HostAuth unparceled2 = new HostAuth(p2); in testParceling()
217 p2.recycle(); in testParceling()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_image_homography.cpp117 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/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_image_homography.cpp117 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/apps/Mms/src/com/android/mms/ui/
DSlideView.java503 public int compare(Position p1, Position p2) { in enableMMSConformanceMode()
506 int l2 = p2.mLeft; in enableMMSConformanceMode()
507 int t2 = p2.mTop; in enableMMSConformanceMode()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java538 public int compare(PtNode p1, PtNode p2) { in compare() argument
539 if (p1.mChars[0] == p2.mChars[0]) return 0; in compare()
540 return p1.mChars[0] < p2.mChars[0] ? -1 : 1; in compare()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalSource.java249 public int compare(PathId p1, PathId p2) { in compare() argument
251 String s2 = p2.path.getSuffix(); in compare()
/packages/apps/InCallUI/src/com/android/incallui/
DConferenceParticipantListAdapter.java485 public int compare(ParticipantInfo p1, ParticipantInfo p2) { in sortParticipantList()
492 String p2Name = p2.getContactCacheEntry().name; in sortParticipantList()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java219 public int compare(SipProfile p1, SipProfile p2) { in retrieveSipLists()
220 return getProfileName(p1).compareTo(getProfileName(p2)); in retrieveSipLists()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java2252 int p1, int p2, int p3, int p4, int p5) { in gattTestCommand() argument
2256 uuid1.getMostSignificantBits(), bda1, p1, p2, p3, p4, p5); in gattTestCommand()
2258 gattTestNative(command, 0,0, bda1, p1, p2, p3, p4, p5); in gattTestCommand()
2263 int p1, int p2, int p3, int p4, int p5); in gattTestNative() argument
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTests.java2276 Policy p2 = new Policy(); in testCleanupOrphans() local
2277 p2.save(mMockContext); in testCleanupOrphans()
2310 assertNull(Policy.restorePolicyWithId(mMockContext, p2.mId)); in testCleanupOrphans()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_gatt.cpp1697 jint p1, jint p2, jint p3, jint p4, jint p5 ) in gattTestNative() argument
1711 params.u2 = p2; in gattTestNative()