Home
last modified time | relevance | path

Searched refs:original (Results 1 – 25 of 217) sorted by relevance

123456789

/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java73 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_doesNotCopyBitmap() local
76 original.setImageViewBitmap(R.id.image, bitmap); in clone_doesNotCopyBitmap()
77 RemoteViews clone = original.clone(); in clone_doesNotCopyBitmap()
86 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_originalCanStillBeApplied() local
88 RemoteViews clone = original.clone(); in clone_originalCanStillBeApplied()
95 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_clones() local
97 RemoteViews clone = original.clone(); in clone_clones()
98 original.setTextViewText(R.id.text, "test"); in clone_clones()
107 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails() local
110 original.addView(R.id.layout, child); in clone_child_fails()
[all …]
/frameworks/base/core/java/android/text/method/
DReplacementTransformationMethod.java53 char[] original = getOriginal(); in getTransformation() local
65 int n = original.length; in getTransformation()
67 if (TextUtils.indexOf(source, original[i]) >= 0) { in getTransformation()
85 original, replacement)); in getTransformation()
88 original, in getTransformation()
96 original, replacement); in getTransformation()
98 return new ReplacementCharSequence(source, original, replacement); in getTransformation()
112 public ReplacementCharSequence(CharSequence source, char[] original, in ReplacementCharSequence() argument
115 mOriginal = original; in ReplacementCharSequence()
173 public SpannedReplacementCharSequence(Spanned source, char[] original, in SpannedReplacementCharSequence() argument
[all …]
/frameworks/base/tests/net/java/android/net/
DUidRangeTest.java38 UidRange original = new UidRange(1234, Integer.MAX_VALUE); in testNativeParcelUnparcel() local
40 byte[] inParcel = marshall(original); in testNativeParcelUnparcel()
44 assertEquals(original, roundTrip); in testNativeParcelUnparcel()
50 UidRange original = new UidRange(0x11115678, 0x22224321); in testIndividualNativeFields() local
51 byte[] originalBytes = marshall(original); in testIndividualNativeFields()
53 assertEquals(original.start, getStart(originalBytes)); in testIndividualNativeFields()
54 assertEquals(original.stop, getStop(originalBytes)); in testIndividualNativeFields()
/frameworks/support/compat/tests/java/android/support/v4/graphics/
DDrawableCompatTest.java46 final Drawable original = new GradientDrawable(); in testDrawableWrap() local
47 final Drawable wrappedDrawable = DrawableCompat.wrap(original); in testDrawableWrap()
50 assertNotSame(original, wrappedDrawable); in testDrawableWrap()
52 assertSame(original, wrappedDrawable); in testDrawableWrap()
58 final Drawable original = new GradientDrawable(); in testDrawableUnwrap() local
59 final Drawable wrappedDrawable = DrawableCompat.wrap(original); in testDrawableUnwrap()
60 assertSame(original, DrawableCompat.unwrap(wrappedDrawable)); in testDrawableUnwrap()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java467 static Cursor removeUndesiredDestinations(final Cursor original, final String desiredMimeType, in removeUndesiredDestinations() argument
470 original.getColumnNames(), original.getCount()); in removeUndesiredDestinations()
478 original.moveToPosition(-1); in removeUndesiredDestinations()
479 while (original.moveToNext()) { in removeUndesiredDestinations()
480 final String mimeType = original.getString(Query.MIME_TYPE); in removeUndesiredDestinations()
485 defaultDisplayName = original.getString(Query.NAME); in removeUndesiredDestinations()
486 defaultPhotoThumbnailUri = original.getString(Query.PHOTO_THUMBNAIL_URI); in removeUndesiredDestinations()
487 defaultDisplayNameSource = original.getInt(Query.DISPLAY_NAME_SOURCE); in removeUndesiredDestinations()
492 original.moveToPosition(-1); in removeUndesiredDestinations()
493 while (original.moveToNext()) { in removeUndesiredDestinations()
[all …]
/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java155 public void checkParcelable(NsdServiceInfo original) { in checkParcelable() argument
159 writer.putParcelable("test_info", original); in checkParcelable()
169 assertEquals(original.getServiceName(), result.getServiceName()); in checkParcelable()
170 assertEquals(original.getServiceType(), result.getServiceType()); in checkParcelable()
171 assertEquals(original.getHost(), result.getHost()); in checkParcelable()
172 assertTrue(original.getPort() == result.getPort()); in checkParcelable()
175 Map<String, byte[]> originalMap = original.getAttributes(); in checkParcelable()
/frameworks/opt/net/lowpan/libandroid_net_lowpan/tests/java/android/net/lowpan/
DLowpanIdentityTest.java40 public void testNativeParcelUnparcel(LowpanIdentity original) { in testNativeParcelUnparcel() argument
41 byte[] inParcel = marshall(original); in testNativeParcelUnparcel()
45 assertEquals(original, roundTrip); in testNativeParcelUnparcel()
46 assertEquals(original.hashCode(), roundTrip.hashCode()); in testNativeParcelUnparcel()
47 assertEquals(original.getName(), roundTrip.getName()); in testNativeParcelUnparcel()
DLowpanChannelInfoTest.java38 public void testNativeParcelUnparcel(LowpanChannelInfo original) { in testNativeParcelUnparcel() argument
39 byte[] inParcel = marshall(original); in testNativeParcelUnparcel()
43 assertEquals(original, roundTrip); in testNativeParcelUnparcel()
DLowpanCredentialTest.java38 public void testNativeParcelUnparcel(LowpanCredential original) { in testNativeParcelUnparcel() argument
39 byte[] inParcel = marshall(original); in testNativeParcelUnparcel()
43 assertEquals(original, roundTrip); in testNativeParcelUnparcel()
DLowpanBeaconInfoTest.java38 public void testNativeParcelUnparcel(LowpanBeaconInfo original) { in testNativeParcelUnparcel() argument
39 byte[] inParcel = marshall(original); in testNativeParcelUnparcel()
43 assertEquals(original, roundTrip); in testNativeParcelUnparcel()
DLowpanProvisionTest.java38 public void testNativeParcelUnparcel(LowpanProvision original) { in testNativeParcelUnparcel() argument
39 byte[] inParcel = marshall(original); in testNativeParcelUnparcel()
43 assertEquals(original, roundTrip); in testNativeParcelUnparcel()
/frameworks/base/core/java/android/content/
DContentProvider.java239 final String original = setCallingPackage(callingPkg); in query() local
245 setCallingPackage(original); in query()
264 final String original = setCallingPackage(callingPkg); in insert() local
268 setCallingPackage(original); in insert()
279 final String original = setCallingPackage(callingPkg); in bulkInsert() local
283 setCallingPackage(original); in bulkInsert()
317 final String original = setCallingPackage(callingPkg); in applyBatch() local
330 setCallingPackage(original); in applyBatch()
341 final String original = setCallingPackage(callingPkg); in delete() local
345 setCallingPackage(original); in delete()
[all …]
/frameworks/wilhelm/tools/hashgen/
Dtest.c31 const struct SLInterfaceID_ *original = &SL_IID_array[i]; in main() local
33 int MPH = IID_to_MPH(original); in main()
39 const struct SLInterfaceID_ copy = *original; in main()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/
DEmojiCompatTest.java413 final String original = new TestString(EMOJI_SINGLE_CODEPOINT).toString(); in testProcess_throwsException_withMaxEmojiSetToNegative() local
415 final CharSequence processed = EmojiCompat.get().process(original, 0, original.length(), in testProcess_throwsException_withMaxEmojiSetToNegative()
423 final String original = new TestString(EMOJI_SINGLE_CODEPOINT).toString(); in testProcess_withMaxEmojiSetToZero() local
425 final CharSequence processed = EmojiCompat.get().process(original, 0, original.length(), in testProcess_withMaxEmojiSetToZero()
434 final String original = new TestString(EMOJI_SINGLE_CODEPOINT).toString(); in testProcess_withMaxEmojiSetToOne() local
436 final CharSequence processed = EmojiCompat.get().process(original, 0, original.length(), in testProcess_withMaxEmojiSetToOne()
446 final String original = new TestString(EMOJI_SINGLE_CODEPOINT) in testProcess_withMaxEmojiSetToLessThenExistingSpanCount() local
452 final CharSequence processed = EmojiCompat.get().process(original, 0, original.length(), 2); in testProcess_withMaxEmojiSetToLessThenExistingSpanCount()
458 EmojiCompat.get().process(processed, original.length() - EMOJI_SINGLE_CODEPOINT.charCount(), in testProcess_withMaxEmojiSetToLessThenExistingSpanCount()
459 original.length(), 1 /*maxEmojiCount*/); in testProcess_withMaxEmojiSetToLessThenExistingSpanCount()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageKeySetData.java38 PackageKeySetData(PackageKeySetData original) { in PackageKeySetData() argument
39 mProperSigningKeySet = original.mProperSigningKeySet; in PackageKeySetData()
40 mUpgradeKeySets = ArrayUtils.cloneOrNull(original.mUpgradeKeySets); in PackageKeySetData()
41 mKeySetAliases.putAll(original.mKeySetAliases); in PackageKeySetData()
DShortcutRequestPinProcessor.java447 final ShortcutInfo original = request.shortcutOriginal; in directPinShortcut() local
448 final int appUserId = original.getUserId(); in directPinShortcut()
449 final String appPackageName = original.getPackage(); in directPinShortcut()
452 final String shortcutId = original.getId(); in directPinShortcut()
464 if (launcher.hasPinned(original)) { in directPinShortcut()
466 Slog.d(TAG, "Shortcut " + original + " already pinned."); in directPinShortcut()
479 mService.validateShortcutForPinRequest(original); in directPinShortcut()
497 if (original.getActivity() == null) { in directPinShortcut()
498 original.setActivity(mService.getDummyMainActivity(appPackageName)); in directPinShortcut()
500 ps.addOrUpdateDynamicShortcut(original); in directPinShortcut()
/frameworks/native/opengl/tools/glgen/src/
DCFunc.java21 String original; field in CFunc
33 public CFunc(String original) { in CFunc() argument
34 this.original = original; in CFunc()
38 return original; in getOriginal()
DGLESCodeEmitter.java48 public void emitCode(CFunc cfunc, String original) { in emitCode() argument
49 emitCode(cfunc, original, null, mJavaImplStream, in emitCode()
DEGLCodeEmitter.java50 public void emitCode(CFunc cfunc, String original) { in emitCode() argument
51 emitCode(cfunc, original, null, mJavaImplStream, in emitCode()
DJsr239CodeEmitter.java83 public void emitCode(CFunc cfunc, String original) { in emitCode() argument
84 emitCode(cfunc, original, mJavaInterfaceStream, mJavaImplStream, mCStream); in emitCode()
/frameworks/ex/camera2/utils/tests/src/com/android/ex/camera2/utils/
DCamera2UtilsTest.java311 Camera2RequestSettingsSet original = new Camera2RequestSettingsSet(); in requestSettingsSetCopyConstructor() local
312 Camera2RequestSettingsSet unchanged = new Camera2RequestSettingsSet(original); in requestSettingsSetCopyConstructor()
314 requestSettingsSetAndForget(original, CaptureRequest.CONTROL_AE_LOCK, true); in requestSettingsSetCopyConstructor()
315 Camera2RequestSettingsSet changed = new Camera2RequestSettingsSet(original); in requestSettingsSetCopyConstructor()
321 Camera2RequestSettingsSet original = new Camera2RequestSettingsSet(); in requestSettingsSetCopyConstructorPreservesChangedStatus() local
322 Camera2RequestSettingsSet unchanged = new Camera2RequestSettingsSet(original); in requestSettingsSetCopyConstructorPreservesChangedStatus()
323 assertEquals(original.getRevision(), unchanged.getRevision()); in requestSettingsSetCopyConstructorPreservesChangedStatus()
325 requestSettingsSetAndAssertChanged(original, CaptureRequest.CONTROL_AE_LOCK, true, true); in requestSettingsSetCopyConstructorPreservesChangedStatus()
326 Camera2RequestSettingsSet changed = new Camera2RequestSettingsSet(original); in requestSettingsSetCopyConstructorPreservesChangedStatus()
327 assertEquals(original.getRevision(), changed.getRevision()); in requestSettingsSetCopyConstructorPreservesChangedStatus()
[all …]
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java450 static byte[] stringToByteArray(String original, boolean isHex) in stringToByteArray() argument
452 int length = isHex ? original.length() / 2 : original.length(); in stringToByteArray()
460 output[i] = (byte) Integer.parseInt(original.substring(i*2, i*2+2), 16); in stringToByteArray()
466 output[i] = (byte) original.charAt(i); in stringToByteArray()
547 static private String decodeString(String original, boolean isHex, int coding) in decodeString() argument
549 String decoded = original; in decodeString()
550 byte[] input = stringToByteArray(original, isHex); in decodeString()
554 decoded = original; in decodeString()
570 decoded = original; in decodeString()
574 Log.e(TAG, "Unknown encoding " + coding + " for NI text " + original); in decodeString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBrightnessMirrorController.java92 public void setLocation(View original) { in setLocation() argument
93 original.getLocationInWindow(mInt2Cache); in setLocation()
97 int originalX = mInt2Cache[0] + original.getWidth() / 2; in setLocation()
98 int originalY = mInt2Cache[1] + original.getHeight() / 2; in setLocation()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneLayoutInflater.java47 protected PhoneLayoutInflater(LayoutInflater original, Context newContext) { in PhoneLayoutInflater() argument
48 super(original, newContext); in PhoneLayoutInflater()
/frameworks/native/libs/ui/tests/
DRegion_test.cpp48 void checkTJunctionFreeFromRegion(const Region& original, int expectedCount = -1) { in checkTJunctionFreeFromRegion() argument
49 Region modified = Region::createTJunctionFreeRegion(original); in checkTJunctionFreeFromRegion()
54 EXPECT_TRUE((original ^ modified).isEmpty()); in checkTJunctionFreeFromRegion()

123456789