/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/ |
H A D | SavedNetworkSettingsTest.java | 41 // 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 D | WifiSettingsUiTest.java | 78 // 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 D | SoundPlayer.java | 49 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 D | Sender.java | 70 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 D | BitmapUtil.java | 96 * @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 D | ActionImage.java | 36 public ActionImage(Path path, GalleryApp application, int resourceId) { argument 39 mResourceId = resourceId;
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | TintedDrawableSpan.java | 33 public TintedDrawableSpan(Context context, int resourceId) { argument 35 mDrawable = context.getDrawable(resourceId);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | EmojiAltPhysicalKeyDetector.java | 186 @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 D | PhotoLoadingTestCase.java | 89 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 D | PhotoStoreTest.java | 125 * @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 D | EmptyContentView.java | 69 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 D | Bots.java | 91 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 D | AccountSettingsUtils.java | 190 * @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 D | AudioPlayer.java | 93 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 D | UriUtils.java | 55 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 D | CarDrawerActivity.java | 128 * @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 D | PhotoEditorView.java | 79 private float getTypedFloat(int resourceId) { argument 81 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true);
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
H A D | CallTypeIconsView.java | 292 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 D | Shared.java | 134 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 D | AllAppsBackgroundDrawable.java | 54 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 D | BitmapPool.java | 178 * @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 D | ContactDirectoryManager.java | 139 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 D | OverlayPackagesProviderTest.java | 343 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 D | TextToSpeechFragment.java | 479 private void updateEngineStatus(int resourceId) { argument 484 mEngineStatus.setSummary(getString(resourceId, locale.getDisplayName()));
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | Utils.java | 160 * @param resourceId identifies an application resource 163 public static Uri getResourceUri(Context context, @AnyRes int resourceId) { argument 167 .path(String.valueOf(resourceId))
|