Home
last modified time | relevance | path

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

12345

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DUpdateHelper.java24 public int update(int original, int update) { in update() argument
25 if (original != update) { in update()
27 original = update; in update()
29 return original; in update()
32 public long update(long original, long update) { in update() argument
33 if (original != update) { in update()
35 original = update; in update()
37 return original; in update()
40 public double update(double original, double update) { in update() argument
41 if (original != update) { in update()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVmsSubscriptionStateTest.java93 VmsSubscriptionState original = in testNoSubscriptionsEquality() local
105 assertEquals(original.getSequenceNumber(), similar.getSequenceNumber()); in testNoSubscriptionsEquality()
106 assertEquals(original.getLayers(), similar.getLayers()); in testNoSubscriptionsEquality()
107 assertEquals(original.getAssociatedLayers(), similar.getAssociatedLayers()); in testNoSubscriptionsEquality()
108 assertEquals(original, similar); in testNoSubscriptionsEquality()
112 VmsSubscriptionState original = in testMultipleSubscriptionsEquality() local
124 assertEquals(original.getSequenceNumber(), similar.getSequenceNumber()); in testMultipleSubscriptionsEquality()
125 assertEquals(original.getLayers(), similar.getLayers()); in testMultipleSubscriptionsEquality()
126 assertEquals(original.getAssociatedLayers(), similar.getAssociatedLayers()); in testMultipleSubscriptionsEquality()
127 assertEquals(original, similar); in testMultipleSubscriptionsEquality()
[all …]
DVmsAssociatedLayerTest.java82 VmsAssociatedLayer original = in testNoPublishersAssociatedLayerEquality() local
92 assertEquals(original.getVmsLayer(), similar.getVmsLayer()); in testNoPublishersAssociatedLayerEquality()
93 assertEquals(original.getPublisherIds(), similar.getPublisherIds()); in testNoPublishersAssociatedLayerEquality()
94 assertEquals(original, similar); in testNoPublishersAssociatedLayerEquality()
98 VmsAssociatedLayer original = in testLayerWithMultiplePublishersEquality() local
108 assertEquals(original.getVmsLayer(), similar.getVmsLayer()); in testLayerWithMultiplePublishersEquality()
109 assertEquals(original.getPublisherIds(), similar.getPublisherIds()); in testLayerWithMultiplePublishersEquality()
110 assertEquals(original, similar); in testLayerWithMultiplePublishersEquality()
114 VmsAssociatedLayer original = in testVerifyNonEqualOnLayer() local
124 assertNotEquals(original, similar); in testVerifyNonEqualOnLayer()
[all …]
DVmsLayerDependencyTest.java94 VmsLayerDependency original = in testNoDependendtLayerEquality() local
102 assertEquals(original.getLayer(), similar.getLayer()); in testNoDependendtLayerEquality()
103 assertEquals(original.getDependencies(), similar.getDependencies()); in testNoDependendtLayerEquality()
104 assertEquals(original, similar); in testNoDependendtLayerEquality()
108 VmsLayerDependency original = in testMultipleDependendtLayerEquality() local
117 assertEquals(original.getLayer(), similar.getLayer()); in testMultipleDependendtLayerEquality()
118 assertEquals(original.getDependencies(), similar.getDependencies()); in testMultipleDependendtLayerEquality()
119 assertEquals(original, similar); in testMultipleDependendtLayerEquality()
123 VmsLayerDependency original = in testVerifyNonEqualOnLayer() local
133 assertNotEquals(original, similar); in testVerifyNonEqualOnLayer()
[all …]
DVmsAvailableLayersTest.java94 VmsAvailableLayers original = in testNoAvailableLayerEquality() local
104 assertEquals(original.getAssociatedLayers(), similar.getAssociatedLayers()); in testNoAvailableLayerEquality()
105 assertEquals(original.getSequence(), similar.getSequence()); in testNoAvailableLayerEquality()
106 assertEquals(original, similar); in testNoAvailableLayerEquality()
110 VmsAvailableLayers original = in testMultipleAvailableLayerEquality() local
124 assertEquals(original.getAssociatedLayers(), similar.getAssociatedLayers()); in testMultipleAvailableLayerEquality()
125 assertEquals(original.getSequence(), similar.getSequence()); in testMultipleAvailableLayerEquality()
126 assertEquals(original, similar); in testMultipleAvailableLayerEquality()
130 VmsAvailableLayers original = in testVerifyNonEqualOnAssociatedLayer() local
140 assertNotEquals(original, similar); in testVerifyNonEqualOnAssociatedLayer()
[all …]
DVmsLayersOfferingTest.java104 VmsLayersOffering original = in testNoOfferingEquality() local
112 assertEquals(original.getDependencies(), similar.getDependencies()); in testNoOfferingEquality()
113 assertEquals(original.getPublisherId(), similar.getPublisherId()); in testNoOfferingEquality()
114 assertEquals(original, similar); in testNoOfferingEquality()
118 VmsLayersOffering original = in testMultipleOfferingEquality() local
126 assertEquals(original.getDependencies(), similar.getDependencies()); in testMultipleOfferingEquality()
127 assertEquals(original.getPublisherId(), similar.getPublisherId()); in testMultipleOfferingEquality()
128 assertEquals(original, similar); in testMultipleOfferingEquality()
132 VmsLayersOffering original = in testVerifyNonEqualOnPublisherId() local
140 assertNotEquals(original, similar); in testVerifyNonEqualOnPublisherId()
[all …]
DVmsLayerTest.java56 VmsLayer original = in testLayerEquality() local
68 assertEquals(original.getType(), similar.getType()); in testLayerEquality()
69 assertEquals(original.getSubtype(), similar.getSubtype()); in testLayerEquality()
70 assertEquals(original.getVersion(), similar.getVersion()); in testLayerEquality()
71 assertEquals(original, similar); in testLayerEquality()
75 VmsLayer original = in testVerifyNonEqual() local
87 assertNotEquals(original, similar); in testVerifyNonEqual()
/packages/apps/Camera2/src/com/android/camera/data/
DGlideFilmstripManager.java130 public final DrawableRequestBuilder<Uri> loadFull(Uri uri, Key key, Size original) { in loadFull() argument
131 Size size = clampSize(original, MAXIMUM_FULL_RES_PIXELS, getMaxImageDisplaySize()); in loadFull()
145 public DrawableRequestBuilder<Uri> loadScreen(Uri uri, Key key, Size original) { in loadScreen() argument
146 Size size = clampSize(original, MAXIMUM_SMOOTH_PIXELS, getMaxImageDisplaySize()); in loadScreen()
191 private static Size clampSize(Size original, double maxArea, Size maxSize) { in clampSize() argument
192 if (original.getWidth() * original.getHeight() < maxArea && in clampSize()
193 original.getWidth() < maxSize.getWidth() && in clampSize()
194 original.getHeight() < maxSize.getHeight()) { in clampSize()
197 return original; in clampSize()
202 double ratio = Math.min(Math.sqrt(maxArea / original.area()), 1.0f); in clampSize()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java50 private static Drawable getSafeDrawable(Drawable original, int maxDimension) { in getSafeDrawable() argument
51 int actualWidth = original.getMinimumWidth(); in getSafeDrawable()
52 int actualHeight = original.getMinimumHeight(); in getSafeDrawable()
55 return original; in getSafeDrawable()
65 if (original instanceof BitmapDrawable) { in getSafeDrawable()
66 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable()
71 original.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in getSafeDrawable()
72 original.draw(canvas); in getSafeDrawable()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java113 public PhotoProcessor(Bitmap original, int maxDisplayPhotoDim, int maxThumbnailPhotoDim) in PhotoProcessor() argument
115 this(original, maxDisplayPhotoDim, maxThumbnailPhotoDim, false); in PhotoProcessor()
142 public PhotoProcessor(Bitmap original, int maxDisplayPhotoDim, int maxThumbnailPhotoDim, in PhotoProcessor() argument
144 mOriginal = original; in PhotoProcessor()
195 static Bitmap getNormalizedBitmap(Bitmap original, int maxDim, boolean forceCropToSquare) in getNormalizedBitmap() argument
197 final boolean originalHasAlpha = original.hasAlpha(); in getNormalizedBitmap()
200 int cropWidth = original.getWidth(); in getNormalizedBitmap()
201 int cropHeight = original.getHeight(); in getNormalizedBitmap()
235 c.drawBitmap(original, src, dst, null); in getNormalizedBitmap()
238 return original; in getNormalizedBitmap()
/packages/services/Telephony/src/com/android/services/telephony/
DPstnIncomingCallNotifier.java340 Connection original = telephonyConnection.getOriginalConnection(); in maybeSwapWithUnknownConnection() local
341 if (original != null && !original.isIncoming() in maybeSwapWithUnknownConnection()
342 && Objects.equals(original.getAddress(), unknown.getAddress())) { in maybeSwapWithUnknownConnection()
358 if (original instanceof ImsExternalConnection) { in maybeSwapWithUnknownConnection()
364 if (original.getCall() != null && original.getCall().getPhone() != null && in maybeSwapWithUnknownConnection()
365 original.getCall().getPhone() instanceof GsmCdmaPhone) { in maybeSwapWithUnknownConnection()
367 GsmCdmaPhone phone = (GsmCdmaPhone) original.getCall().getPhone(); in maybeSwapWithUnknownConnection()
370 + "for connection: " + original); in maybeSwapWithUnknownConnection()
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId); in getRotatedDrawable() local
106 original.getWidth(), original.getHeight(), Bitmap.Config.ARGB_8888); in getRotatedDrawable()
110 tempCanvas.rotate(angle, original.getWidth()/2, original.getHeight()/2); in getRotatedDrawable()
111 tempCanvas.drawBitmap(original, 0, 0, null); in getRotatedDrawable()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java981 String original = html.substring(startPos, endPos);
983 lookupUnknownAttribute(name), value, original));
991 StringBuilder original = new StringBuilder();
1003 original.append(originalPrefix);
1010 original.append(CharEscapers.asciiHtmlEscaper().escape(nameEtc));
1014 original.append(CharEscapers.asciiHtmlEscaper().escape(name));
1020 original.append(html.substring(scanner.endNamePos, scanner.startValuePos));
1026 original.append(value.replaceAll("<", "&lt;"));
1031 original.append('"');
1032 original.append(value.replaceAll("\"", "&quot;"));
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DEpgTestData.java172 public Channel apply(androidx.tvprovider.media.tv.Channel original) { in toTvChannels()
173 return toTvChannel(original); in toTvChannels()
178 public static Channel toTvChannel(androidx.tvprovider.media.tv.Channel original) {
180 .setDisplayName(original.getDisplayName())
181 .setDisplayNumber(original.getDisplayNumber())
182 .setNetworkAffiliation(original.getNetworkAffiliation())
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DLauncherActivity.java141 Intent original = activity.getIntent(); in createLaunchIntent() local
142 if (original != null) { in createLaunchIntent()
143 copyExtras(original, intent); in createLaunchIntent()
144 if (original.hasExtra(Intent.EXTRA_TITLE)) { in createLaunchIntent()
147 original.getStringExtra(Intent.EXTRA_TITLE)); in createLaunchIntent()
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java610 PendingInstallShortcutInfo original) { in convertToLauncherActivityIfPossible() argument
611 if (original.isLauncherActivity()) { in convertToLauncherActivityIfPossible()
613 return original; in convertToLauncherActivityIfPossible()
615 if (!Utilities.isLauncherAppTarget(original.launchIntent)) { in convertToLauncherActivityIfPossible()
616 return original; in convertToLauncherActivityIfPossible()
619 LauncherActivityInfo info = LauncherAppsCompat.getInstance(original.mContext) in convertToLauncherActivityIfPossible()
620 .resolveActivity(original.launchIntent, original.user); in convertToLauncherActivityIfPossible()
622 return original; in convertToLauncherActivityIfPossible()
625 return new PendingInstallShortcutInfo(info, original.mContext); in convertToLauncherActivityIfPossible()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DPhotoLoadingTestCase.java44 public PhotoEntry(byte[] original) { in PhotoEntry() argument
46 PhotoProcessor processor = newPhotoProcessor(original, false); in PhotoEntry()
47 photoMap.put(PhotoSize.ORIGINAL, original); in PhotoEntry()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharMatcher.java542 final CharMatcher original = this;
545 return !original.matches(c);
549 return original.matchesNoneOf(sequence);
552 return original.matchesAllOf(sequence);
555 return sequence.length() - original.countIn(sequence);
558 return original;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DFileCache.java115 FileEntry original = queryDatabase(downloadUrl); in store() local
116 if (original != null) { in store()
118 entry.filename = original.filename; in store()
119 entry.size = original.size; in store()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java620 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument
623 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader()
624 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader()
627 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader()
628 return original; in redrawIconForHeader()
632 original.setTintList(null); in redrawIconForHeader()
635 final Bitmap bitmap = Utils.createBitmap(original, in redrawIconForHeader()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java592 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument
595 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader()
596 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader()
599 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader()
600 return original; in redrawIconForHeader()
604 original.setTintList(null); in redrawIconForHeader()
607 final Bitmap bitmap = Utils.createBitmap(original, in redrawIconForHeader()
/packages/apps/Settings/src/com/android/settings/
DUtils.java945 public static Drawable getSafeDrawable(Drawable original, int maxWidth, int maxHeight) { in getSafeDrawable() argument
946 final int actualWidth = original.getMinimumWidth(); in getSafeDrawable()
947 final int actualHeight = original.getMinimumHeight(); in getSafeDrawable()
950 return original; in getSafeDrawable()
960 if (original instanceof BitmapDrawable) { in getSafeDrawable()
961 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable()
964 bitmap = createBitmap(original, width, height); in getSafeDrawable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java950 public static Drawable getSafeDrawable(Drawable original, int maxWidth, int maxHeight) { in getSafeDrawable() argument
951 final int actualWidth = original.getMinimumWidth(); in getSafeDrawable()
952 final int actualHeight = original.getMinimumHeight(); in getSafeDrawable()
955 return original; in getSafeDrawable()
965 if (original instanceof BitmapDrawable) { in getSafeDrawable()
966 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable()
969 bitmap = createBitmap(original, width, height); in getSafeDrawable()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/
DProvisioningParamsTest.java209 private void testSaveAndRestore(ProvisioningParams original) { in testSaveAndRestore() argument
213 original.save(file); in testSaveAndRestore()
216 assertThat(original).isEqualTo(copy); in testSaveAndRestore()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DDotAnswerHint.java258 float original, in createUniformScaleAnimator() argument
264 float scaleBegin = begin / original; in createUniformScaleAnimator()
265 float scaleEnd = end / original; in createUniformScaleAnimator()

12345