/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryHistoryChart.java | 319 final String label; field in BatteryHistoryChart.TimeLabel 326 label = DateFormat.format(bestFormat, cal).toString(); in TimeLabel() 327 width = (int)paint.measureText(label); in TimeLabel() 333 final String label; field in BatteryHistoryChart.DateLabel 340 label = DateFormat.format(bestFormat, cal).toString(); in DateLabel() 341 width = (int)paint.measureText(label); in DateLabel() 1175 TimeLabel label = mTimeLabels.get(i); in drawChart() local 1177 int x = label.x - label.width/2; in drawChart() 1181 if (DEBUG) Log.d(TAG, "Drawing left label: " + label.label + " @ " + x); in drawChart() 1182 canvas.drawText(label.label, x, y, mTextPaint); in drawChart() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | LabelDialogFragment.java | 51 public static LabelDialogFragment newInstance(Alarm alarm, String label, String tag) { in newInstance() argument 54 args.putString(KEY_LABEL, label); in newInstance() 61 public static LabelDialogFragment newInstance(TimerObj timer, String label, String tag) { in newInstance() argument 64 args.putString(KEY_LABEL, label); in newInstance() 81 final String label = bundle.getString(KEY_LABEL); in onCreateView() local 89 mLabelBox.setText(label); in onCreateView() 114 setLabelBoxBackground(TextUtils.isEmpty(label)); in onCreateView() 139 String label = mLabelBox.getText().toString(); in set() local 140 if (label.trim().length() == 0) { in set() 142 label = ""; in set() [all …]
|
D | AlarmClockFragment.java | 400 LabelDialogFragment.newInstance(alarm, alarm.label, getTag()); in showLabelDialog() 404 public void setLabel(Alarm alarm, String label) { in setLabel() argument 405 alarm.label = label; in setLabel() 533 TextView label; field in AlarmClockFragment.AlarmItemAdapter.ItemHolder 657 holder.label = (TextView) view.findViewById(R.id.label); in setNewHolder() 777 if (alarm.label != null && alarm.label.length() != 0) { in bindView() 778 itemHolder.label.setText(alarm.label + " "); in bindView() 779 itemHolder.label.setVisibility(View.VISIBLE); in bindView() 780 itemHolder.label.setContentDescription( in bindView() 782 + alarm.label); in bindView() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | AbstractLayoutBase.java | 29 public static ExpectedKey key(final String label, final ExpectedKey ... moreKeys) { in key() argument 30 return ExpectedKey.newInstance(label, moreKeys); in key() 34 public static ExpectedKey key(final String label, final String outputText, in key() argument 36 return ExpectedKey.newInstance(label, outputText, moreKeys); in key() 40 public static ExpectedKey key(final String label, final int code, in key() argument 42 return ExpectedKey.newInstance(label, code, moreKeys); in key() 67 public static ExpectedAdditionalMoreKey additionalMoreKey(final String label) { in additionalMoreKey() argument 68 return ExpectedAdditionalMoreKey.newInstance(label); in additionalMoreKey() 72 public static ExpectedKey moreKey(final String label) { in moreKey() argument 73 return ExpectedKey.newInstance(label); in moreKey() [all …]
|
D | ExpectedKey.java | 33 static ExpectedKey newInstance(final String label, final ExpectedKey... moreKeys) { in newInstance() argument 34 return newInstance(label, label, moreKeys); in newInstance() 38 static ExpectedKey newInstance(final String label, final String outputText, in newInstance() argument 40 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance() 45 static ExpectedKey newInstance(final String label, final int code, in newInstance() argument 47 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance() 207 public static ExpectedAdditionalMoreKey newInstance(final String label) { in newInstance() argument 208 return new ExpectedAdditionalMoreKey(ExpectedKeyVisual.newInstance(label), in newInstance() 209 ExpectedKeyOutput.newInstance(label)); in newInstance()
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
D | legacy_contacts.sql | 11 …(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INT… field 32 …EXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,label TEXT,person INTEGE… field 55 … REFERENCES people(_id),type INTEGER NOT NULL,number TEXT,number_key TEXT,label TEXT,isprimary INT… field 91 …N contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 92 …N contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 104 … ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 105 … ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 115 … INSERT ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 116 … UPDATE ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE…
|
/packages/providers/ContactsProvider/tests/assets/test1/ |
D | legacy_contacts.sql | 14 …(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INT… field 51 …EXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,label TEXT,person INTEGE… field 78 … REFERENCES people(_id),type INTEGER NOT NULL,number TEXT,number_key TEXT,label TEXT,isprimary INT… field 123 …N contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 124 …N contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 136 … ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 137 … ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 147 … INSERT ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 148 … UPDATE ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE…
|
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
D | legacy_contacts.sql | 12 …(_id),kind INTEGER NOT NULL,data TEXT,aux_data TEXT,type INTEGER NOT NULL,label TEXT,isprimary INT… field 42 …EXT,title TEXT,isprimary INTEGER NOT NULL DEFAULT 0,type INTEGER NOT NULL,label TEXT,person INTEGE… field 100 … REFERENCES people(_id),type INTEGER NOT NULL,number TEXT,number_key TEXT,label TEXT,isprimary INT… field 147 …N contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 148 …N contact_methods WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 160 … ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 161 … ON organizations WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 171 … INSERT ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE… 172 … UPDATE ON phones WHEN (NEW.type != 0 AND NEW.label IS NOT NULL) OR (NEW.type = 0 AND NE…
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | ResultActivity.java | 83 private void addRowForValue(String label, Object value) { in addRowForValue() argument 85 addRow(label, "null"); in addRowForValue() 87 addRowWithBitmap(label, (Bitmap)value); in addRowForValue() 89 addRow(label, "INTENT"); in addRowForValue() 92 addRow(label, "DATA"); in addRowForValue() 95 addRow(label, "ARRAY"); in addRowForValue() 101 addRow(label, String.valueOf(value)); in addRowForValue() 134 TextView label = new TextView(this); in addRow() local 135 label.setPadding(4, 4, 4, 4); in addRow() 136 label.setText(column0); in addRow() [all …]
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 76 public static View initSnippet(View snippetView, CharSequence label, Drawable icon) { in initSnippet() argument 78 ((TextView)snippetView.findViewById(R.id.app_name)).setText(label); in initSnippet() 135 ((TextView)appSnippet.findViewById(R.id.app_name)).setText(as.label); in initSnippetForNewApp() 153 CharSequence label; field in PackageUtil.AppSnippet 155 public AppSnippet(CharSequence label, Drawable icon) { in AppSnippet() argument 156 this.label = label; in AppSnippet() 175 CharSequence label = null; in getAppSnippet() local 180 label = res.getText(appInfo.labelRes); in getAppSnippet() 184 if (label == null) { in getAppSnippet() 185 label = (appInfo.nonLocalizedLabel != null) ? in getAppSnippet() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardLayoutSetActionLabelBase.java | 75 final int elementId, final CharSequence label, final int iconId) { in doTestActionKey() argument 79 assertEquals(tag + " enter label " + enterKey, label, enterKey.getLabel()); in doTestActionKey() 101 final String label = job.runInLocale(getContext().getResources(), labelLocale); in doTestActionKeyLabelResIdInLocale() local 102 doTestActionKeyLabel(tag, subtype, editorInfo, label); in doTestActionKeyLabelResIdInLocale() 106 final EditorInfo editorInfo, final CharSequence label) { in doTestActionKeyLabel() argument 111 label, KeyboardIconsSet.ICON_UNDEFINED); in doTestActionKeyLabel() 113 label, KeyboardIconsSet.ICON_UNDEFINED); in doTestActionKeyLabel() 115 label, KeyboardIconsSet.ICON_UNDEFINED); in doTestActionKeyLabel() 118 label, KeyboardIconsSet.ICON_UNDEFINED); in doTestActionKeyLabel() 120 label, KeyboardIconsSet.ICON_UNDEFINED); in doTestActionKeyLabel() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeySpecParser.java | 143 final String label = parseEscape(getBeforeLabelEnd(keySpec, labelEnd)); in getLabel() local 144 if (label.isEmpty()) { in getLabel() 147 return label; in getLabel() 179 final String label = getLabel(keySpec); in getOutputText() local 180 if (label == null) { in getOutputText() 184 return (StringUtils.codePointCount(label) == 1) ? null : label; in getOutputText() 206 final String label = getLabel(keySpec); in getCode() local 207 if (label == null) { in getCode() 211 return (StringUtils.codePointCount(label) == 1) ? label.codePointAt(0) : CODE_OUTPUT_TEXT; in getCode()
|
/packages/apps/Settings/src/com/android/settings/net/ |
D | UidDetailProvider.java | 109 detail.label = pm.getNameForUid(uid); in buildUidDetail() 115 detail.label = res.getString(R.string.process_kernel_label); in buildUidDetail() 119 detail.label = res.getString(UserManager.supportsMultipleUsers() in buildUidDetail() 127 detail.label = res.getString(Utils.getTetheringLabel(cm)); in buildUidDetail() 140 detail.label = res.getString(R.string.managed_user_title); in buildUidDetail() 144 detail.label = res.getString(R.string.running_process_item_user_label, in buildUidDetail() 163 detail.label = info.loadLabel(pm).toString(); in buildUidDetail() 181 detail.label = pm.getText(packageName, packageInfo.sharedUserLabel, in buildUidDetail() 188 detail.contentDescription = um.getBadgedLabelForUser(detail.label, userHandle); in buildUidDetail() 195 if (TextUtils.isEmpty(detail.label)) { in buildUidDetail() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/ |
D | LayoutTestsBase.java | 69 static ExpectedKey key(final String label, final ExpectedKey ... moreKeys) { in key() argument 70 return AbstractLayoutBase.key(label, moreKeys); in key() 74 static ExpectedKey key(final String label, final String outputText, in key() argument 76 return AbstractLayoutBase.key(label, outputText, moreKeys); in key() 86 public static ExpectedAdditionalMoreKey additionalMoreKey(final String label) { in additionalMoreKey() argument 87 return AbstractLayoutBase.additionalMoreKey(label); in additionalMoreKey() 91 static ExpectedKey moreKey(final String label) { in moreKey() argument 92 return AbstractLayoutBase.moreKey(label); in moreKey() 97 static ExpectedKey moreKey(final String label, final String outputText) { in moreKey() argument 98 return AbstractLayoutBase.moreKey(label, outputText); in moreKey()
|
/packages/apps/Settings/src/com/android/settings/ |
D | ActivityPicker.java | 153 String label = labels.get(i); in getItems() local 167 items.add(new PickAdapter.Item(this, label, icon)); in getItems() 216 CharSequence label; field in ActivityPicker.PickAdapter.Item 225 Item(Context context, CharSequence label, Drawable icon) { in Item() argument 226 this.label = label; in Item() 235 label = resolveInfo.loadLabel(pm); in Item() 236 if (label == null && resolveInfo.activityInfo != null) { in Item() 237 label = resolveInfo.activityInfo.name; in Item() 261 intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, label); in getIntent() 267 return label; in getLabel() [all …]
|
D | WallpaperTypeSettings.java | 60 CharSequence label = info.loadLabel(pm); in populateWallpaperTypes() local 61 if (label == null) label = info.activityInfo.packageName; in populateWallpaperTypes() 62 pref.setTitle(label); in populateWallpaperTypes() 80 CharSequence label = info.loadLabel(pm); 81 if (label == null) label = info.activityInfo.packageName; 84 data.title = label.toString();
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ApplicationsState.java | 92 String label; field in ApplicationsState.AppEntry 103 normalizedLabel = normalize(label); in getNormalizedLabel() 128 if (this.label == null || !this.mounted) { in ensureLabel() 131 this.label = info.packageName; in ensureLabel() 134 CharSequence label = info.loadLabel(context.getPackageManager()); in ensureLabel() local 135 this.label = label != null ? label.toString() : info.packageName; in ensureLabel() 174 return sCollator.compare(object1.label, object2.label); 185 return sCollator.compare(object1.label, object2.label); 196 return sCollator.compare(object1.label, object2.label); 207 return sCollator.compare(object1.label, object2.label); [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.java | 90 values.put(LABEL, alarm.label); in createContentValues() 226 public String label; field in Alarm 241 this.label = ""; in Alarm() 253 label = c.getString(LABEL_INDEX); in Alarm() 272 label = p.readString(); in Alarm() 278 if (label == null || label.length() == 0) { in getLabelOrDefault() 281 return label; in getLabelOrDefault() 291 p.writeString(label); in writeToParcel() 323 result.mLabel = label; in createInstanceAfter() 350 ", label='" + label + '\'' + in toString()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactFragment.java | 427 if (TextUtils.isEmpty(entry.label)) { in buildEntries() 428 entry.label = context.getString(R.string.chat).toLowerCase(); in buildEntries() 438 (hasData || !TextUtils.isEmpty(entry.label))) { in buildEntries() 445 && (!hasData || TextUtils.isEmpty(entry.label)); in buildEntries() 450 if (TextUtils.isEmpty(entry.label)) { in buildEntries() 451 entry.label = entry.data; in buildEntries() 558 entry.label = buildActionString(kind, values, false, context); in fromValues() 599 label = entry.label; in collapseWith() 645 public TextView label; field in ContactFragment.ViewCache 680 views.label = (TextView) v.findViewById(android.R.id.text1); in getView() [all …]
|
/packages/apps/InCallUI/src/com/android/incallui/ |
D | CallCardFragment.java | 171 mNumberLabel = (TextView) view.findViewById(R.id.label); in onViewCreated() 406 public void setPrimaryLabel(String label) { in setPrimaryLabel() argument 407 if (!TextUtils.isEmpty(label)) { in setPrimaryLabel() 408 mNumberLabel.setText(label); in setPrimaryLabel() 417 public void setPrimary(String number, String name, boolean nameIsNumber, String label, in setPrimary() argument 431 if (TextUtils.isEmpty(number) && TextUtils.isEmpty(label)) { in setPrimary() 440 setPrimaryLabel(label); in setPrimary() 448 public void setSecondary(boolean show, String name, boolean nameIsNumber, String label, in setSecondary() argument 579 final String label = getView().getContext().getString( in showInternetCallLabel() local 582 mCallTypeLabel.setText(label); in showInternetCallLabel() [all …]
|
D | ContactInfoCache.java | 222 final String label = info.getPhoneLabel(); in onPhoneNumberInfoComplete() local 224 entry.label = label; in onPhoneNumberInfoComplete() 227 mContext.getResources(), type, label); in onPhoneNumberInfoComplete() 228 entry.label = typeStr == null ? null : typeStr.toString(); in onPhoneNumberInfoComplete() 353 String label = null; in populateCacheEntry() local 445 label = info.phoneLabel; in populateCacheEntry() 454 cce.label = label; in populateCacheEntry() 508 public String label; field in ContactInfoCache.ContactCacheEntry 524 .add("label", label) in toString()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
D | trie_map.cpp | 220 const int label = getLabel(hashedKey, level); in getTerminalEntryIndex() local 221 if (!exists(bitmapEntry.getBitmap(), label)) { in getTerminalEntryIndex() 224 const int entryIndex = bitmapEntry.getTableIndex() + popCount(bitmapEntry.getBitmap(), label); in getTerminalEntryIndex() 277 const int label = getLabel(hashedKey, level); in putInternal() local 280 if (!exists(bitmap, label)) { in putInternal() 282 return addNewEntryByExpandingTable(key, value, mapIndex, bitmap, bitmapEntryIndex, label); in putInternal() 284 const int entryIndex = mapIndex + popCount(bitmap, label); in putInternal() 359 const int tableIndex, const uint32_t bitmap, const int bitmapEntryIndex, const int label) { in addNewEntryByExpandingTable() argument 366 const int newEntryIndexInTable = popCount(bitmap, label); in addNewEntryByExpandingTable() 378 if (!writeEntry(Entry(setExist(bitmap, label), newTableIndex), bitmapEntryIndex)) { in addNewEntryByExpandingTable()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | InputsActivity.java | 184 private static Bundle createData(TvInputInfo info, String label) { in createData() argument 186 data.putString(KEY_LABEL, label); in createData() 262 String label = (isChecked) ? defaultLabel : customLabel; 265 .data(createData(info, label)) 266 .description(label) 399 private void saveCustomLabel(String inputId, String label) { 400 if (DEBUG) Log.d(TAG, "Setting " + inputId + " => " + label); 402 if (!TextUtils.isEmpty(label)) { 403 mCustomLabels.put(inputId, label); 426 String label = data.getStringExtra(InputsCustomLabelActivity.KEY_LABEL); [all …]
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
D | CommandRecognizerEngine.java | 260 String label = scrubName(ri.loadLabel(pm).toString()); in loadOpenEntriesTable() local 261 if (label.length() == 0) continue; in loadOpenEntriesTable() 264 addClassName(mOpenEntries, label, in loadOpenEntriesTable() 268 String[] words = label.split(" "); in loadOpenEntriesTable() 327 for (String label : mOpenEntries.keySet()) { in addOpenEntriesToGrammar() 329 String entry = mOpenEntries.get(label); in addOpenEntriesToGrammar() 342 mSrecGrammar.addWordToSlot("@Opens", label, null, 1, "V='" + label + "'"); in addOpenEntriesToGrammar() 353 String label, String packageName, String className) { in addClassName() argument 355 String labelLowerCase = label.toLowerCase(); in addClassName() 1173 String label = ri.loadLabel(pm).toString(); in onRecognitionSuccess() local [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | KeyboardView.java | 616 private CharSequence adjustCase(CharSequence label) { in adjustCase() argument 617 if (mKeyboard.isShifted() && label != null && label.length() < 3 in adjustCase() 618 && Character.isLowerCase(label.charAt(0))) { in adjustCase() 619 label = label.toString().toUpperCase(); in adjustCase() 621 return label; in adjustCase() 722 String label = key.label == null? null : adjustCase(key.label).toString(); in onBufferDraw() local 732 if (label != null) { in onBufferDraw() 734 if (label.length() > 1 && key.codes.length < 2) { in onBufferDraw() 742 if (label.length() > 1 && key.codes.length < 2) { in onBufferDraw() 752 canvas.drawText(label, in onBufferDraw() [all …]
|