Home
last modified time | relevance | path

Searched refs:original (Results 1 – 25 of 119) 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/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/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DManageStandardPermissionsFragmentTest.kt106 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenAppGetsInstalled() constant
111 assertThat(afterInstall.granted).isEqualTo(original.granted) in groupSummaryGetsUpdatedWhenAppGetsInstalled()
112 assertThat(afterInstall.total).isEqualTo(original.total + 1) in groupSummaryGetsUpdatedWhenAppGetsInstalled()
118 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenAppGetsUninstalled() constant
122 assertThat(getUsageCountsFromUi(locationGroupLabel)).isNotEqualTo(original) in groupSummaryGetsUpdatedWhenAppGetsUninstalled()
127 assertThat(getUsageCountsFromUi(locationGroupLabel)).isEqualTo(original) in groupSummaryGetsUpdatedWhenAppGetsUninstalled()
133 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() constant
138 .isEqualTo(original.total + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
144 .isEqualTo(original.granted + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
150 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked() constant
[all …]
DManageCustomPermissionsFragmentTest.kt88 val original = getUsageCountsFromUi(PERM_LABEL) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() constant
92 assertThat(getUsageCountsFromUi(PERM_LABEL).granted).isEqualTo(original.granted + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
103 val original = getUsageCountsFromUi(PERM_LABEL) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked() constant
107 assertThat(getUsageCountsFromUi(PERM_LABEL)).isNotEqualTo(original) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
112 assertThat(getUsageCountsFromUi(PERM_LABEL)).isEqualTo(original) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java46 private static Drawable getSafeDrawable(Drawable original, int maxDimension) { in getSafeDrawable() argument
47 int actualWidth = original.getMinimumWidth(); in getSafeDrawable()
48 int actualHeight = original.getMinimumHeight(); in getSafeDrawable()
51 return original; in getSafeDrawable()
61 if (original instanceof BitmapDrawable) { in getSafeDrawable()
62 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable()
67 original.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in getSafeDrawable()
68 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.java404 Connection original = telephonyConnection.getOriginalConnection(); in maybeSwapWithUnknownConnection() local
405 if (original != null && !original.isIncoming() in maybeSwapWithUnknownConnection()
406 && Objects.equals(original.getAddress(), unknown.getAddress())) { in maybeSwapWithUnknownConnection()
422 if (original instanceof ImsExternalConnection) { in maybeSwapWithUnknownConnection()
428 if (original.getCall() != null && original.getCall().getPhone() != null && in maybeSwapWithUnknownConnection()
429 original.getCall().getPhone() instanceof GsmCdmaPhone) { in maybeSwapWithUnknownConnection()
431 GsmCdmaPhone phone = (GsmCdmaPhone) original.getCall().getPhone(); in maybeSwapWithUnknownConnection()
434 + "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/TV/tests/common/src/com/android/tv/testing/
DEpgTestData.java176 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/
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.java609 PendingInstallShortcutInfo original) { in convertToLauncherActivityIfPossible() argument
610 if (original.isLauncherActivity()) { in convertToLauncherActivityIfPossible()
612 return original; in convertToLauncherActivityIfPossible()
614 if (!PackageManagerHelper.isLauncherAppTarget(original.launchIntent)) { in convertToLauncherActivityIfPossible()
615 return original; in convertToLauncherActivityIfPossible()
618 LauncherActivityInfo info = original.mContext.getSystemService(LauncherApps.class) in convertToLauncherActivityIfPossible()
619 .resolveActivity(original.launchIntent, original.user); in convertToLauncherActivityIfPossible()
621 return original; in convertToLauncherActivityIfPossible()
624 return new PendingInstallShortcutInfo(info, original.mContext); in convertToLauncherActivityIfPossible()
DLauncherProvider.java819 int[] original = finalScreens.toArray(); in onUpgrade() local
820 Arrays.sort(original); in onUpgrade()
822 for (int i = 0; i < original.length; i++) { in onUpgrade()
823 if (finalScreens.get(i) != original[i]) { in onUpgrade()
825 Favorites.SCREEN, finalScreens.get(i), original[i]); in onUpgrade()
/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/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/apps/Settings/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2.java544 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument
547 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader()
548 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader()
551 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader()
552 return original; in redrawIconForHeader()
556 original.setTintList(null); in redrawIconForHeader()
559 final Bitmap bitmap = Utils.createBitmap(original, in redrawIconForHeader()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/details/
DWifiDetailPreferenceController.java623 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument
626 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader()
627 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader()
630 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader()
631 return original; in redrawIconForHeader()
635 original.setTintList(null); in redrawIconForHeader()
638 final Bitmap bitmap = Utils.createBitmap(original, in redrawIconForHeader()
/packages/apps/Car/libs/car-messenger-common/proto/
Dnotification_msg.proto26 // 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/
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/Settings/src/com/android/settings/
DUtils.java957 public static Drawable getSafeDrawable(Drawable original, int maxWidth, int maxHeight) { in getSafeDrawable() argument
958 final int actualWidth = original.getMinimumWidth(); in getSafeDrawable()
959 final int actualHeight = original.getMinimumHeight(); in getSafeDrawable()
962 return original; in getSafeDrawable()
972 if (original instanceof BitmapDrawable) { in getSafeDrawable()
973 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable()
976 bitmap = createBitmap(original, width, height); in getSafeDrawable()
/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()
/packages/apps/Settings/src/com/android/settings/wifi/details/
DWifiDetailPreferenceController.java714 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument
717 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader()
718 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader()
721 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader()
722 return original; in redrawIconForHeader()
726 original.setTintList(null); in redrawIconForHeader()
729 final Bitmap bitmap = Utils.createBitmap(original, in redrawIconForHeader()
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java173 AspectRatio original = of(area); in getLargestCenterCrop() local
175 if (this.isWiderThan(original)) { in getLargestCenterCrop()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java1015 final ContentValues original = before.getBefore(); in structuredNamesAreEqual()
1017 if (original != null && pending != null) { in structuredNamesAreEqual()
1018 final String beforeDisplayName = original.getAsString(StructuredName.DISPLAY_NAME); in structuredNamesAreEqual()
1022 final String beforePrefix = original.getAsString(StructuredName.PREFIX); in structuredNamesAreEqual()
1026 final String beforeFirstName = original.getAsString(StructuredName.GIVEN_NAME); in structuredNamesAreEqual()
1030 final String beforeMiddleName = original.getAsString(StructuredName.MIDDLE_NAME); in structuredNamesAreEqual()
1034 final String beforeLastName = original.getAsString(StructuredName.FAMILY_NAME); in structuredNamesAreEqual()
1038 final String beforeSuffix = original.getAsString(StructuredName.SUFFIX); in structuredNamesAreEqual()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskJpegEncode.java191 Bitmap original = BitmapFactory.decodeByteArray(jpegData, 0, jpegData.length); in decompressCropAndRecompressJpegData() local
193 final Bitmap croppedResult = Bitmap.createBitmap(original, crop.left, crop.top, in decompressCropAndRecompressJpegData()

12345