Home
last modified time | relevance | path

Searched refs:icon (Results 1 – 25 of 31) 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.java48 + "/" + R.drawable.icon); in onCreate()
DUtils.java72 .setSmallIcon(R.drawable.icon) in showBugreportNotification()
DCommandReceiverActivity.java179 com.android.cts.verifier.R.drawable.icon)); in onCreate()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java181 private void checkIconValidity(Icon icon) { in checkIconValidity() argument
182 assertNotNull(icon); in checkIconValidity()
185 icon.setTint(Color.BLUE); in checkIconValidity()
186 icon.setTintList(ColorStateList.valueOf(Color.RED)); in checkIconValidity()
187 icon.setTintMode(PorterDuff.Mode.XOR); in checkIconValidity()
190 icon.describeContents(); in checkIconValidity()
192 icon.writeToParcel(parcel, 0); in checkIconValidity()
198 assertNotNull(icon.loadDrawable(mActivity)); in checkIconValidity()
/cts/tests/app/src/android/app/cts/
DNotificationTest.java56 assertEquals(0, mNotification.icon); in testConstructor()
68 mNotification.icon = 0;
98 assertEquals(mNotification.icon, result.icon);
164 assertEquals(1, mNotification.icon);
DConditionTest.java52 assertEquals(-1, condition.icon); in testConstructor()
67 assertEquals(-1, condition1.icon); in testWriteToParcel()
DNotificationManagerTest.java100 private void sendNotification(final int id, final int icon) { in sendNotification() argument
109 .setSmallIcon(icon) in sendNotification()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebHistoryItemTest.java43 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()
DWebChromeClientTest.java466 public void onReceivedIcon(WebView view, Bitmap icon) { in onReceivedIcon() argument
/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/tests/tests/preference2/src/android/preference2/cts/
DPreferenceTest.java163 Drawable icon = mPreference.getIcon(); in testGetIcon() local
164 assertEquals(iconExp.getIntrinsicHeight(), icon.getIntrinsicHeight()); in testGetIcon()
165 assertEquals(iconExp.getIntrinsicWidth(), icon.getIntrinsicWidth()); in testGetIcon()
166 assertEquals(iconExp.getOpacity(), icon.getOpacity()); in testGetIcon()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java133 mComponentInfo.icon = R.drawable.red; in testGetIconResource()
134 assertEquals(mComponentInfo.icon, mComponentInfo.getIconResource()); in testGetIconResource()
136 mComponentInfo.icon = 0; in testGetIconResource()
137 assertEquals(mComponentInfo.applicationInfo.icon, mComponentInfo.getIconResource()); in testGetIconResource()
DResolveInfoTest.java68 assertEquals(resolveInfo.icon, infoFromParcel.icon); in testDump()
DPackageItemInfoTest.java89 assertEquals(expected.icon, actual.icon); in checkInfoSame()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java110 UiObject2 icon = mDevice.findObject(POPUP_IMAGE_SELECTOR); in automateDismissInstallBlockedDialog() local
111 assertNotNull("Policy transparency dialog icon not found", icon); in automateDismissInstallBlockedDialog()
/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/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/tests/view/src/android/view/inputmethod/cts/
DInputMethodInfoTest.java124 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.java94 int idIcon = android.R.id.icon; in testSetIndicator2()
DImageViewTest.java195 Icon icon = Icon.createWithResource(mActivity, R.drawable.testimage); in testSetImageIcon() local
196 mImageView.setImageIcon(icon); in testSetImageIcon()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java227 notification.put(JSON_ICON, sbn.getNotification().icon); in onNotificationPosted()

12