/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | UpdateHelper.java | 24 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/ |
D | VmsSubscriptionStateTest.java | 93 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 …]
|
D | VmsAssociatedLayerTest.java | 82 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 …]
|
D | VmsLayerDependencyTest.java | 94 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 …]
|
D | VmsAvailableLayersTest.java | 94 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 …]
|
D | VmsLayersOfferingTest.java | 104 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 …]
|
D | VmsLayerTest.java | 56 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/ |
D | GlideFilmstripManager.java | 130 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/ |
D | DefaultAppUtils.java | 50 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/ |
D | PhotoProcessor.java | 113 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/ |
D | PstnIncomingCallNotifier.java | 364 Connection original = telephonyConnection.getOriginalConnection(); in maybeSwapWithUnknownConnection() local 365 if (original != null && !original.isIncoming() in maybeSwapWithUnknownConnection() 366 && Objects.equals(original.getAddress(), unknown.getAddress())) { in maybeSwapWithUnknownConnection() 382 if (original instanceof ImsExternalConnection) { in maybeSwapWithUnknownConnection() 388 if (original.getCall() != null && original.getCall().getPhone() != null && in maybeSwapWithUnknownConnection() 389 original.getCall().getPhone() instanceof GsmCdmaPhone) { in maybeSwapWithUnknownConnection() 391 GsmCdmaPhone phone = (GsmCdmaPhone) original.getCall().getPhone(); in maybeSwapWithUnknownConnection() 394 + "for connection: " + original); in maybeSwapWithUnknownConnection()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | BitmapUtil.java | 104 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/TV/tests/common/src/com/android/tv/testing/ |
D | EpgTestData.java | 176 public Channel apply(androidx.tvprovider.media.tv.Channel original) { in toTvChannels() 177 return toTvChannel(original); in toTvChannels() 182 public static Channel toTvChannel(androidx.tvprovider.media.tv.Channel original) { 184 .setDisplayName(original.getDisplayName()) 185 .setDisplayNumber(original.getDisplayNumber()) 186 .setNetworkAffiliation(original.getNetworkAffiliation())
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | LauncherActivity.java | 141 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/ |
D | InstallShortcutReceiver.java | 611 PendingInstallShortcutInfo original) { in convertToLauncherActivityIfPossible() argument 612 if (original.isLauncherActivity()) { in convertToLauncherActivityIfPossible() 614 return original; in convertToLauncherActivityIfPossible() 616 if (!PackageManagerHelper.isLauncherAppTarget(original.launchIntent)) { in convertToLauncherActivityIfPossible() 617 return original; in convertToLauncherActivityIfPossible() 620 LauncherActivityInfo info = LauncherAppsCompat.getInstance(original.mContext) in convertToLauncherActivityIfPossible() 621 .resolveActivity(original.launchIntent, original.user); in convertToLauncherActivityIfPossible() 623 return original; in convertToLauncherActivityIfPossible() 626 return new PendingInstallShortcutInfo(info, original.mContext); in convertToLauncherActivityIfPossible()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | PhotoLoadingTestCase.java | 44 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/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 115 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/apps/Settings/src/com/android/settings/ |
D | Utils.java | 945 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/apps/Settings/src/com/android/settings/wifi/details/ |
D | WifiDetailPreferenceController.java | 606 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument 609 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader() 610 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader() 613 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader() 614 return original; in redrawIconForHeader() 618 original.setTintList(null); in redrawIconForHeader() 621 final Bitmap bitmap = Utils.createBitmap(original, in redrawIconForHeader()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | Utils.java | 950 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/ |
D | WifiDetailPreferenceController.java | 620 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/Car/libs/car-messenger-common/proto/ |
D | notification_msg.proto | 26 // This will be the StatusBarNotification id of the original message 59 // This will be the StatusBarNotification id of the original message 74 // the request_id of the original Action message. 200 // original message notification posted on the phone.
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
D | ProvisioningParamsTest.java | 209 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/ |
D | DotAnswerHint.java | 258 float original, in createUniformScaleAnimator() argument 264 float scaleBegin = begin / original; in createUniformScaleAnimator() 265 float scaleEnd = end / original; in createUniformScaleAnimator()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | AspectRatio.java | 173 AspectRatio original = of(area); in getLargestCenterCrop() local 175 if (this.isWiderThan(original)) { in getLargestCenterCrop()
|