/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | IconTest.java | 171 Icon icon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testBitmapIcon_getType() local 172 assertEquals(Icon.TYPE_BITMAP, icon.getType()); in testBitmapIcon_getType() 177 Icon icon = Icon.createWithAdaptiveBitmap( in testAdaptiveBitmapIcon_getType() local 179 assertEquals(Icon.TYPE_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveBitmapIcon_getType() 186 Icon icon = Icon.createWithData(data, 0, 4); in testDataIcon_getType() local 187 assertEquals(Icon.TYPE_DATA, icon.getType()); in testDataIcon_getType() 198 Icon icon = Icon.createWithFilePath(file.getPath()); in testFileIcon_getType() local 199 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType() 200 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType() 202 icon = Icon.createWithContentUri(Uri.fromFile(file)); in testFileIcon_getType() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageItemInfoIconTest.java | 67 itemInfo.icon = 0; in testSystemDefault() 69 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, null); in testSystemDefault() local 71 assertThat(comparePixelData(expectedIcon, icon)).isTrue(); in testSystemDefault() 82 itemInfo.icon = 0; in testFromAppInfo() 84 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromAppInfo() local 86 assertThat(comparePixelData(expectedIcon, icon)).isTrue(); in testFromAppInfo() 101 assertThat(itemInfo.icon).isEqualTo(R.drawable.start); in testFromActivity() 103 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromActivity() local 105 assertThat(comparePixelData(wrongIcon, icon)).isFalse(); in testFromActivity() 106 assertThat(comparePixelData(expectedIcon, icon)).isTrue(); in testFromActivity() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodIconSamplerActivity.java | 89 return getResources().getDrawable(packageInfo.applicationInfo.icon); in getAppIcon() 98 private static Bitmap convertToBitmap(Drawable icon) { in convertToBitmap() argument 99 if (icon == null) { in convertToBitmap() 102 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), icon.getIntrinsicHeight(), in convertToBitmap() 105 icon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in convertToBitmap() 106 icon.draw(canvas); in convertToBitmap()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | RemoteActionTest.java | 39 Icon icon = Icon.createWithContentUri("content://test"); in testParcel() local 45 RemoteAction reference = new RemoteAction(icon, title, description, action); in testParcel() 54 assertEquals(icon.getUri(), result.getIcon().getUri()); in testParcel() 64 Icon icon = Icon.createWithContentUri("content://test"); in testClone() local 70 RemoteAction reference = new RemoteAction(icon, title, description, action); in testClone() 76 assertEquals(icon.getUri(), result.getIcon().getUri()); in testClone()
|
/cts/tests/tests/sharesheet/src/android/service/chooser/ |
D | ChooserActionTest.kt | 40 val icon = Icon.createWithContentUri("content://org.package.app/image") in testParcel() constant 48 val testSubject = ChooserAction.Builder(icon, label, pendingIntent).build() in testParcel() 55 assertEquals(icon.uri, result.icon.uri) in testParcel()
|
/cts/tests/app/src/android/app/cts/ |
D | RequestTileServiceAddTest.kt | 63 private lateinit var icon: Icon variable in android.app.cts.RequestTileServiceAddTest 77 icon = Icon.createWithResource(context, R.drawable.ic_android) in setUp() 89 icon, in testRequestBadPackageFails() 106 icon, in testRequestBadComponentName() 128 icon, in testDisabledComponent() 152 icon, in testNotExportedComponent() 175 icon, in testAppNotInForeground() 195 icon, in testTwoSimultaneousRequests() 205 icon, in testTwoSimultaneousRequests()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AnalogClockTest.java | 102 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetDial() local 103 mClock.setDial(icon); in testSetDial() 104 mClockWithAttrs.setDial(icon); in testSetDial() 114 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetHourHand() local 115 mClock.setHourHand(icon); in testSetHourHand() 116 mClockWithAttrs.setHourHand(icon); in testSetHourHand() 126 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetMinuteHand() local 127 mClock.setMinuteHand(icon); in testSetMinuteHand() 128 mClockWithAttrs.setMinuteHand(icon); in testSetMinuteHand() 138 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetSecondHand() local [all …]
|
/cts/tests/smartspace/src/android/smartspace/cts/ |
D | IconTest.java | 41 android.graphics.drawable.Icon icon = android.graphics.drawable.Icon.createWithBitmap( in testCreateIcon() local 43 Icon smartspaceIcon = new Icon.Builder(icon).setContentDescription( in testCreateIcon() 46 assertThat(smartspaceIcon.getIcon()).isEqualTo(icon); in testCreateIcon()
|
D | SmartspaceActionTest.java | 59 Icon icon = Icon.createWithBitmap( in testCreateSmartspaceAction() local 62 .setIcon(icon) in testCreateSmartspaceAction() 72 assertThat(action.getIcon()).isEqualTo(icon); in testCreateSmartspaceAction()
|
D | SmartspaceTestUtils.java | 43 android.graphics.drawable.Icon icon = android.graphics.drawable.Icon.createWithBitmap( in createSmartspaceIcon() local 45 return new Icon.Builder(icon).setContentDescription(contentDescription).build(); in createSmartspaceIcon()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationTemplateTest.kt | 55 val icon = createBitmap(200, 100) in <lambda>() constant 59 .setLargeIcon(icon) in <lambda>() 71 val icon = createBitmap(40, 30) in <lambda>() constant 75 .setLargeIcon(icon) in <lambda>() 88 val icon = Icon.createWithContentUri(uri) in <lambda>() constant 92 .setLargeIcon(icon) in <lambda>() 104 val icon = createBitmap(200, 300) in <lambda>() constant 108 .setLargeIcon(icon) in <lambda>() 118 val icon = createBitmap(200, 100) in <lambda>() constant 122 .setLargeIcon(icon) in <lambda>() [all …]
|
D | NotificationTest.java | 111 assertEquals(0, mNotification.icon); in testConstructor() 169 mNotification.icon = 0; 201 assertEquals(mNotification.icon, result.icon); 305 assertEquals(1, mNotification.icon); 702 Icon icon = Icon.createWithResource(mContext, 1); in testBubbleMetadataBuilder() local 704 new Notification.BubbleMetadata.Builder(bubbleIntent, icon) in testBubbleMetadataBuilder() 711 assertEquals(icon, data.getIcon()); in testBubbleMetadataBuilder() 726 Icon icon = Icon.createWithResource(mContext, 1); in testBubbleMetadata_parcel() local 728 new Notification.BubbleMetadata.Builder(bubbleIntent, icon) in testBubbleMetadata_parcel() 738 assertEquals(icon, metadata.getIcon()); in testBubbleMetadata_parcel() [all …]
|
D | WearableExtenderTest.java | 72 final int icon = 3; in testWearableExtender() local 86 .setContentIcon(icon) in testWearableExtender() 108 assertEquals(icon, extender.getContentIcon()); in testWearableExtender() 228 final int icon = 3; in testWriteToParcel() local 246 .setContentIcon(icon) in testWriteToParcel() 274 assertEquals(icon, extender.getContentIcon()); in testWriteToParcel()
|
D | BaseNotificationManagerTest.java | 307 final int icon) throws Exception { in sendNotification() argument 308 sendNotification(id, null, icon); in sendNotification() 312 String groupKey, final int icon) { in sendNotification() argument 313 sendNotification(id, groupKey, icon, false, null); in sendNotification() 317 String groupKey, final int icon, in sendNotification() argument 329 .setSmallIcon(icon) in sendNotification()
|
D | ConditionTest.java | 72 assertEquals(-1, condition.icon); in testConstructor() 94 assertEquals(-1, copy.icon); in testWriteToParcel() 113 assertEquals(-1, copy.icon); in testCopy()
|
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/ |
D | NotificationTemplateApi30Test.kt | 41 val icon = createBitmap(200, 100) in <lambda>() constant 45 .setLargeIcon(icon) in <lambda>() 55 val icon = createBitmap(200, 100) in <lambda>() constant 59 .setLargeIcon(icon) in <lambda>() 74 val icon = createBitmap(200, 100) in <lambda>() constant 78 .setLargeIcon(icon) in <lambda>() 137 val icon = createBitmap(80, 65) in <lambda>() constant 141 .setLargeIcon(icon) in <lambda>()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21129/src/android/security/cts/CVE_2023_21129/ |
D | PocService.java | 61 Icon icon = createNotificationIcon(); in onStartCommand() local 67 .setIcon(icon) in onStartCommand() 98 .setIcon(icon) in onStartCommand() 110 .setSmallIcon(icon) in onStartCommand()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierServiceSwapTest.java | 199 final Icon icon = classification.getActions().get(0).getIcon(); in testResourceIconsRewrittenToContentUriIcons_classifyText() local 200 assertThat(icon.getType()).isEqualTo(Icon.TYPE_URI); in testResourceIconsRewrittenToContentUriIcons_classifyText() 201 assertThat(icon.getUri()).isEqualTo(CtsTextClassifierService.ICON_URI.getUri()); in testResourceIconsRewrittenToContentUriIcons_classifyText() 217 final Icon icon = textSelection.getTextClassification().getActions().get(0).getIcon(); in testResourceIconsRewrittenToContentUriIcons_suggestSelection() local 218 assertThat(icon.getType()).isEqualTo(Icon.TYPE_URI); in testResourceIconsRewrittenToContentUriIcons_suggestSelection() 219 assertThat(icon.getUri()).isEqualTo(CtsTextClassifierService.ICON_URI.getUri()); in testResourceIconsRewrittenToContentUriIcons_suggestSelection()
|
/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/ |
D | ShortcutConfirmPin.java | 88 final Drawable icon = launcherApps.getShortcutBadgedIconDrawable( in onCreate() local 93 if (icon == null) { in onCreate() 98 if (icon != null) { in onCreate()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | NewUserRequestTest.java | 109 final Bitmap icon = Bitmap.createBitmap(32, 32, Bitmap.Config.RGB_565); in testSetUserIcon() local 110 mBuilder.setUserIcon(icon); in testSetUserIcon() 111 assertThat(build().getUserIcon()).isEqualTo(icon); in testSetUserIcon()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | IconHeaderItemPresenter.java | 54 Drawable icon = rootView.getResources().getDrawable(R.drawable.android_header, null); in onBindViewHolder() local 55 iconView.setImageDrawable(icon); in onBindViewHolder()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebHistoryItemTest.java | 63 public synchronized void onReceivedIcon(WebView webview, Bitmap icon) { in onReceivedIcon() argument 149 Bitmap icon = mOnUiThread.getFavicon(); in testWebHistoryItem() local 150 assertTrue(icon.sameAs(item.getFavicon())); in testWebHistoryItem()
|
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/ |
D | GetWalletCardsErrorTest.java | 49 Icon icon = Icon.createWithResource(mContext, android.R.drawable.ic_dialog_info); in testParcel_toParcel() local 50 GetWalletCardsError error = new GetWalletCardsError(icon, "error"); in testParcel_toParcel()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20415/src/android/security/cts/CVE_2022_20415/ |
D | DeviceTest.java | 61 Icon icon = createNotificationIcon(); in tryNotificationStart() local 75 .setSmallIcon(icon).setGroup(mContext.getPackageName()) in tryNotificationStart() 79 mContext.getString(R.string.idNotificationChannel)).setSmallIcon(icon) in tryNotificationStart()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceTest.java | 166 Drawable icon = mPreference.getIcon(); in testGetIcon() local 167 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon() 168 assertEquals(iconExp.getIntrinsicWidth(), icon.getIntrinsicWidth()); in testGetIcon() 169 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
|