Searched defs:resourceId (Results 1 - 25 of 36) sorted by relevance

12

/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
H A DSavedNetworkSettingsTest.java41 // Keys used to lookup resources by name (see the resourceId helper method).
52 private int resourceId(String type, String name) { method in class:SavedNetworkSettingsTest
72 onView(withText(resourceId(STRING, WIFI_ADD_NETWORK))).check(matches(isDisplayed()))
74 onView(withText(resourceId(STRING, WIFI_NETWORK_LABEL))).check(matches(isDisplayed()));
H A DWifiSettingsUiTest.java78 // Keys used to lookup resources by name (see the resourceId/resourceString helper methods).
116 private int resourceId(String type, String name) { method in class:WifiSettingsUiTest
120 /** Similar to {@link #resourceId}, but for accessing R.string.<name> values. */
122 return mContext.getResources().getString(resourceId(STRING, name));
191 onView(withText(resourceId(STRING, WIFI_CONFIGURE_SETTINGS_PREFERENCE_TITLE))).check(
202 onView(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL))).check(
213 onView(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL))).check(
224 onView(allOf(withText(resourceId(STRING, WIFI_SAVED_ACCESS_POINTS_LABEL)),
357 onView(withText(resourceId(STRING, WIFI_PASSWORD))).check(matches(isDisplayed()));
358 onView(withText(resourceId(STRIN
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DSoundPlayer.java49 public void loadSound(int resourceId) { argument
50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */);
51 mResourceToSoundId.put(resourceId, soundId);
58 public void play(int resourceId, float volume) { argument
59 Integer soundId = mResourceToSoundId.get(resourceId);
69 public void unloadSound(int resourceId) { argument
70 Integer soundId = mResourceToSoundId.get(resourceId);
/packages/apps/Email/provider_src/com/android/email/mail/
H A DSender.java70 private static Sender findSender(Context context, int resourceId, Account account) argument
74 XmlResourceParser xml = context.getResources().getXml(resourceId);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DBitmapUtil.java96 * @param resourceId The resource ID of the drawable to rotate.
101 android.content.res.Resources resources, int resourceId, float angle) {
104 Bitmap original = BitmapFactory.decodeResource(resources, resourceId);
100 getRotatedDrawable( android.content.res.Resources resources, int resourceId, float angle) argument
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DActionImage.java36 public ActionImage(Path path, GalleryApp application, int resourceId) { argument
39 mResourceId = resourceId;
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTintedDrawableSpan.java33 public TintedDrawableSpan(Context context, int resourceId) { argument
35 mDrawable = context.getDrawable(resourceId);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DEmojiAltPhysicalKeyDetector.java186 @Nonnull final Resources resources, final int resourceId) {
188 final String name = resources.getResourceEntryName(resourceId);
189 final String[] values = resources.getStringArray(resourceId);
185 parseHotKeys( @onnull final Resources resources, final int resourceId) argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoLoadingTestCase.java89 protected byte[] loadPhotoFromResource(int resourceId, PhotoSize size) { argument
90 PhotoEntry entry = photoResourceCache.get(resourceId);
93 InputStream is = resources.openRawResource(resourceId);
96 photoResourceCache.put(resourceId, entry);
H A DPhotoStoreTest.java125 * @param resourceId The resource ID of the photo file to test.
127 public void runStorageTestForResource(int resourceId, int expectedWidth, argument
129 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
137 byte[] expectedStoredVersion = loadPhotoFromResource(resourceId, PhotoSize.DISPLAY_PHOTO);
157 public void runStorageTestForResourceWithCrop(int resourceId, int expectedWidth, argument
159 byte[] photo = loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL);
203 for (int resourceId : resourceIds) {
205 new PhotoProcessor(loadPhotoFromResource(resourceId, PhotoSize.ORIGINAL),
207 resourceIdToPhotoMap.put(resourceId, photoFileId);
/packages/apps/Dialer/java/com/android/dialer/widget/
H A DEmptyContentView.java69 public void setDescription(int resourceId) { argument
70 if (resourceId == NO_LABEL) {
74 mDescriptionView.setText(resourceId);
79 public void setImage(int resourceId) { argument
80 if (resourceId == NO_LABEL) {
84 mImageView.setImageResource(resourceId);
89 public void setActionLabel(@StringRes int resourceId) { argument
90 actionLabel = resourceId;
91 if (resourceId == NO_LABEL) {
95 mActionView.setText(resourceId);
[all...]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DBots.java91 protected UiObject findObject(String resourceId) { argument
92 final UiSelector object = new UiSelector().resourceId(resourceId);
98 .resourceId(parentResourceId)
99 .childSelector(new UiSelector().resourceId(childResourceId));
/packages/apps/Email/provider_src/com/android/email/activity/setup/
H A DAccountSettingsUtils.java190 * @param resourceId ResourceId of the xml file to search.
194 final int resourceId) {
200 final XmlResourceParser xml = context.getResources().getXml(resourceId);
262 * @param resourceId Id of the provider resource to scan
266 Context context, String domain, int resourceId) {
268 XmlResourceParser xml = context.getResources().getXml(resourceId);
193 findOAuthProvider(final Context context, final String id, final int resourceId) argument
265 findProviderForDomain( Context context, String domain, int resourceId) argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
H A DAudioPlayer.java93 public AudioPlayer(Context context, int resourceId, AudioAttributes attrib) { argument
95 mResourceId = resourceId;
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DUriUtils.java55 public static String getAndroidResourceUri(Context context, int resourceId) { argument
56 return getAndroidResourceUri(context.getResources(), resourceId);
62 public static String getAndroidResourceUri(Resources resources, int resourceId) { argument
64 + SCHEME_DELIMITER + resources.getResourceName(resourceId)
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/app/
H A DCarDrawerActivity.java128 * @param resourceId Layout to display as main content.
130 public void setMainContent(@LayoutRes int resourceId) { argument
133 inflater.inflate(resourceId, parent, true);
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DPhotoEditorView.java79 private float getTypedFloat(int resourceId) { argument
81 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true);
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
H A DCallTypeIconsView.java292 private Drawable getScaledBitmap(Context context, int resourceId) { argument
293 Bitmap icon = BitmapFactory.decodeResource(context.getResources(), resourceId);
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
H A DShared.java134 public static final String getQuantityString(Context context, @PluralsRes int resourceId, int quantity) { argument
135 return context.getResources().getQuantityString(resourceId, quantity, quantity);
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsBackgroundDrawable.java54 public TransformedImageDrawable(Context context, int resourceId, float xPct, float yPct, argument
56 mImage = context.getDrawable(resourceId);
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBitmapPool.java178 * @param resourceId Resource id to load.
186 public Bitmap decodeSampledBitmapFromResource(final int resourceId, argument
196 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp);
201 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp);
210 LogUtil.w(LogUtil.BUGLE_TAG, "Oom decoding resource " + resourceId);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DContactDirectoryManager.java139 int resourceId = cursor.getInt(0);
140 if (resourceId != 0) {
143 String resourceName = getResourceNameById(packageName, resourceId);
147 + " resourceId=" + resourceId
167 private String getResourceNameById(String packageName, int resourceId) { argument
170 return resources.getResourceName(resourceId);
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/
H A DOverlayPackagesProviderTest.java343 private void setStringArray(int resourceId, String[] strs) { argument
344 when(mResources.getStringArray(eq(resourceId)))
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
H A DTextToSpeechFragment.java479 private void updateEngineStatus(int resourceId) { argument
484 mEngineStatus.setSummary(getString(resourceId, locale.getDisplayName()));
/packages/apps/DeskClock/src/com/android/deskclock/
H A DUtils.java160 * @param resourceId identifies an application resource
163 public static Uri getResourceUri(Context context, @AnyRes int resourceId) { argument
167 .path(String.valueOf(resourceId))

Completed in 779 milliseconds

12