Home
last modified time | relevance | path

Searched refs:icon (Results 1 – 25 of 44) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java139 Icon icon = Icon.createWithBitmap(Bitmap.createBitmap(16, 16, Bitmap.Config.ARGB_8888)); in testBitmapIcon_getType() local
140 assertEquals(Icon.TYPE_BITMAP, icon.getType()); in testBitmapIcon_getType()
147 Icon icon = Icon.createWithData(data, 0, 4); in testDataIcon_getType() local
148 assertEquals(Icon.TYPE_DATA, icon.getType()); in testDataIcon_getType()
159 Icon icon = Icon.createWithFilePath(file.getPath()); in testFileIcon_getType() local
160 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
161 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
163 icon = Icon.createWithContentUri(Uri.fromFile(file)); in testFileIcon_getType()
164 assertEquals(Icon.TYPE_URI, icon.getType()); in testFileIcon_getType()
165 assertEquals(filePath, icon.getUri().getPath()); in testFileIcon_getType()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageItemInfoIconTest.java66 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 …]
DComponentInfoTest.java141 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()
DResolveInfoTest.java70 assertEquals(resolveInfo.icon, infoFromParcel.icon); in testDump()
DPackageItemInfoTest.java91 assertEquals(expected.icon, actual.icon); in checkInfoSame()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java89 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/
DRemoteActionTest.java39 Icon icon = Icon.createWithContentUri("content://test"); in testParcel() local
44 RemoteAction reference = new RemoteAction(icon, title, description, action); in testParcel()
53 assertEquals(icon.getUri(), result.getIcon().getUri()); in testParcel()
63 Icon icon = Icon.createWithContentUri("content://test"); in testClone() local
68 RemoteAction reference = new RemoteAction(icon, title, description, action); in testClone()
74 assertEquals(icon.getUri(), result.getIcon().getUri()); in testClone()
/cts/tests/app/src/android/app/cts/
DNotificationTest.java92 assertEquals(0, mNotification.icon); in testConstructor()
142 mNotification.icon = 0;
173 assertEquals(mNotification.icon, result.icon);
266 assertEquals(1, mNotification.icon);
625 Icon icon = Icon.createWithResource(mContext, 1); in testBubbleMetadataBuilder() local
629 .setIcon(icon) in testBubbleMetadataBuilder()
635 assertEquals(icon, data.getIcon()); in testBubbleMetadataBuilder()
645 Icon icon = Icon.createWithResource(mContext, 1); in testBubbleMetadata_parcel() local
651 .setIcon(icon) in testBubbleMetadata_parcel()
658 assertEquals(icon, metadata.getIcon()); in testBubbleMetadata_parcel()
[all …]
DConditionTest.java52 assertEquals(-1, condition.icon); in testConstructor()
67 assertEquals(-1, condition1.icon); in testWriteToParcel()
79 assertEquals(-1, condition1.icon); in testCopy()
DWearableExtenderTest.java59 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()
DNotificationManagerTest.java357 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument
358 sendNotification(id, null, icon); in sendNotification()
361 private void sendNotification(final int id, String groupKey, final int icon) throws Exception { in sendNotification() argument
371 .setSmallIcon(icon) in sendNotification()
2020 .setSmallIcon(android.R.id.icon) in testNotificationDelegate_grantAndPost()
2107 .setSmallIcon(android.R.id.icon) in testNotificationDelegate_grantAndRevoke()
2125 .setSmallIcon(android.R.id.icon) in testNotificationIcon()
2135 .setSmallIcon(Icon.createWithResource(mContext, android.R.id.icon)) in testNotificationIcon()
2490 Icon icon = Icon.createWithResource(mContext, android.R.drawable.sym_def_app_icon); in testNotificationManagerBubblePolicy_flagForMessage_succeeds() local
2491 Notification.Action replyAction = new Notification.Action.Builder(icon, "Reply", in testNotificationManagerBubblePolicy_flagForMessage_succeeds()
[all …]
/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/
DShortcutConfirmPin.java88 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/
DWebHistoryItemTest.java46 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/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java129 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument
130 sendNotification(id, null, icon); in sendNotification()
133 private void sendNotification(final int id, String groupKey, final int icon) throws Exception { in sendNotification() argument
143 .setSmallIcon(icon) in sendNotification()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceTest.java166 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/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DIconHeaderItemPresenter.java54 Drawable icon = rootView.getResources().getDrawable(R.drawable.android_header, null); in onBindViewHolder() local
55 iconView.setImageDrawable(icon); in onBindViewHolder()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DHeartRateMonitorTestActivity.java101 void updateWidgets(float value, float accuracy, int icon) { in updateWidgets() argument
106 sensorText.setCompoundDrawablesWithIntrinsicBounds(0, 0, icon, 0); in updateWidgets()
DGyroscopeTestActivity.java215 void updateWidgets(float sensorValue, int backgroundColor, int icon) { in updateWidgets() argument
220 mSensorText.setCompoundDrawablesWithIntrinsicBounds(0, 0, icon, 0); in updateWidgets()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java115 UiObject2 icon = mDevice.findObject(getPopUpImageSelector()); in automateDismissInstallBlockedDialog() local
116 assertNotNull("Policy transparency dialog icon not found", icon); in automateDismissInstallBlockedDialog()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java332 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument
333 sendNotification(id, null, icon); in sendNotification()
336 private void sendNotification(final int id, String groupKey, final int icon) throws Exception { in sendNotification() argument
346 .setSmallIcon(icon) in sendNotification()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java418 protected ShortcutInfo makeShortcutWithIcon(String id, Icon icon) { in makeShortcutWithIcon() argument
420 id, "Title-" + id, /* activity =*/ null, icon, in makeShortcutWithIcon()
443 Icon icon, Intent intent, int rank) { in makeShortcut() argument
453 if (icon != null) { in makeShortcut()
454 b.setIcon(icon); in makeShortcut()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java207 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/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java100 final UiObject2 icon = device.findObject(getPopUpImageSelector()); in dismissPolicyTransparencyDialog() local
101 assertNotNull("Policy transparency dialog icon not found", icon); in dismissPolicyTransparencyDialog()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java465 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument
466 sendNotification(id, null, icon); in sendNotification()
469 private void sendNotification(final int id, String groupKey, final int icon) throws Exception { in sendNotification() argument
479 .setSmallIcon(icon) in sendNotification()
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/
DNotificationManager28Test.java65 .setSmallIcon(android.R.id.icon) in testPostFullScreenIntent_noPermission()

12