/packages/apps/Camera2/src/com/android/camera/ |
H A D | SoundPlayer.java | 45 public void loadSound(int resourceId) { argument 46 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); 47 mResourceToSoundId.put(resourceId, soundId); 54 public void play(int resourceId, float volume) { argument 55 Integer soundId = mResourceToSoundId.get(resourceId); 65 public void unloadSound(int resourceId) { argument 66 Integer soundId = mResourceToSoundId.get(resourceId);
|
/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | DisconnectCauseUtil.java | 147 Integer resourceId = null; 150 resourceId = R.string.callFailed_userBusy; 154 resourceId = R.string.callFailed_congestion; 158 resourceId = R.string.callFailed_timedOut; 162 resourceId = R.string.callFailed_server_unreachable; 166 resourceId = R.string.callFailed_number_unreachable; 170 resourceId = R.string.callFailed_invalid_credentials; 174 resourceId = R.string.callFailed_server_error; 178 resourceId = R.string.callFailed_out_of_network; 183 resourceId [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
H A D | WifiNetworksBrowseInfo.java | 216 int resourceId = 0; 223 resourceId = R.drawable.ic_settings_wifi_active_1; 226 resourceId = R.drawable.ic_settings_wifi_active_2; 229 resourceId = R.drawable.ic_settings_wifi_active_3; 232 resourceId = R.drawable.ic_settings_wifi_active_4; 239 resourceId = R.drawable.ic_settings_wifi_secure_active_1; 242 resourceId = R.drawable.ic_settings_wifi_secure_active_2; 245 resourceId = R.drawable.ic_settings_wifi_secure_active_3; 248 resourceId = R.drawable.ic_settings_wifi_secure_active_4; 253 return resourceId; [all...] |
H A D | NetworkActivity.java | 229 int resourceId = 0; 235 resourceId = R.drawable.ic_settings_wifi_active_1; 238 resourceId = R.drawable.ic_settings_wifi_active_2; 241 resourceId = R.drawable.ic_settings_wifi_active_3; 244 resourceId = R.drawable.ic_settings_wifi_active_4; 250 resourceId = R.drawable.ic_settings_wifi_secure_active_1; 253 resourceId = R.drawable.ic_settings_wifi_secure_active_2; 256 resourceId = R.drawable.ic_settings_wifi_secure_active_3; 259 resourceId = R.drawable.ic_settings_wifi_secure_active_4; 264 return resourceId; [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ThemeUtils.java | 32 return outValue.resourceId;
|
/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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | BitmapUtil.java | 91 * @param resourceId The resource ID of the drawable to rotate. 96 android.content.res.Resources resources, int resourceId, float angle) { 99 Bitmap original = BitmapFactory.decodeResource(resources, resourceId); 95 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/InCallUI/src/com/android/incallui/widget/multiwaveview/ |
H A D | GlowPadView.java | 226 setHandleDrawable(handle != null ? handle.resourceId : R.drawable.ic_incall_audio_handle); 240 internalSetTargetResources(outValue.resourceId); 248 final int resourceId = outValue.resourceId; 249 if (resourceId == 0) { 252 setTargetDescriptionsResourceId(resourceId); 257 final int resourceId = outValue.resourceId; 258 if (resourceId == 0) { 261 setDirectionDescriptionsResourceId(resourceId); 586 loadDrawableArray(int resourceId) argument 600 internalSetTargetResources(int resourceId) argument 627 setTargetResources(int resourceId) argument 644 setHandleDrawable(int resourceId) argument 654 setTargetDescriptionsResourceId(int resourceId) argument 675 setDirectionDescriptionsResourceId(int resourceId) argument 1249 loadDescriptions(int resourceId) argument 1266 setEnableTarget(int resourceId, boolean enabled) argument 1281 getTargetPosition(int resourceId) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
H A D | TosWebViewFragment.java | 126 * @param resourceId id or string resourse to show. 128 public static TosWebViewFragment newInstance_resourceId(int resourceId) { argument 131 args.putInt(ARGUMENT_CONTENT_RESOURCE_ID, resourceId); 271 int resourceId = getArguments().getInt(ARGUMENT_CONTENT_RESOURCE_ID); 272 mSource = getResources().getString(resourceId); 372 private String readStringFromResource(Context context, int resourceId) { argument 376 InputStream is = context.getResources().openRawResource(resourceId); 388 Log.e(TAG, "Couldn't find the file " + resourceId + " " + ex); 391 Log.e(TAG, "Error reading file " + resourceId + " " + ex);
|
/packages/apps/Email/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/Gallery2/src/com/android/gallery3d/ui/ |
H A D | ScrollBarView.java | 47 context, outValue.resourceId);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | PackageIconLoader.java | 103 int resourceId = Integer.parseInt(drawableId); 105 Drawable icon = mPackageContext.getResources().getDrawable(resourceId); 130 int resourceId = Integer.parseInt(drawableId); 131 return Util.getResourceUri(mPackageContext, resourceId);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | UriUtils.java | 56 public static String getAndroidResourceUri(Context context, int resourceId) { argument 57 return getAndroidResourceUri(context.getResources(), resourceId); 63 public static String getAndroidResourceUri(Resources resources, int resourceId) { argument 65 + SCHEME_DELIMITER + resources.getResourceName(resourceId)
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | DictionaryInfoUtils.java | 264 int resourceId = getMainDictionaryResourceIdIfAvailableForLocale(res, locale); 265 if (0 != resourceId) return resourceId; 368 final int resourceId = 371 if (0 == resourceId) continue; 373 BinaryDictionaryGetter.loadFallbackResource(context, resourceId);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
H A D | BrowseInfo.java | 443 private String getStringFromTypedArray(TypedArray sa, int resourceId) { argument 445 TypedValue tv = sa.peekValue(resourceId); 447 if (tv.resourceId != 0) { 448 value = mContext.getString(tv.resourceId); 539 int resourceId = AccessoryUtils.getImageIdForDevice(device); 541 device.getName(), resourceId); 549 .description(desc).imageResourceId(mContext, resourceId)
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | AccountSettingsUtils.java | 193 * @param resourceId ResourceId of the xml file to search. 197 final int resourceId) { 203 final XmlResourceParser xml = context.getResources().getXml(resourceId); 265 * @param resourceId Id of the provider resource to scan 269 Context context, String domain, int resourceId) { 271 XmlResourceParser xml = context.getResources().getXml(resourceId); 196 findOAuthProvider(final Context context, final String id, final int resourceId) argument 268 findProviderForDomain( Context context, String domain, int resourceId) argument
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | ContactDirectoryManager.java | 141 int resourceId = cursor.getInt(0); 142 if (resourceId != 0) { 145 String resourceName = getResourceNameById(packageName, resourceId); 162 private String getResourceNameById(String packageName, int resourceId) { argument 165 return resources.getResourceName(resourceId);
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | SettingsActivity.java | 1009 if (tv.resourceId != 0) { 1010 category.titleRes = tv.resourceId; 1036 if (tv.resourceId != 0) { 1037 tile.titleRes = tv.resourceId; 1045 if (tv.resourceId != 0) { 1046 tile.summaryRes = tv.resourceId;
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | IndicatorControlWheel.java | 189 private ImageView addImageButton(Context context, int resourceId, boolean rotatable) { argument 196 view.setImageResource(resourceId);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
H A D | ManagedProvisioningActivity.java | 391 public void showErrorAndClose(int resourceId, String logText) { argument 393 new ManagedProvisioningErrorDialog(getString(resourceId))
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/ |
H A D | Picker.java | 456 private float getFloat(int resourceId) { argument 458 mContext.getResources().getValue(resourceId, buffer, true);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ContactEntryListAdapter.java | 113 protected void setDefaultFilterHeaderText(int resourceId) { argument 114 mDefaultFilterHeaderText = getContext().getResources().getText(resourceId);
|
/packages/apps/Settings/src/com/android/settings/tts/ |
H A D | TextToSpeechSettings.java | 482 private void updateEngineStatus(int resourceId) { argument 487 mEngineStatus.setSummary(getString(resourceId, locale.getDisplayName()));
|