Home
last modified time | relevance | path

Searched refs:labels (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java115 ArrayList<String> labels = new ArrayList<String>(); in testStopTimingNoWriter() local
116 labels.add("timing2"); in testStopTimingNoWriter()
117 labels.add("timing3"); in testStopTimingNoWriter()
118 labels.add("timing4"); in testStopTimingNoWriter()
119 verifyTimingBundle(timing, labels); in testStopTimingNoWriter()
187 ArrayList<String> labels = new ArrayList<String>(); in testStopTiming() local
188 labels.add("timing6"); in testStopTiming()
189 labels.add("timing7"); in testStopTiming()
190 labels.add("timing8"); in testStopTiming()
191 verifyTimingBundle(timing, labels); in testStopTiming()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DOverflowMenuAdapterTest.kt34 val labels = listOf("first", "second") in <lambda>() constant
39 labels.zip(ids).map { OverflowMenuAdapter.MenuItem(it.first, it.second) } in <lambda>()
50 val labels = listOf("first", "second") in <lambda>() constant
55 labels.zip(ids).map { OverflowMenuAdapter.MenuItem(it.first, it.second) } in <lambda>()
/frameworks/native/libs/input/
DInputEventLabels.cpp522 std::string getLabel(const label* labels, int value) { in getLabel() argument
523 if (labels == nullptr) return std::to_string(value); in getLabel()
524 while (labels->name != nullptr && value != labels->value) { in getLabel()
525 labels++; in getLabel()
527 return labels->name != nullptr ? labels->name : std::to_string(value); in getLabel()
530 std::optional<int> getValue(const label* labels, const char* searchLabel) { in getValue() argument
531 if (labels == nullptr) return {}; in getValue()
532 while (labels->name != nullptr && ::strcasecmp(labels->name, searchLabel) != 0) { in getValue()
533 labels++; in getValue()
535 return labels->name != nullptr ? std::make_optional(labels->value) : std::nullopt; in getValue()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfButtonsTest.java103 String[] labels = getActivity().getLabels(); in TODO_testNavigateThroughAllButtonsAndBack() local
104 for (int i = 0; i < labels.length; i++) { in TODO_testNavigateThroughAllButtonsAndBack()
105 String label = labels[i]; in TODO_testNavigateThroughAllButtonsAndBack()
123 for (int i = labels.length - 1; i >= 0; i--) { in TODO_testNavigateThroughAllButtonsAndBack()
124 String label = labels[i]; in TODO_testNavigateThroughAllButtonsAndBack()
DListOfButtons.java57 public MyAdapter(Context context, String[] labels) { in MyAdapter() argument
58 super(context, 0, labels); in MyAdapter()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DTestActivity.java57 String[] labels = new String[mTests.length]; in onCreate() local
59 labels[i] = mTests[i].name; in onCreate()
62 setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, labels)); in onCreate()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DColorGrid.kt54 val labels = arrayOf("sRGB", "Display P3", "BT2020_PQ", "scRGB(max)") in onDraw() constant
62 for (colIndex in labels.indices) { in onDraw()
67 canvas.drawText(labels[colIndex], 0f, 1f, paint) in onDraw()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationUtils.java125 int labels = 1; in isValidDomain() local
135 labels += 1; in isValidDomain()
144 return labels > 1; in isValidDomain()
/frameworks/base/core/java/android/provider/
DContacts.java958 CharSequence[] labels = labelArray != null? labelArray in getDisplayLabel() local
962 display = labels[type - 1]; in getDisplayLabel()
964 display = labels[People.Phones.TYPE_HOME - 1]; in getDisplayLabel()
1396 CharSequence[] labels = context.getResources().getTextArray( in getDisplayLabel() local
1399 display = labels[type - 1]; in getDisplayLabel()
1401 display = labels[ContactMethods.TYPE_HOME - 1]; in getDisplayLabel()
1413 CharSequence[] labels = context.getResources().getTextArray( in getDisplayLabel() local
1416 display = labels[type - 1]; in getDisplayLabel()
1418 display = labels[ContactMethods.TYPE_HOME - 1]; in getDisplayLabel()
1760 CharSequence[] labels = context.getResources().getTextArray( in getDisplayLabel() local
[all …]
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DStaticInitMethodAdapter.java257 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { in visitLookupSwitchInsn() argument
259 mRenamedMethodWriter.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn()
271 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { in visitTableSwitchInsn() argument
273 mRenamedMethodWriter.visitTableSwitchInsn(min, max, dflt, labels); in visitTableSwitchInsn()
DStubCallMethodAdapter.java349 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { in visitLookupSwitchInsn() argument
351 mParentVisitor.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn()
363 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { in visitTableSwitchInsn() argument
365 mParentVisitor.visitTableSwitchInsn(min, max, dflt, labels); in visitTableSwitchInsn()
DDelegateMethodAdapter.java451 public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) { in visitLookupSwitchInsn() argument
453 mOrgWriter.visitLookupSwitchInsn(dflt, keys, labels); in visitLookupSwitchInsn()
465 public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) { in visitTableSwitchInsn() argument
467 mOrgWriter.visitTableSwitchInsn(min, max, dflt, labels); in visitTableSwitchInsn()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/visitors/
DBodyReplacingMethodVisitor.kt256 vararg labels: Label? in visitTableSwitchInsn()
259 super.visitTableSwitchInsn(min, max, dflt, *labels) in visitTableSwitchInsn()
266 labels: Array<out Label>? in visitLookupSwitchInsn()
269 super.visitLookupSwitchInsn(dflt, keys, labels) in visitLookupSwitchInsn()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneData.java266 String[] labels = resources.getStringArray(R.array.timezone_rename_labels); in populateDisplayNameOverrides() local
269 if (ids.length != labels.length) { in populateDisplayNameOverrides()
271 + labels.length); in populateDisplayNameOverrides()
272 length = Math.min(ids.length, labels.length); in populateDisplayNameOverrides()
278 tzi.mDisplayName = labels[i]; in populateDisplayNameOverrides()
280 Log.e(TAG, "Could not find timezone with label: "+labels[i]); in populateDisplayNameOverrides()
/frameworks/base/media/java/android/media/
DAudioPresentation.java202 @NonNull Map<ULocale, String> labels) { in AudioPresentation() argument
210 mLabels = new HashMap<ULocale, String>(labels); in AudioPresentation()
423 public @NonNull Builder setLabels(@NonNull Map<ULocale, CharSequence> labels) { in setLabels() argument
425 for (Map.Entry<ULocale, CharSequence> entry : labels.entrySet()) { in setLabels()
/frameworks/av/media/module/service.mediatranscoding/
D.clang-format26 # There is nothing in go/droidcppstyle about case labels, but there seems to be
27 # more code that does not indent the case labels in frameworks/base.
/frameworks/av/services/tuner/
D.clang-format26 # There is nothing in go/droidcppstyle about case labels, but there seems to be
27 # more code that does not indent the case labels in frameworks/base.
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DFloatExpression.java124 String[] labels = new String[mSrcValue.length]; in toString() local
127 labels[i] = "[" + Utils.idFromNan(mSrcValue[i]) + "]"; in toString()
132 + AnimatedFloatExpression.toString(mPreCalcValue, labels) + ")"; in toString()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java188 String[] labels = new String[mTests.length]; in onCreate() local
190 labels[i] = mTests[i].name; in onCreate()
193 setListAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, labels)); in onCreate()
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DLabelsActivity.java27 setContentView(R.layout.labels); in onCreate()
/frameworks/base/media/jni/
Dandroid_media_AudioPresentation.h118 for (const auto& md : tap.preselection.labels) { in addPresentations()
161 JNIEnv *env, const fields_t& fields, const std::map<std::string, std::string> &labels) { in convertLabelsToMap()
169 for (const auto& label : labels) { in convertLabelsToMap()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsProcessor.java326 List<String> labels = new ArrayList<>(); in concatLabels() local
329 labels.add(config[state].getName() in concatLabels()
333 Collections.sort(labels); in concatLabels()
334 return labels.toString(); in concatLabels()
/frameworks/av/media/module/libmediatranscoding/
D.clang-format42 # There is nothing in go/droidcppstyle about case labels, but there seems to be
43 # more code that does not indent the case labels in frameworks/base.
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeDetails.java177 @Nullable int[] labels, int maxAllowedPerParent, in UserTypeDetails() argument
202 this.mLabels = labels; in UserTypeDetails()
518 public Builder setLabels(@StringRes int ... labels) { in setLabels() argument
519 mLabels = labels; in setLabels()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java220 CharSequence[] labels = new CharSequence[ICONS.length]; in setupIcons() local
234 labels[i] = builder; in setupIcons()
237 icon.setEntries(labels); in setupIcons()

12