/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | AppPermissionsPreferenceControllerTest.java | 88 final ArrayList<CharSequence> labels = new ArrayList<>(); in updateSummary_hasPermissionGroups_shouldSetPermissionAsSummary() local 89 labels.add(permission); in updateSummary_hasPermissionGroups_shouldSetPermissionAsSummary() 93 mController.updateSummary(labels); in updateSummary_hasPermissionGroups_shouldSetPermissionAsSummary() 103 final ArrayList<CharSequence> labels = new ArrayList<>(); in updateSummary_notReachCallbackCount_shouldNotSetSummary() local 104 labels.add(permission); in updateSummary_notReachCallbackCount_shouldNotSetSummary() 106 mController.updateSummary(labels); in updateSummary_notReachCallbackCount_shouldNotSetSummary() 125 final List<CharSequence> labels = new ArrayList<>(); in getPermissionGroupsSet() local 126 labels.add("Phone"); in getPermissionGroupsSet() 127 labels.add("SMS"); in getPermissionGroupsSet() 128 labels.add("Microphone"); in getPermissionGroupsSet() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | UsageView.java | 71 LinearLayout labels = findViewById(R.id.label_group); in UsageView() local 73 layout.removeView(labels); in UsageView() 74 layout.addView(labels); in UsageView() 76 labels.setGravity(Gravity.END); in UsageView() 130 public void setSideLabels(CharSequence[] labels) { in setSideLabels() argument 131 if (labels.length != mLabels.length) { in setSideLabels() 135 mLabels[i].setText(labels[i]); in setSideLabels() 139 public void setBottomLabels(CharSequence[] labels) { in setBottomLabels() argument 140 if (labels.length != mBottomLabels.length) { in setBottomLabels() 144 mBottomLabels[i].setText(labels[i]); in setBottomLabels()
|
D | LabeledSeekBar.java | 79 public void setLabels(String[] labels) { in setLabels() argument 80 mLabels = labels; in setLabels()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | UsageView.java | 71 LinearLayout labels = findViewById(R.id.label_group); in UsageView() local 73 layout.removeView(labels); in UsageView() 74 layout.addView(labels); in UsageView() 76 labels.setGravity(Gravity.END); in UsageView() 130 public void setSideLabels(CharSequence[] labels) { in setSideLabels() argument 131 if (labels.length != mLabels.length) { in setSideLabels() 135 mLabels[i].setText(labels[i]); in setSideLabels() 139 public void setBottomLabels(CharSequence[] labels) { in setBottomLabels() argument 140 if (labels.length != mBottomLabels.length) { in setBottomLabels() 144 mBottomLabels[i].setText(labels[i]); in setBottomLabels()
|
D | LabeledSeekBar.java | 79 public void setLabels(String[] labels) { in setLabels() argument 80 mLabels = labels; in setLabels()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | OverlayCategoryPreferenceController.java | 152 final List<String> labels = new ArrayList<>(); in updateState() local 159 labels.add(selectedLabel); in updateState() 164 labels.add(mPackageManager.getApplicationInfo(overlayInfo.packageName, 0) in updateState() 167 labels.add(overlayInfo.packageName); in updateState() 171 selectedLabel = labels.get(labels.size() - 1); in updateState() 175 mPreference.setEntries(labels.toArray(new String[labels.size()])); in updateState()
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | OverlayCategoryPreferenceController.java | 152 final List<String> labels = new ArrayList<>(); in updateState() local 159 labels.add(selectedLabel); in updateState() 164 labels.add(mPackageManager.getApplicationInfo(overlayInfo.packageName, 0) in updateState() 167 labels.add(overlayInfo.packageName); in updateState() 171 selectedLabel = labels.get(labels.size() - 1); in updateState() 175 mPreference.setEntries(labels.toArray(new String[labels.size()])); in updateState()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | DirectoryListBot.java | 83 public void assertDocumentsPresent(String... labels) throws UiObjectNotFoundException { in assertDocumentsPresent() argument 85 for (String label : labels) { in assertDocumentsPresent() 91 fail("Expected documents " + Arrays.asList(labels) in assertDocumentsPresent() 96 public void assertDocumentsAbsent(String... labels) throws UiObjectNotFoundException { in assertDocumentsAbsent() argument 98 for (String label : labels) { in assertDocumentsAbsent() 104 fail("Expected documents not present" + Arrays.asList(labels) in assertDocumentsAbsent() 231 public void copyFilesToClipboard(String...labels) throws UiObjectNotFoundException { in copyFilesToClipboard() argument 232 for (String label: labels) { in copyFilesToClipboard() 277 public boolean hasDocuments(String... labels) throws UiObjectNotFoundException { in hasDocuments() argument 278 for (String label : labels) { in hasDocuments()
|
D | SidebarBot.java | 109 public void assertRootsPresent(String... labels) throws UiObjectNotFoundException { in assertRootsPresent() argument 111 for (String label : labels) { in assertRootsPresent() 118 "Expected roots " + Arrays.asList(labels) + ", but missing " + missing); in assertRootsPresent() 122 public void assertRootsAbsent(String... labels) throws UiObjectNotFoundException { in assertRootsAbsent() argument 124 for (String label : labels) { in assertRootsAbsent()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | AppPermissionPreferenceControllerTest.java | 110 final ArrayList<CharSequence> labels = new ArrayList<>(); in onPermissionSummaryResult_hasRuntimePermission_shouldSetPermissionAsSummary() local 111 labels.add(permission); in onPermissionSummaryResult_hasRuntimePermission_shouldSetPermissionAsSummary() 113 mController.mPermissionCallback.onPermissionSummaryResult(1, 5, 0, labels); in onPermissionSummaryResult_hasRuntimePermission_shouldSetPermissionAsSummary() 123 final ArrayList<CharSequence> labels = new ArrayList<>(); in onPermissionSummaryResult_hasAdditionalPermission_shouldSetAdditionalSummary() local 124 labels.add(permission); in onPermissionSummaryResult_hasAdditionalPermission_shouldSetAdditionalSummary() 126 mController.mPermissionCallback.onPermissionSummaryResult(1, 5, 2, labels); in onPermissionSummaryResult_hasAdditionalPermission_shouldSetAdditionalSummary()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ThemePreferenceController.java | 82 CharSequence[] labels = new CharSequence[pkgs.length]; in updateState() local 85 labels[i] = mPackageManager.getApplicationInfo(pkgs[i], 0) in updateState() 88 labels[i] = pkgs[i]; in updateState() 91 pref.setEntries(labels); in updateState() 98 themeLabel = labels[i]; in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | ThemePreferenceController.java | 82 CharSequence[] labels = new CharSequence[pkgs.length]; in updateState() local 85 labels[i] = mPackageManager.getApplicationInfo(pkgs[i], 0) in updateState() 88 labels[i] = pkgs[i]; in updateState() 91 pref.setEntries(labels); in updateState() 98 themeLabel = labels[i]; in updateState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/inputmethod/ |
D | KeyboardPreferenceController.java | 69 List<String> labels = new ArrayList<>(); in updateState() local 71 labels.add(InputMethodUtil.getPackageLabel(mPackageManager, inputMethodInfo)); in updateState() 73 if (labels.isEmpty()) { in updateState() 81 for (String label : labels) { in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/ |
D | VirtualKeyboardPreferenceController.java | 69 final List<String> labels = new ArrayList<>(); in updateState() local 77 labels.add(imi.loadLabel(mPm).toString()); in updateState() 79 if (labels.isEmpty()) { in updateState() 87 for (String label : labels) { in updateState()
|
D | SpellCheckerPreference.java | 50 CharSequence[] labels = new CharSequence[scis.length]; in SpellCheckerPreference() local 53 labels[i] = scis[i].loadLabel(context.getPackageManager()); in SpellCheckerPreference() 57 setEntries(labels); in SpellCheckerPreference()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | VirtualKeyboardPreferenceController.java | 69 final List<String> labels = new ArrayList<>(); in updateState() local 77 labels.add(imi.loadLabel(mPm).toString()); in updateState() 79 if (labels.isEmpty()) { in updateState() 87 for (String label : labels) { in updateState()
|
D | SpellCheckerPreference.java | 50 CharSequence[] labels = new CharSequence[scis.length]; in SpellCheckerPreference() local 53 labels[i] = scis[i].loadLabel(context.getPackageManager()); in SpellCheckerPreference() 57 setEntries(labels); in SpellCheckerPreference()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLocaleUtils.java | 87 final StringBuilder labels = new StringBuilder(); in dumpIndex() local 90 labels.append(sep); in dumpIndex() 91 labels.append(index.getBucket(i).getLabel()); in dumpIndex() 94 Log.d(TAG, "Labels=[" + labels + "]"); in dumpIndex() 279 final ArrayList<String> labels = new ArrayList<String>(bucketCount); in getLabels() local 281 labels.add(getBucketLabel(i)); in getLabels() 283 return labels; in getLabels()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 127 CharSequence[] labels = new CharSequence[3]; in bindNetworkPolicy() local 136 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy() 145 labels[1] = getLabel(policy.warningBytes, R.string.data_usage_sweep_warning, in bindNetworkPolicy() 149 chart.setSideLabels(labels); in bindNetworkPolicy()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | ChartDataUsagePreference.java | 127 CharSequence[] labels = new CharSequence[3]; in bindNetworkPolicy() local 136 labels[2] = getLabel(policy.limitBytes, R.string.data_usage_sweep_limit, mLimitColor); in bindNetworkPolicy() 145 labels[1] = getLabel(policy.warningBytes, R.string.data_usage_sweep_warning, in bindNetworkPolicy() 149 chart.setSideLabels(labels); in bindNetworkPolicy()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | ActivityPicker.java | 150 ArrayList<String> labels = in getItems() local 155 if (labels != null && icons != null && labels.size() == icons.size()) { in getItems() 156 for (int i = 0; i < labels.size(); i++) { in getItems() 157 String label = labels.get(i); in getItems()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 150 ArrayList<String> labels = in getItems() local 155 if (labels != null && icons != null && labels.size() == icons.size()) { in getItems() 156 for (int i = 0; i < labels.size(); i++) { in getItems() 157 String label = labels.get(i); in getItems()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | TestHelpers.java | 130 final String[] labels = { in getSystemHealthMessage() local 140 for (String label : labels) { in getSystemHealthMessage()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 232 CharSequence[] labels = new CharSequence[actions.size()]; in performAction() local 234 labels[i] = mLauncher.getText(actions.get(i)); in performAction() 239 .setItems(labels, new DialogInterface.OnClickListener() { in performAction()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStorageSettings.java | 334 CharSequence[] labels = new CharSequence[candidates.size()]; in initMoveDialog() local 341 labels[i] = volDescrip; in initMoveDialog() 346 .setSingleChoiceItems(labels, current, this) in initMoveDialog()
|