/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | MediaSizeUtils.java | 98 /** Mapping from media size to label */ 124 * Get the label for a {@link MediaSize}. 126 * @param context The context the label should be loaded for 129 * @return The label for the media size 132 String label = mMediaSizeToLabel.get(mediaSize); 134 if (label == null) { 135 label = mediaSize.getLabel(context.getPackageManager()); 136 mMediaSizeToLabel.put(mediaSize, label); 139 return label; 160 // Same standard - sort alphabetically by label [all...] |
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/ |
H A D | FragmentArgumentsSupport.java | 64 static MyFragment newInstance(CharSequence label) { argument 67 b.putCharSequence("label", label); 96 CharSequence label = args.getCharSequence("label"); 97 if (label != null) { 98 mLabel = label; 111 ((TextView)tv).setText(mLabel != null ? mLabel : "(no label)");
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/ |
H A D | FragmentArgumentsSupport.java | 64 static MyFragment newInstance(CharSequence label) { argument 67 b.putCharSequence("label", label); 96 CharSequence label = args.getCharSequence("label"); 97 if (label != null) { 98 mLabel = label; 111 ((TextView)tv).setText(mLabel != null ? mLabel : "(no label)");
|
/frameworks/base/core/java/android/content/pm/ |
H A D | ComponentInfo.java | 105 CharSequence label; 107 label = pm.getText(packageName, labelRes, ai); 108 if (label != null) { 109 return label; 116 label = pm.getText(packageName, ai.labelRes, ai); 117 if (label != null) { 118 return label;
|
H A D | PermissionGroupInfo.java | 89 * @param pm A PackageManager from which the label can be loaded; usually 100 CharSequence label = pm.getText(packageName, descriptionRes, null); 101 if (label != null) { 102 return label;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | UidDetailProvider.java | 76 * Resolve best descriptive label for the given UID. 109 detail.label = pm.getNameForUid(uid); 115 detail.label = res.getString(R.string.process_kernel_label); 119 detail.label = res.getString(UserManager.supportsMultipleUsers() 127 detail.label = res.getString(Utils.getTetheringLabel(cm)); 139 detail.label = Utils.getUserLabel(mContext, info); 156 detail.label = info.loadLabel(pm).toString(); 174 detail.label = pm.getText(packageName, packageInfo.sharedUserLabel, 181 detail.contentDescription = um.getBadgedLabelForUser(detail.label, userHandle); 188 if (TextUtils.isEmpty(detail.label)) { [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | ListOfButtonsTest.java | 105 String label = labels[i]; 109 String indexInfo = "index: " + i + ", label: " + label; 115 assertEquals(indexInfo, label, button.getText().toString()); 124 String label = labels[i]; 126 String indexInfo = "index: " + i + ", label: " + label; 132 assertEquals(indexInfo, label, button.getText().toString());
|
H A D | HorizontalFocusSearch.java | 93 private Button makeTall(String label) { argument 95 button.setText(label); 102 private Button addShort(LinearLayout root, String label, boolean atBottom) { argument 104 button.setText(label);
|
H A D | VerticalFocusSearch.java | 101 private Button makeWide(String label) { argument 103 button.setText(label); 114 * @param label The label of the button. 118 private Button addSkinny(LinearLayout root, String label, boolean atRight) { argument 120 button.setText(label);
|
H A D | ListOfButtons.java | 64 String label = getItem(position); 67 button.setText(label);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | DomainMatcher.java | 59 * Add sub-domains to this label. 61 * @param labels The iterator of domain label strings 83 * Return the Label for the give label string. 84 * @param labelString The label string to look for 122 // Create the root label. 164 Label label = mRoot; 167 label = label.getSubLabel(labelString); 168 if (label == null) { 170 } else if (label [all...] |
/frameworks/support/navigation/common/ktx/src/main/java/androidx/navigation/ |
H A D | NavDestinationBuilder.kt | 34 * The descriptive label of the destination 36 var label: CharSequence? = null 81 destination.label = label
|
/frameworks/base/core/java/com/android/internal/globalactions/ |
H A D | ActionsDialog.java | 69 CharSequence label = 71 if (label != null) { 72 event.getText().add(label);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
H A D | RecentsTaskLoader.java | 238 // The cache is small, only clear the label cache when we are critical 264 * Returns the cached task label if the task key is not expired, updating the cache if it is. 267 // Return the task description label if it exists 271 // Return the cached activity label if it exists 272 String label = mActivityLabelCache.getAndInvalidateIfModified(taskKey); 273 if (label != null) { 274 return label; 276 // All short paths failed, load the label from the activity info and cache it 279 label = ActivityManagerWrapper.getInstance().getBadgedActivityLabel(activityInfo, 281 mActivityLabelCache.put(taskKey, label); [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | StatusHints.java | 31 * Contains status label and icon displayed in the in-call UI. 43 public StatusHints(ComponentName packageName, CharSequence label, int iconResId, argument 45 this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(), 49 public StatusHints(CharSequence label, Icon icon, Bundle extras) { argument 50 mLabel = label; 67 * @return The label displayed in the in-call UI.
|
/frameworks/support/navigation/testing/ktx/src/androidTest/java/androidx/navigation/testing/ |
H A D | TestNavigatorDestinationBuilderTest.kt | 48 label = LABEL 53 assertEquals("Destination should have label set", 54 LABEL, graph[DESTINATION_ID].label)
|
/frameworks/base/core/java/android/appwidget/ |
H A D | AppWidgetProviderInfo.java | 206 * The label to display to the user in the AppWidget picker. 211 public String label; field in class:AppWidgetProviderInfo 293 this.label = in.readString(); 304 * Loads the localized label to display to the user in the AppWidget picker. 307 * @return The label for the current locale. 310 CharSequence label = providerInfo.loadLabel(packageManager); 311 if (label != null) { 312 return label.toString().trim(); 378 out.writeString(this.label); 401 that.label [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
H A D | TileQueryHelper.java | 108 // Ignore the current state and get the generic label instead. 109 state.label = tile.getTileLabel(); 153 CharSequence label = info.serviceInfo.loadLabel(pm); 154 addTile(spec, icon, label != null ? label.toString() : "null", appLabel); 188 info.state.secondaryLabel = (isSystem || TextUtils.equals(state.label, appLabel)) 196 String spec, Drawable drawable, CharSequence label, CharSequence appLabel) { 198 state.label = label; 199 state.contentDescription = label; 195 addTile( String spec, Drawable drawable, CharSequence label, CharSequence appLabel) argument [all...] |
/frameworks/base/tools/aapt2/configuration/ |
H A D | ConfigurationParser_test.cpp | 85 <abi-group label="other" version-code-order="2"> 89 <abi-group label="arm" version-code-order="1"> 95 <screen-density-group label="large" version-code-order="2"> 100 <screen-density-group label="alldpi" version-code-order="1"> 110 <locale-group label="europe" version-code-order="1"> 116 <locale-group label="north-america" version-code-order="2"> 121 <locale-group label="all" version-code-order="-1"> 127 label="v19" 137 <gl-texture-group label="dxt1" version-code-order="2"> 144 <device-feature-group label [all...] |
/frameworks/base/core/java/android/content/pm/permission/ |
H A D | RuntimePermissionPresentationInfo.java | 44 * @param label The permission label. 48 public RuntimePermissionPresentationInfo(CharSequence label, argument 50 mLabel = label; 81 * Gets the permission label. 83 * @return The label.
|
/frameworks/base/core/java/android/net/ |
H A D | INetworkManagementEventObserver.aidl | 92 void interfaceClassDataActivityChanged(String label, boolean active, long tsNanos);
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CompletionInfo.java | 58 * Create a simple completion with just text, no label. 74 * Create a full completion with both text and label. The text is 75 * what will get inserted into the editor, while the label is what 77 * of the constructor without a `label' argument. 84 * @param label The text that the IME should be showing among the 87 public CompletionInfo(long id, int index, CharSequence text, CharSequence label) { argument 91 mLabel = label; 126 * Return the user-visible label for the completion, or null if the plain 137 + "\" id=" + mId + " label=" + mLabel + "}";
|
/frameworks/base/libs/hwui/ |
H A D | GlLayer.cpp | 26 #define ATRACE_LAYER_WORK(label) \ 27 ATRACE_FORMAT("%s HW Layer DisplayList %s %ux%u", label, \
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | MediaProjectionPermissionActivity.java | 102 String label = aInfo.loadLabel(packageManager).toString(); 104 // If the label contains new line characters it may push the security 108 final int labelLength = label.length(); 111 final int codePoint = label.codePointAt(offset); 116 label = label.substring(0, offset) + ELLIPSIS; 122 if (label.isEmpty()) { 123 label = mPackageName; 126 String unsanitizedAppName = TextUtils.ellipsize(label,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | ToggleSeekBar.java | 62 public void setAccessibilityLabel(String label) { argument 63 mAccessibilityLabel = label;
|