Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/core/tests/coretests/src/com/android/internal/statusbar/
DRegisterStatusBarResultTest.java57 final RegisterStatusBarResult original = new RegisterStatusBarResult(iconMap, in testParcelable() local
73 final RegisterStatusBarResult copy = clone(original); in testParcelable()
75 assertThat(copy.mIcons).hasSize(original.mIcons.size()); in testParcelable()
78 .isEqualTo(original.mIcons.get(dumyIconKey).user); in testParcelable()
80 assertThat(copy.mDisabledFlags1).isEqualTo(original.mDisabledFlags1); in testParcelable()
81 assertThat(copy.mAppearance).isEqualTo(original.mAppearance); in testParcelable()
82 assertThat(copy.mAppearanceRegions).isEqualTo(original.mAppearanceRegions); in testParcelable()
83 assertThat(copy.mImeWindowVis).isEqualTo(original.mImeWindowVis); in testParcelable()
84 assertThat(copy.mImeBackDisposition).isEqualTo(original.mImeBackDisposition); in testParcelable()
85 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/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/
DCryptoTestUtils.java126 ChunksMetadataProto.ChunkListing original) { in clone() argument
128 if (original.chunks == null) { in clone()
131 clonedChunks = new ChunksMetadataProto.Chunk[original.chunks.length]; in clone()
132 for (int i = 0; i < original.chunks.length; i++) { in clone()
133 clonedChunks[i] = clone(original.chunks[i]); in clone()
138 original.documentId, in clone()
139 original.fingerprintMixerSalt, in clone()
140 original.cipherType, in clone()
141 original.chunkOrderingType, in clone()
145 public static ChunksMetadataProto.Chunk clone(ChunksMetadataProto.Chunk 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/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/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
36 // report uid capability has changed, original value is 1 << 5
38 // report pid oom adj has changed, original value is 1 << 6
/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/base/services/tests/servicestests/src/com/android/server/appwidget/
DAppWidgetServiceImplTest.java363 final AppWidgetProviderInfo original = new AppWidgetProviderInfo(); in testWidgetProviderInfoPersistence() local
364 original.minWidth = 40; in testWidgetProviderInfoPersistence()
365 original.minHeight = 40; in testWidgetProviderInfoPersistence()
366 original.maxResizeWidth = 250; in testWidgetProviderInfoPersistence()
367 original.maxResizeHeight = 120; in testWidgetProviderInfoPersistence()
368 original.targetCellWidth = 1; in testWidgetProviderInfoPersistence()
369 original.targetCellHeight = 1; in testWidgetProviderInfoPersistence()
370 original.updatePeriodMillis = 86400000; in testWidgetProviderInfoPersistence()
371 original.previewLayout = R.layout.widget_preview; in testWidgetProviderInfoPersistence()
372 original.label = "test"; in testWidgetProviderInfoPersistence()
[all …]
/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/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.java499 public static CursorAnchorInfo createForAdditionalParentMatrix(CursorAnchorInfo original, in createForAdditionalParentMatrix() argument
501 return new CursorAnchorInfo(original.mSelectionStart, original.mSelectionEnd, in createForAdditionalParentMatrix()
502 original.mComposingTextStart, original.mComposingText, in createForAdditionalParentMatrix()
503 original.mInsertionMarkerFlags, original.mInsertionMarkerHorizontal, in createForAdditionalParentMatrix()
504 original.mInsertionMarkerTop, original.mInsertionMarkerBaseline, in createForAdditionalParentMatrix()
505 original.mInsertionMarkerBottom, original.mCharacterBoundsArray, in createForAdditionalParentMatrix()
506 original.mEditorBoundsInfo, computeMatrixValues(parentMatrix, original)); in createForAdditionalParentMatrix()
/frameworks/base/core/java/android/app/
DDirectAction.java72 public DirectAction(@NonNull DirectAction original) { in DirectAction() argument
73 mTaskId = original.mTaskId; in DirectAction()
74 mActivityId = original.mActivityId; in DirectAction()
75 mID = original.mID; in DirectAction()
76 mExtras = original.mExtras; in DirectAction()
77 mLocusId = original.mLocusId; in DirectAction()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageKeySetData.java40 PackageKeySetData(PackageKeySetData original) { in PackageKeySetData() argument
41 mProperSigningKeySet = original.mProperSigningKeySet; in PackageKeySetData()
42 mUpgradeKeySets = ArrayUtils.cloneOrNull(original.mUpgradeKeySets); in PackageKeySetData()
43 mKeySetAliases.putAll(original.mKeySetAliases); in PackageKeySetData()
/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/base/core/java/android/content/pm/
DPackagePartitions.java175 public SystemPartition(@NonNull SystemPartition original) { in SystemPartition() argument
176 this.type = original.type; in SystemPartition()
177 this.mName = original.mName; in SystemPartition()
178 this.mFolder = new DeferredCanonicalFile(original.mFolder.getFile()); in SystemPartition()
179 this.mAppFolder = original.mAppFolder; in SystemPartition()
180 this.mPrivAppFolder = original.mPrivAppFolder; in SystemPartition()
181 this.mOverlayFolder = original.mOverlayFolder; in SystemPartition()
182 this.mNonConicalFolder = original.mNonConicalFolder; in SystemPartition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DProtoLogIntegrationTest.java70 ProtoLogImpl original = ProtoLogImpl.getSingleInstance(); in runWith() local
71 original.startProtoLog(null); in runWith()
77 ProtoLogImpl.setSingleInstance(original); in runWith()
80 original.stopProtoLog(null, false); in runWith()
/frameworks/base/core/java/android/view/contentcapture/
DContentCaptureContext.java155 public ContentCaptureContext(@Nullable ContentCaptureContext original, int extraFlags) { in ContentCaptureContext() argument
156 mHasClientContext = original.mHasClientContext; in ContentCaptureContext()
157 mExtras = original.mExtras; in ContentCaptureContext()
158 mId = original.mId; in ContentCaptureContext()
159 mComponentName = original.mComponentName; in ContentCaptureContext()
160 mFlags = original.mFlags | extraFlags; in ContentCaptureContext()
161 mDisplayId = original.mDisplayId; in ContentCaptureContext()
162 mActivityId = original.mActivityId; in ContentCaptureContext()
163 mWindowToken = original.mWindowToken; in ContentCaptureContext()
/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/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/minikin/tests/unittest/
DFontTest.cpp29 std::shared_ptr<Font> original = Font::Builder(minikinFont).build(); in TEST() local
30 std::vector<uint8_t> buffer = writeToBuffer<Font, writeFreeTypeMinikinFontForTest>(*original); in TEST()
36 EXPECT_EQ(original->style(), font->style()); in TEST()
/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/opt/telephony/src/java/com/android/internal/telephony/
DCarrierSignalAgent.java403 private static @Nullable Intent createCompatIntent(Intent original) { in createCompatIntent() argument
404 String compatAction = NEW_ACTION_TO_COMPAT_MAP.get(original.getAction()); in createCompatIntent()
406 Rlog.i(LOG_TAG, "intent action " + original.getAction() + " does not have a" in createCompatIntent()
407 + " compat alternative for component " + original.getComponent()); in createCompatIntent()
410 Intent compatIntent = new Intent(original); in createCompatIntent()
412 for (String extraKey : original.getExtras().keySet()) { in createCompatIntent()
416 original.getStringExtra(TelephonyManager.EXTRA_REDIRECTION_URL)); in createCompatIntent()
420 original.getIntExtra(TelephonyManager.EXTRA_DATA_FAIL_CAUSE, -1)); in createCompatIntent()
424 original.getIntExtra(TelephonyManager.EXTRA_PCO_ID, -1)); in createCompatIntent()
428 original.getByteArrayExtra(TelephonyManager.EXTRA_PCO_VALUE)); in createCompatIntent()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/vibrator/
DStepSegmentTest.java52 StepSegment original = new StepSegment(0.5f, 1f, 10); in testSerialization() local
54 original.writeToParcel(parcel, 0); in testSerialization()
56 assertEquals(original, StepSegment.CREATOR.createFromParcel(parcel)); in testSerialization()
89 StepSegment original = new StepSegment(VibrationEffect.DEFAULT_AMPLITUDE, 0, 0); in testResolve() local
90 assertEquals(1f, original.resolve(VibrationEffect.MAX_AMPLITUDE).getAmplitude()); in testResolve()
91 assertEquals(0.2f, original.resolve(51).getAmplitude(), TOLERANCE); in testResolve()
/frameworks/base/services/backup/backuplib/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()

12345678910>>...12