Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/tests/coretests/src/com/android/internal/statusbar/
DRegisterStatusBarResultTest.java48 final RegisterStatusBarResult original = new RegisterStatusBarResult(iconMap, in testParcelable() local
63 final RegisterStatusBarResult copy = clone(original); in testParcelable()
65 assertThat(copy.mIcons).hasSize(original.mIcons.size()); in testParcelable()
68 .isEqualTo(original.mIcons.get(dumyIconKey).user); in testParcelable()
70 assertThat(copy.mDisabledFlags1).isEqualTo(original.mDisabledFlags1); in testParcelable()
71 assertThat(copy.mSystemUiVisibility).isEqualTo(original.mSystemUiVisibility); in testParcelable()
72 assertThat(copy.mMenuVisible).isEqualTo(original.mMenuVisible); in testParcelable()
73 assertThat(copy.mImeWindowVis).isEqualTo(original.mImeWindowVis); in testParcelable()
74 assertThat(copy.mImeBackDisposition).isEqualTo(original.mImeBackDisposition); in testParcelable()
75 assertThat(copy.mShowImeSwitcher).isEqualTo(original.mShowImeSwitcher); in testParcelable()
[all …]
DStatusBarIconTest.java46 final StatusBarIcon original = new StatusBarIcon(dummyIconPackageName, dummyUserHandle, in testParcelable() local
49 final StatusBarIcon copy = clone(original); in testParcelable()
51 assertThat(copy.user).isEqualTo(original.user); in testParcelable()
52 assertThat(copy.pkg).isEqualTo(original.pkg); in testParcelable()
53 assertThat(copy.icon.sameAs(original.icon)).isTrue(); in testParcelable()
54 assertThat(copy.iconLevel).isEqualTo(original.iconLevel); in testParcelable()
55 assertThat(copy.visible).isEqualTo(original.visible); in testParcelable()
56 assertThat(copy.number).isEqualTo(original.number); in testParcelable()
57 assertThat(copy.contentDescription).isEqualTo(original.contentDescription); in testParcelable()
60 private StatusBarIcon clone(StatusBarIcon original) { in clone() argument
[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/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java80 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_doesNotCopyBitmap() local
83 original.setImageViewBitmap(R.id.image, bitmap); in clone_doesNotCopyBitmap()
84 RemoteViews clone = original.clone(); in clone_doesNotCopyBitmap()
93 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_originalCanStillBeApplied() local
95 RemoteViews clone = original.clone(); in clone_originalCanStillBeApplied()
102 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_clones() local
104 RemoteViews clone = original.clone(); in clone_clones()
105 original.setTextViewText(R.id.text, "test"); in clone_clones()
114 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails() local
117 original.addView(R.id.layout, child); in clone_child_fails()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DInsetUtilsTest.java51 final Rect original = new Rect(1, 2, 3, 4); in rotate() local
53 assertEquals("rot0", original, rotateCopy(original, ROTATION_0)); in rotate()
55 final Rect rot90 = rotateCopy(original, ROTATION_90); in rotate()
58 final Rect rot180 = rotateCopy(original, ROTATION_180); in rotate()
62 final Rect rot270 = rotateCopy(original, ROTATION_270); in rotate()
/frameworks/base/core/java/android/privacy/internal/longitudinalreporting/
DLongitudinalReportingEncoder.java122 public byte[] encodeString(String original) { in encodeString() argument
127 public byte[] encodeBoolean(boolean original) { in encodeBoolean() argument
130 + original); in encodeBoolean()
134 original = mFakeValue.booleanValue(); in encodeBoolean()
135 if (DEBUG) Log.d(TAG, "Use fake value: " + original); in encodeBoolean()
137 byte[] result = mIRREncoder.encodeBoolean(original); in encodeBoolean()
/frameworks/av/media/libaudioclient/tests/
Dtrack_test_output_v1.0_ref_walleye.txt7 sample rate(48000), original sample rate(48000), speed(1.000000)
18 sample rate(24000), original sample rate(24000), speed(1.000000)
29 sample rate(16000), original sample rate(16000), speed(1.000000)
40 sample rate(8000), original sample rate(8000), speed(1.000000)
51 sample rate(44100), original sample rate(44100), speed(1.000000)
62 sample rate(22050), original sample rate(22050), speed(1.000000)
73 sample rate(11025), original sample rate(11025), speed(1.000000)
84 sample rate(48000), original sample rate(48000), speed(1.000000)
95 sample rate(48000), original sample rate(48000), speed(1.000000)
106 sample rate(48000), original sample rate(48000), speed(1.000000)
[all …]
/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/core/java/android/view/inputmethod/
DCursorAnchorInfo.java469 public static CursorAnchorInfo createForAdditionalParentMatrix(CursorAnchorInfo original, in createForAdditionalParentMatrix() argument
471 return new CursorAnchorInfo(original.mSelectionStart, original.mSelectionEnd, in createForAdditionalParentMatrix()
472 original.mComposingTextStart, original.mComposingText, in createForAdditionalParentMatrix()
473 original.mInsertionMarkerFlags, original.mInsertionMarkerHorizontal, in createForAdditionalParentMatrix()
474 original.mInsertionMarkerTop, original.mInsertionMarkerBaseline, in createForAdditionalParentMatrix()
475 original.mInsertionMarkerBottom, original.mCharacterBoundsArray, in createForAdditionalParentMatrix()
476 computeMatrixValues(parentMatrix, original)); in createForAdditionalParentMatrix()
/frameworks/base/core/proto/android/app/
Dactivitymanager.proto26 // report changes in process state, original value is 1 << 0
28 // report uid gone, original value is 1 << 1
30 // report uid has become idle, original value is 1 << 2
32 // report uid has become active, original value is 1 << 3
34 // report uid cached state has changed, original value is 1 << 4
/frameworks/base/core/java/android/privacy/
DDifferentialPrivacyEncoder.java46 byte[] encodeString(String original); in encodeString() argument
54 byte[] encodeBoolean(boolean original); in encodeBoolean() argument
62 byte[] encodeBits(byte[] original); in encodeBits() argument
/frameworks/base/core/java/android/app/
DDirectAction.java73 public DirectAction(@NonNull DirectAction original) { in DirectAction() argument
74 mTaskId = original.mTaskId; in DirectAction()
75 mActivityId = original.mActivityId; in DirectAction()
76 mID = original.mID; in DirectAction()
77 mExtras = original.mExtras; in DirectAction()
78 mLocusId = original.mLocusId; in DirectAction()
/frameworks/base/tests/net/java/android/net/nsd/
DNsdServiceInfoTest.java153 public void checkParcelable(NsdServiceInfo original) { in checkParcelable() argument
157 writer.putParcelable("test_info", original); in checkParcelable()
167 assertEquals(original.getServiceName(), result.getServiceName()); in checkParcelable()
168 assertEquals(original.getServiceType(), result.getServiceType()); in checkParcelable()
169 assertEquals(original.getHost(), result.getHost()); in checkParcelable()
170 assertTrue(original.getPort() == result.getPort()); in checkParcelable()
173 Map<String, byte[]> originalMap = original.getAttributes(); in checkParcelable()
/frameworks/base/core/java/android/content/
DContentProvider.java247 final String original = setCallingPackage(callingPkg); in query() local
255 setCallingPackage(original); in query()
265 final String original = setCallingPackage(callingPkg); in query() local
273 setCallingPackage(original); in query()
299 final String original = setCallingPackage(callingPkg); in insert() local
303 setCallingPackage(original); in insert()
307 final String original = setCallingPackage(callingPkg); in insert() local
313 setCallingPackage(original); in insert()
326 final String original = setCallingPackage(callingPkg); in bulkInsert() local
332 setCallingPackage(original); in bulkInsert()
[all …]
/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureContext.java142 public ContentCaptureContext(@Nullable ContentCaptureContext original, int extraFlags) { in ContentCaptureContext() argument
143 mHasClientContext = original.mHasClientContext; in ContentCaptureContext()
144 mExtras = original.mExtras; in ContentCaptureContext()
145 mId = original.mId; in ContentCaptureContext()
146 mComponentName = original.mComponentName; in ContentCaptureContext()
147 mTaskId = original.mTaskId; in ContentCaptureContext()
148 mFlags = original.mFlags | extraFlags; in ContentCaptureContext()
149 mDisplayId = original.mDisplayId; in ContentCaptureContext()
/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.java448 final ShortcutInfo original = request.shortcutOriginal; in directPinShortcut() local
449 final int appUserId = original.getUserId(); in directPinShortcut()
450 final String appPackageName = original.getPackage(); in directPinShortcut()
453 final String shortcutId = original.getId(); in directPinShortcut()
465 if (launcher.hasPinned(original)) { in directPinShortcut()
467 … Slog.d(TAG, "Shortcut " + original + " already pinned."); // This too. in directPinShortcut()
480 mService.validateShortcutForPinRequest(original); in directPinShortcut()
498 if (original.getActivity() == null) { in directPinShortcut()
499 original.setActivity(mService.getDummyMainActivity(appPackageName)); in directPinShortcut()
501 ps.addOrReplaceDynamicShortcut(original); in directPinShortcut()
/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/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/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()
/frameworks/base/core/java/android/privacy/internal/rappor/
DRapporEncoder.java116 public byte[] encodeString(String original) { in encodeString() argument
117 return mEncoder.encodeString(original); in encodeString()
121 public byte[] encodeBoolean(boolean original) { in encodeBoolean() argument
122 return mEncoder.encodeBoolean(original); in encodeBoolean()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportStats.java111 private Stats(Stats original) { in Stats() argument
112 this(original.n, original.average, original.max, original.min); in Stats()
/frameworks/base/core/tests/coretests/src/android/os/
DExternalVibrationTest.java35 ExternalVibration original = new ExternalVibration( in testSerialization() local
41 original.writeToParcel(p, 0); in testSerialization()
44 assertEquals(original, restored); in testSerialization()
/frameworks/base/tests/net/java/android/net/
DIpSecConfigTest.java89 IpSecConfig original = getSampleConfig(); in testCopyConstructor() local
90 IpSecConfig copy = new IpSecConfig(original); in testCopyConstructor()
92 assertEquals(original, copy); in testCopyConstructor()
93 assertNotSame(original, copy); in testCopyConstructor()
/frameworks/base/location/java/com/android/internal/location/
DGpsNetInitiatedHandler.java455 static byte[] stringToByteArray(String original, boolean isHex) in stringToByteArray() argument
457 int length = isHex ? original.length() / 2 : original.length(); in stringToByteArray()
465 output[i] = (byte) Integer.parseInt(original.substring(i*2, i*2+2), 16); in stringToByteArray()
471 output[i] = (byte) original.charAt(i); in stringToByteArray()
553 static private String decodeString(String original, boolean isHex, int coding) in decodeString() argument
556 return original; in decodeString()
559 byte[] input = stringToByteArray(original, isHex); in decodeString()
572 Log.e(TAG, "Unknown encoding " + coding + " for NI text " + original); in decodeString()
573 return original; in decodeString()

12345678910