/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/config/ |
AnalogComplicationConfigRecyclerViewAdapter.java | 469 public void setDefaultComplicationDrawable(int resourceId) { 471 mDefaultComplicationDrawable = context.getDrawable(resourceId); 596 public void setIcon(int resourceId) { 598 mMoreOptionsImageView.setImageDrawable(context.getDrawable(resourceId)); 625 public void setIcon(int resourceId) { 628 context.getDrawable(resourceId), null, null, null); [all...] |
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/ |
GeofenceTransitionsIntentService.java | 116 private void showToast(final Context context, final int resourceId) { 121 Toast.makeText(context, context.getString(resourceId), Toast.LENGTH_SHORT).show();
|
/external/python/cpython2/Doc/library/ |
macos.rst | 115 .. function:: splash([resourceid]) 117 Opens a splash screen by resource id. Use resourceid ``0`` to close
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
MenuLoader.java | 101 public void inflateMenu(Context context, int resourceId, Menu root) { 102 inflateMenu(context, resourceExtractor.getResourceName(resourceId),
|
PreferenceLoader.java | 68 public PreferenceScreen inflatePreferences(Context context, int resourceId) { 69 return inflatePreferences(context, resourceExtractor.getResourceName(resourceId));
|
/external/smali/util/src/main/java/org/jf/util/ |
NumberUtils.java | 68 int resourceId = value & 0xffff; 69 if ((packageId == 0x7f || packageId == 1) && resourceType < 0x1f && resourceId < 0xfff) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
RestrictedPreferenceHelper.java | 58 if (userRestriction.resourceId != 0) { 59 data = context.getText(userRestriction.resourceId);
|
RestrictedSwitchPreference.java | 63 if (restrictedSwitchSummary.resourceId != 0) { 64 data = context.getString(restrictedSwitchSummary.resourceId);
|
/frameworks/base/tools/aapt2/java/ |
ClassDefinition.h | 119 using ResourceMember = PrimitiveMember<ResourceId>; 167 using ResourceArrayMember = PrimitiveArrayMember<ResourceId>;
|
/frameworks/base/tools/aapt2/xml/ |
XmlDom.h | 66 explicit AaptAttribute(const ::aapt::Attribute& attr, const Maybe<ResourceId>& resid = {}) 71 Maybe<ResourceId> id;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
PhotoEditorView.java | 79 private float getTypedFloat(int resourceId) { 81 getResources().getValue(resourceId, typedValue, /* resolveRefs =*/ true);
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
GestureBot.java | 91 final UiSelector docList = new UiSelector().resourceId( 93 new UiSelector().resourceId(DIR_LIST_ID));
|
/packages/apps/Email/provider_src/com/android/email/mail/ |
Sender.java | 70 private static Sender findSender(Context context, int resourceId, Account account) 74 XmlResourceParser xml = context.getResources().getXml(resourceId);
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
AllAppsBackgroundDrawable.java | 54 public TransformedImageDrawable(Context context, int resourceId, float xPct, float yPct, 56 mImage = context.getDrawable(resourceId);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
AudioPlayer.java | 93 public AudioPlayer(Context context, int resourceId, AudioAttributes attrib) { 95 mResourceId = resourceId;
|
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
AccessibilityHelper.java | 175 new UiSelector().resourceId(SETTINGS_PACKAGE+":id/list")); 179 new UiSelector().resourceId("android:id/title").text(settingName));
|
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/ |
SysAppTestHelper.java | 196 public UiObject2 waitForSysAppUiObject2(String resourceId) { 199 Until.findObject(By.res(launcherPackageName, resourceId)),
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
PackageManagerTest.java | 447 int resourceId = R.xml.pm_test; 450 assertNotNull(mPackageManager.getXml(PACKAGE_NAME, resourceId, appInfo)); 452 .getResourceName(resourceId)); 454 resourceId)); 456 .getResourceName(resourceId));
|
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProviderInfo.java | 23 import android.content.res.ResourceId; 367 private Drawable loadDrawable(Context context, int density, int resourceId, 372 if (ResourceId.isValid(resourceId)) { 376 return resources.getDrawableForDensity(resourceId, density, null);
|
/frameworks/ex/common/java/com/android/common/contacts/ |
BaseEmailAddressAdapter.java | 387 int resourceId = directoryCursor.getInt(DirectoryListQuery.TYPE_RESOURCE_ID); 388 if (packageName != null && resourceId != 0) { 392 partition.directoryType = resources.getString(resourceId); 395 + resourceId + "@" + packageName); 399 + resourceId + "@" + packageName, e);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
BitmapPool.java | 178 * @param resourceId Resource id to load. 186 public Bitmap decodeSampledBitmapFromResource(final int resourceId, 196 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp); 201 b = BitmapFactory.decodeResource(resources, resourceId, optionsTmp); 210 LogUtil.w(LogUtil.BUGLE_TAG, "Oom decoding resource " + resourceId);
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
ClockBackService.java | 248 int resourceId = message.arg1; 249 playEarcon(resourceId); 380 int resourceId = (feedbackIndex == INDEX_SCREEN_ON) ? R.string.template_screen_on 382 String template = mContext.getString(resourceId); 565 Integer resourceId = sSoundsResourceIds.get(earconId); 566 if (resourceId != null) { 568 mTts.addEarcon(earconName, getPackageName(), resourceId);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
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) { 170 return resources.getResourceName(resourceId);
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
ViewDataBinding.java | 643 protected static int getColorFromResource(View view, int resourceId) { 645 return view.getContext().getColor(resourceId); 647 return view.getResources().getColor(resourceId); 652 protected static ColorStateList getColorStateListFromResource(View view, int resourceId) { 654 return view.getContext().getColorStateList(resourceId); 656 return view.getResources().getColorStateList(resourceId); 661 protected static Drawable getDrawableFromResource(View view, int resourceId) { 663 return view.getContext().getDrawable(resourceId); 665 return view.getResources().getDrawable(resourceId); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreUiTest.java | 201 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); 204 maybeClick(new UiSelector().resourceId(pkg + ":id/shutter_button")); 206 maybeClick(new UiSelector().resourceId(pkg + ":id/done_button"));
|