Home
last modified time | relevance | path

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

12

/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()
DByodProvisioningTestActivity.java106 getResourceUri(R.drawable.icon)) in getTestLogoIntent()
DUtils.java90 .setSmallIcon(R.drawable.icon) in showBugreportNotification()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java146 private void verifyIconValidity(Icon icon) { in verifyIconValidity() argument
147 assertNotNull(icon); in verifyIconValidity()
150 icon.setTint(Color.BLUE); in verifyIconValidity()
151 icon.setTintList(ColorStateList.valueOf(Color.RED)); in verifyIconValidity()
152 icon.setTintMode(PorterDuff.Mode.XOR); in verifyIconValidity()
155 icon.describeContents(); in verifyIconValidity()
157 icon.writeToParcel(parcel, 0); in verifyIconValidity()
163 assertNotNull(icon.loadDrawable(mActivity)); in verifyIconValidity()
/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.java44 public synchronized void onReceivedIcon(WebView webview, Bitmap icon) { in onReceivedIcon() argument
113 Bitmap icon = mOnUiThread.getFavicon(); in testWebHistoryItem() local
114 assertTrue(icon.sameAs(item.getFavicon())); in testWebHistoryItem()
/cts/tests/app/src/android/app/cts/
DConditionTest.java52 assertEquals(-1, condition.icon); in testConstructor()
67 assertEquals(-1, condition1.icon); in testWriteToParcel()
DNotificationTest.java72 assertEquals(0, mNotification.icon); in testConstructor()
101 mNotification.icon = 0;
132 assertEquals(mNotification.icon, result.icon);
219 assertEquals(1, mNotification.icon);
DNotificationManagerTest.java378 private void sendNotification(final int id, final int icon) throws Exception { in sendNotification() argument
388 .setSmallIcon(icon) in sendNotification()
/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/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java79 final UiObject2 icon = device.findObject(POPUP_IMAGE_SELECTOR); in dismissPolicyTransparencyDialog() local
80 assertNotNull("Policy transparency dialog icon not found", icon); in dismissPolicyTransparencyDialog()
/cts/tests/tests/content/src/android/content/pm/cts/
DResolveInfoTest.java68 assertEquals(resolveInfo.icon, infoFromParcel.icon); in testDump()
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()
DPackageItemInfoTest.java89 assertEquals(expected.icon, actual.icon); in checkInfoSame()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java109 UiObject2 icon = mDevice.findObject(POPUP_IMAGE_SELECTOR); in automateDismissInstallBlockedDialog() local
110 assertNotNull("Policy transparency dialog icon not found", icon); in automateDismissInstallBlockedDialog()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java168 Drawable icon = mPreference.getIcon(); in testGetIcon() local
169 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()
170 assertEquals(iconExp.getIntrinsicWidth(), icon.getIntrinsicWidth()); in testGetIcon()
171 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
/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/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerCtsTestsBase.java374 protected ShortcutInfo makeShortcutWithIcon(String id, Icon icon) { in makeShortcutWithIcon() argument
376 id, "Title-" + id, /* activity =*/ null, icon, in makeShortcutWithIcon()
399 Icon icon, Intent intent, int rank) { in makeShortcut() argument
409 if (icon != null) { in makeShortcut()
410 b.setIcon(icon); in makeShortcut()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java203 Icon icon = Icon.createWithResource(context, R.drawable.ic_phone_24dp); in testStatusHints() local
206 icon, in testStatusHints()
209 assertEquals(icon.toString(), hints.getIcon().toString()); in testStatusHints()
222 assertEquals(icon.toString(), parcelHints.getIcon().toString()); in testStatusHints()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java148 assertEquals(expected.icon, actual.icon); in assertService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputSetupActivity.java84 "android.resource://" + getPackageName() + "/" + R.drawable.icon); in onCreate()
/cts/tools/vm-tests-tf/lib/
Djunit.jar ... .awt.Frame frame java.awt.Image icon java.awt.Frame finalFrame java.awt. ...
/cts/tests/tests/widget/src/android/widget/cts/
DTabHost_TabSpecTest.java107 int idIcon = android.R.id.icon; in testSetIndicator2()
DImageViewTest.java202 Icon icon = Icon.createWithResource(mActivity, R.drawable.testimage); in testSetImageIcon() local
203 mImageViewRegular.setImageIcon(icon); in testSetImageIcon()

12