/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | IconTest.java | 162 Icon icon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testBitmapIcon_getType() local 163 assertEquals(Icon.TYPE_BITMAP, icon.getType()); in testBitmapIcon_getType() 168 Icon icon = Icon.createWithAdaptiveBitmap( in testAdaptiveBitmapIcon_getType() local 170 assertEquals(Icon.TYPE_ADAPTIVE_BITMAP, icon.getType()); in testAdaptiveBitmapIcon_getType() 177 Icon icon = Icon.createWithData(data, 0, 4); in testDataIcon_getType() local 178 assertEquals(Icon.TYPE_DATA, icon.getType()); in testDataIcon_getType() 189 Icon icon = Icon.createWithFilePath(file.getPath()); in testFileIcon_getType() local 190 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType() 191 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType() 193 icon = Icon.createWithContentUri(Uri.fromFile(file)); in testFileIcon_getType() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageItemInfoIconTest.java | 66 itemInfo.icon = 0; in testSystemDefault() 68 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, null); in testSystemDefault() local 70 assertTrue(comparePixelData(expectedIcon, icon)); in testSystemDefault() 80 itemInfo.icon = 0; in testFromAppInfo() 82 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromAppInfo() local 84 assertTrue(comparePixelData(expectedIcon, icon)); in testFromAppInfo() 95 assertEquals(R.drawable.start, itemInfo.icon); in testFromActivity() 97 Drawable icon = mPackageManager.loadUnbadgedItemIcon(itemInfo, appInfo); in testFromActivity() local 99 assertTrue(comparePixelData(expectedIcon, icon)); in testFromActivity() 108 itemInfo.icon = 0; in testDelegatedSystemDefault() [all …]
|
D | ResolveInfoTest.java | 70 assertEquals(resolveInfo.icon, infoFromParcel.icon); in testDump()
|
D | ComponentInfoTest.java | 141 mComponentInfo.icon = R.drawable.red; in testGetIconResource() 142 assertEquals(mComponentInfo.icon, mComponentInfo.getIconResource()); in testGetIconResource() 144 mComponentInfo.icon = 0; in testGetIconResource() 145 assertEquals(mComponentInfo.applicationInfo.icon, mComponentInfo.getIconResource()); in testGetIconResource()
|
D | PackageItemInfoTest.java | 91 assertEquals(expected.icon, actual.icon); in checkInfoSame()
|
/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/widget/src/android/widget/cts/ |
D | AnalogClockTest.java | 93 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetDial() local 94 mClock.setDial(icon); in testSetDial() 95 mClockWithAttrs.setDial(icon); in testSetDial() 105 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetHourHand() local 106 mClock.setHourHand(icon); in testSetHourHand() 107 mClockWithAttrs.setHourHand(icon); in testSetHourHand() 117 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetMinuteHand() local 118 mClock.setMinuteHand(icon); in testSetMinuteHand() 119 mClockWithAttrs.setMinuteHand(icon); in testSetMinuteHand() 129 Icon icon = Icon.createWithResource(mActivity, R.drawable.magenta_fill); in testSetSecondHand() local [all …]
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierServiceSwapTest.java | 135 final Icon icon = classification.getActions().get(0).getIcon(); in testResourceIconsRewrittenToContentUriIcons_classifyText() local 136 assertThat(icon.getType()).isEqualTo(Icon.TYPE_URI); in testResourceIconsRewrittenToContentUriIcons_classifyText() 137 assertThat(icon.getUri()).isEqualTo(CtsTextClassifierService.ICON_URI.getUri()); in testResourceIconsRewrittenToContentUriIcons_classifyText() 153 final Icon icon = textSelection.getTextClassification().getActions().get(0).getIcon(); in testResourceIconsRewrittenToContentUriIcons_suggestSelection() local 154 assertThat(icon.getType()).isEqualTo(Icon.TYPE_URI); in testResourceIconsRewrittenToContentUriIcons_suggestSelection() 155 assertThat(icon.getUri()).isEqualTo(CtsTextClassifierService.ICON_URI.getUri()); in testResourceIconsRewrittenToContentUriIcons_suggestSelection()
|
D | TextClassificationTest.java | 128 final Drawable icon = new ColorDrawable(Color.RED); in testTextClassificationLegacy() local 138 .setIcon(icon) in testTextClassificationLegacy() 155 assertEquals(icon, classification.getIcon()); in testTextClassificationLegacy()
|
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/ |
D | NotificationTemplateApi30Test.kt | 33 val icon = createBitmap(200, 100) in <lambda>() constant 37 .setLargeIcon(icon) in <lambda>() 46 val icon = createBitmap(200, 100) in <lambda>() constant 50 .setLargeIcon(icon) in <lambda>() 60 val icon = createBitmap(200, 100) in <lambda>() constant 64 .setLargeIcon(icon) in <lambda>() 113 val icon = createBitmap(80, 65) in <lambda>() constant 117 .setLargeIcon(icon) in <lambda>()
|
/cts/tests/smartspace/src/android/smartspace/cts/ |
D | SmartspaceActionTest.java | 59 Icon icon = Icon.createWithBitmap( in testCreateSmartspaceAction() local 62 .setIcon(icon) in testCreateSmartspaceAction() 72 assertThat(action.getIcon()).isEqualTo(icon); in testCreateSmartspaceAction()
|
/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/webkit/src/android/webkit/cts/ |
D | WebHistoryItemTest.java | 46 public synchronized void onReceivedIcon(WebView webview, Bitmap icon) { in onReceivedIcon() argument 112 Bitmap icon = mOnUiThread.getFavicon(); in testWebHistoryItem() local 113 assertTrue(icon.sameAs(item.getFavicon())); in testWebHistoryItem()
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationTest.java | 95 assertEquals(0, mNotification.icon); in testConstructor() 149 mNotification.icon = 0; 180 assertEquals(mNotification.icon, result.icon); 273 assertEquals(1, mNotification.icon); 637 Icon icon = Icon.createWithResource(mContext, 1); in testBubbleMetadataBuilder() local 639 new Notification.BubbleMetadata.Builder(bubbleIntent, icon) in testBubbleMetadataBuilder() 646 assertEquals(icon, data.getIcon()); in testBubbleMetadataBuilder() 659 Icon icon = Icon.createWithResource(mContext, 1); in testBubbleMetadata_parcel() local 661 new Notification.BubbleMetadata.Builder(bubbleIntent, icon) in testBubbleMetadata_parcel() 671 assertEquals(icon, metadata.getIcon()); in testBubbleMetadata_parcel() [all …]
|
D | ConditionTest.java | 52 assertEquals(-1, condition.icon); in testConstructor() 67 assertEquals(-1, condition1.icon); in testWriteToParcel() 79 assertEquals(-1, condition1.icon); in testCopy()
|
D | WearableExtenderTest.java | 59 final int icon = 3; in testWearableExtender() local 74 .setContentIcon(icon) in testWearableExtender() 97 assertEquals(icon, extender.getContentIcon()); in testWearableExtender() 211 final int icon = 3; in testWriteToParcel() local 230 .setContentIcon(icon) in testWriteToParcel() 259 assertEquals(icon, extender.getContentIcon()); in testWriteToParcel()
|
/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/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/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | LegacyNotificationManager20Test.java | 120 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument 121 sendNotification(id, null, icon); in sendNotification() 124 private void sendNotification(final int id, String groupKey, final int icon) throws Exception { in sendNotification() argument 134 .setSmallIcon(icon) in sendNotification()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | HeartRateMonitorTestActivity.java | 101 void updateWidgets(float value, float accuracy, int icon) { in updateWidgets() argument 106 sensorText.setCompoundDrawablesWithIntrinsicBounds(0, 0, icon, 0); in updateWidgets()
|
/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()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ManualPackageInstallTest.java | 126 UiObject2 icon = mDevice.findObject(selector); in automateDismissInstallBlockedDialog() local 127 assertNotNull("Policy transparency dialog icon not found: " + selector, icon); in automateDismissInstallBlockedDialog()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | LegacyNotificationManagerTest.java | 338 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument 339 sendNotification(id, null, icon); in sendNotification() 342 private void sendNotification(final int id, String groupKey, final int icon) throws Exception { in sendNotification() argument 352 .setSmallIcon(icon) in sendNotification()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DataObjectUnitTests.java | 207 Icon icon = Icon.createWithResource(context, R.drawable.ic_phone_24dp); in testStatusHints() local 210 icon, in testStatusHints() 213 assertEquals(icon.toString(), hints.getIcon().toString()); in testStatusHints() 226 assertEquals(icon.toString(), parcelHints.getIcon().toString()); in testStatusHints()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerCtsTestsBase.java | 435 protected ShortcutInfo makeShortcutWithIcon(String id, Icon icon) { in makeShortcutWithIcon() argument 437 id, "Title-" + id, /* activity =*/ null, icon, in makeShortcutWithIcon() 484 Icon icon, Intent intent, int rank, LocusId locusId, boolean longLived) { in makeShortcut() argument 495 if (icon != null) { in makeShortcut() 496 b.setIcon(icon); in makeShortcut()
|