Home
last modified time | relevance | path

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

123456

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java77 SoftApConfiguration original = new SoftApConfiguration.Builder() in testBasicSettings() local
81 assertThat(original.getSsid()).isEqualTo("ssid"); in testBasicSettings()
82 assertThat(original.getBssid()).isEqualTo(testBssid); in testBasicSettings()
83 assertThat(original.getPassphrase()).isNull(); in testBasicSettings()
84 assertThat(original.getSecurityType()).isEqualTo(SoftApConfiguration.SECURITY_TYPE_OPEN); in testBasicSettings()
85 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testBasicSettings()
86 assertThat(original.getChannel()).isEqualTo(0); in testBasicSettings()
87 assertThat(original.isHiddenSsid()).isEqualTo(false); in testBasicSettings()
88 assertThat(original.getMaxNumberOfClients()).isEqualTo(0); in testBasicSettings()
90 assertThat(original.getMacRandomizationSetting()) in testBasicSettings()
[all …]
/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/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DManageStandardPermissionsFragmentTest.kt99 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenAppGetsInstalled() constant
104 assertThat(afterInstall.granted).isEqualTo(original.granted) in groupSummaryGetsUpdatedWhenAppGetsInstalled()
105 assertThat(afterInstall.total).isEqualTo(original.total + 1) in groupSummaryGetsUpdatedWhenAppGetsInstalled()
111 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenAppGetsUninstalled() constant
115 assertThat(getUsageCountsFromUi(locationGroupLabel)).isNotEqualTo(original) in groupSummaryGetsUpdatedWhenAppGetsUninstalled()
120 assertThat(getUsageCountsFromUi(locationGroupLabel)).isEqualTo(original) in groupSummaryGetsUpdatedWhenAppGetsUninstalled()
126 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() constant
131 .isEqualTo(original.total + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
137 .isEqualTo(original.granted + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
143 val original = getUsageCountsFromUi(locationGroupLabel) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked() constant
[all …]
DManageCustomPermissionsFragmentTest.kt81 val original = getUsageCountsFromUi(PERM_LABEL) in groupSummaryGetsUpdatedWhenPermissionGetsGranted() constant
85 assertThat(getUsageCountsFromUi(PERM_LABEL).granted).isEqualTo(original.granted + 1) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
96 val original = getUsageCountsFromUi(PERM_LABEL) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked() constant
100 assertThat(getUsageCountsFromUi(PERM_LABEL)).isNotEqualTo(original) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
105 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/modules/Connectivity/tests/unit/java/android/net/nsd/
DNsdServiceInfoTest.java157 public void checkParcelable(NsdServiceInfo original) { in checkParcelable() argument
161 writer.putParcelable("test_info", original); in checkParcelable()
171 assertEquals(original.getServiceName(), result.getServiceName()); in checkParcelable()
172 assertEquals(original.getServiceType(), result.getServiceType()); in checkParcelable()
173 assertEquals(original.getHost(), result.getHost()); in checkParcelable()
174 assertTrue(original.getPort() == result.getPort()); in checkParcelable()
177 Map<String, byte[]> originalMap = original.getAttributes(); in checkParcelable()
/packages/services/Telephony/src/com/android/services/telephony/
DPstnIncomingCallNotifier.java441 Connection original = telephonyConnection.getOriginalConnection(); in maybeSwapWithUnknownConnection() local
442 if (original != null && !original.isIncoming() in maybeSwapWithUnknownConnection()
443 && Objects.equals(original.getAddress(), unknown.getAddress())) { in maybeSwapWithUnknownConnection()
459 if (original instanceof ImsExternalConnection) { in maybeSwapWithUnknownConnection()
465 if (original.getCall() != null && original.getCall().getPhone() != null && in maybeSwapWithUnknownConnection()
466 original.getCall().getPhone() instanceof GsmCdmaPhone) { in maybeSwapWithUnknownConnection()
468 GsmCdmaPhone phone = (GsmCdmaPhone) original.getCall().getPhone(); in maybeSwapWithUnknownConnection()
471 + "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/modules/Connectivity/tests/unit/java/android/net/
DIpSecConfigTest.java94 IpSecConfig original = getSampleConfig(); in testCopyConstructor() local
95 IpSecConfig copy = new IpSecConfig(original); in testCopyConstructor()
97 assertEquals(original, copy); in testCopyConstructor()
98 assertNotSame(original, copy); in testCopyConstructor()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DProxyTest.kt83 val original = getDefaultProxy() in testSetHttpProxyConfiguration_DirectProxy() constant
88 Proxy.setHttpProxyConfiguration(original) in testSetHttpProxyConfiguration_DirectProxy()
95 val original = getDefaultProxy() in testSetHttpProxyConfiguration_PacProxy() constant
100 Proxy.setHttpProxyConfiguration(original) in testSetHttpProxyConfiguration_PacProxy()
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/javatests/com/android/libraries/rcs/simpleclient/protocol/sdp/
DSimpleSdpMessageTest.java57 SimpleSdpMessage original = in encodeAndParse_shouldBeEqualToOriginal() local
61 SimpleSdpMessage.parse(new ByteArrayInputStream(original.encode().getBytes(UTF_8))); in encodeAndParse_shouldBeEqualToOriginal()
63 assertThat(parsedSdp).isEqualTo(original); in encodeAndParse_shouldBeEqualToOriginal()
/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/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/data/
DOpUsageLiveDataTest.kt42 private fun parcelUnparcel(original: OpAccess): OpAccess { in parcelUnparcel()
44 parcel.writeParcelable(original, 0) in parcelUnparcel()
/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/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/details2/
DWifiDetailPreferenceController2.java600 private Drawable redrawIconForHeader(Drawable original) { in redrawIconForHeader() argument
603 final int actualWidth = original.getMinimumWidth(); in redrawIconForHeader()
604 final int actualHeight = original.getMinimumHeight(); in redrawIconForHeader()
607 || !VectorDrawable.class.isInstance(original)) { in redrawIconForHeader()
608 return original; in redrawIconForHeader()
612 original.setTintList(null); in redrawIconForHeader()
615 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/Settings/src/com/android/settings/
DUtils.java1029 private static Drawable getSafeDrawable(Drawable original, int maxWidth, int maxHeight) { in getSafeDrawable() argument
1030 final int actualWidth = original.getMinimumWidth(); in getSafeDrawable()
1031 final int actualHeight = original.getMinimumHeight(); in getSafeDrawable()
1034 return original; in getSafeDrawable()
1044 if (original instanceof BitmapDrawable) { in getSafeDrawable()
1045 bitmap = Bitmap.createScaledBitmap(((BitmapDrawable) original).getBitmap(), width, in getSafeDrawable()
1048 bitmap = createBitmap(original, width, height); in getSafeDrawable()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtMacTest.java114 AtMac original = new AtMac(RESERVED_BYTES, MAC_BYTES); in testGetAtMacWithMacCleared() local
116 AtMac clearedMac = original.getAtMacWithMacCleared(); in testGetAtMacWithMacCleared()
/packages/modules/Virtualization/microdroid/signature/
DREADME.md35 At the end of each payload partition the size of the original payload file (APEX or APK) is stored
38 For example, the following code shows how to get the original size of host apex file

123456