Home
last modified time | relevance | path

Searched refs:category (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceParentGroupTest.java66 PreferenceCategory category = new PreferenceCategory(mActivity); in parentViaCodeTest() local
67 assertNull(category.getParent()); in parentViaCodeTest()
72 screen.addPreference(category); in parentViaCodeTest()
73 assertEquals(screen, category.getParent()); in parentViaCodeTest()
75 category.addPreference(pref); in parentViaCodeTest()
76 assertEquals(category, pref.getParent()); in parentViaCodeTest()
78 screen.removePreference(category); in parentViaCodeTest()
79 assertNull(category.getParent()); in parentViaCodeTest()
81 category.removePreference(pref); in parentViaCodeTest()
94 PreferenceCategory category = (PreferenceCategory) screen.findPreference("pref_category"); in parentViaInflationTest() local
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DGL2JniLibOne.java24 public static native void init(int category, int subcategory, int width, int height); in init() argument
26 public static native float[] draw(int category, int subcategory, float[] color); in draw() argument
DOpenGLES20NativeActivityOne.java91 public OpenGLES20View(Context context, int category, int testCase, CountDownLatch latch) { in OpenGLES20View() argument
94 mRenderer = new GL2Renderer(category, testCase, latch); in OpenGLES20View()
117 public GL2Renderer(int category, int testcase, CountDownLatch latch) { in GL2Renderer() argument
118 this.mCategory = category; in GL2Renderer()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityMetricsLoggerTests.java150 int category, LogMaker log, long preUptimeMs, long postUptimeMs) { in assertMetricsLogs() argument
152 + " category:" + categoryToString(category), log); in assertMetricsLogs()
472 private LogMaker waitForMetricsLog(ComponentName componentName, int category) { in waitForMetricsLog() argument
473 final String categoryName = categoryToString(category); in waitForMetricsLog()
476 .setResultSupplier(() -> getMetricsLog(componentName, category)) in waitForMetricsLog()
484 final LogMaker template = new LogMaker(category); in waitForMetricsLog()
498 private LogMaker getMetricsLog(ComponentName componentName, int category) { in getMetricsLog() argument
500 new LogMaker(category)); in getMetricsLog()
512 private static String categoryToString(int category) { in categoryToString() argument
513 return (category == APP_TRANSITION ? "APP_TRANSITION" in categoryToString()
[all …]
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/data/
DVideoProvider.java65 private static Movie buildMovieInfo(String category, in buildMovieInfo() argument
75 movie.setCategory(category); in buildMovieInfo()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/model/
DMovie.java92 public void setCategory(String category) { in setCategory() argument
93 mCategory = category; in setCategory()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java120 for (String category : categories) { in testCategories()
121 int dashIndex = category.indexOf("-"); in testCategories()
124 category = category.substring(0, dashIndex).trim(); in testCategories()
126 requiredCategories.remove(category); in testCategories()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/collections/
DQueryableIntentFilterHashSetTest.java53 private static IntentFilter createIntentFilter(String action, String category) { in createIntentFilter() argument
55 i.addCategory(category); in createIntentFilter()
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayInfoTest.java108 assertEquals(info.category, copyInfo.category); in testWriteToParcel()
/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/
DIntentFilterQueryHelperTest.java60 for (String category : categories) { in createIntentFilter()
61 filter.addCategory(category); in createIntentFilter()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsProvider.java172 int category = -1; in getInstruction() local
180 category = options.getInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, -1); in getInstruction()
216 if (category == AppWidgetProviderInfo.WIDGET_CATEGORY_KEYGUARD) { in getInstruction()
218 } else if (category == AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN) { in getInstruction()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetPayloadToggleActionActivity.java112 String category = in share() local
114 sendIntent.addCategory(category); in share()
DSharesheetPayloadToggleActivity.java240 String category = in share() local
242 sendIntent.addCategory(category); in share()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsUsageMonitorShortCodeTest.java50 final int category; field in SmsUsageMonitorShortCodeTest.ShortCodeTest
52 ShortCodeTest(String countryIso, String destAddress, int category) { in ShortCodeTest() argument
55 this.category = category; in ShortCodeTest()
706 if (test.category != SMS_CATEGORY_NOT_SHORT_CODE in testSmsShortCodeDestination()
711 test.category, SmsManager.getDefault().checkSmsShortCodeDestination( in testSmsShortCodeDestination()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DEphemeralTest.java543 String action, String category, String mimeType) { in makeArgs() argument
549 if (category != null && category.length() > 0) { in makeArgs()
550 testArgs.put("category", category); in makeArgs()
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfoTest.java185 assertEquals(CATEGORY_PRODUCTIVITY, applicationInfo.category); in verifyOwnInfo()
229 assertEquals(CATEGORY_UNDEFINED, applicationInfo.category); in verifyDefaultValues()
260 assertEquals(CATEGORY_ACCESSIBILITY, applicationInfo.category); in testDirectBootUnawareAppCategoryIsAccessibility()
268 assertEquals(CATEGORY_UNDEFINED, applicationInfo.category); in testDefaultAppCategoryIsUndefined()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppProvider.java205 for (String category : filterProto.getCategoriesList()) { in intentFilterFromProto()
206 filter.addCategory(category); in intentFilterFromProto()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionTest.kt142 assertEquals(CATEGORY_UNDEFINED, pm.getApplicationInfo(TEST_APK_PACKAGE_NAME, 0).category) in setAppCategory()
147 assertEquals(CATEGORY_MAPS, pm.getApplicationInfo(TEST_APK_PACKAGE_NAME, 0).category) in setAppCategory()
/cts/tests/framework/base/windowmanager/src/android/server/wm/multidisplay/
DMultiDisplaySystemDecorationTests.java360 private void sendHomeIntentToDisplay(String category, int displayId) { in sendHomeIntentToDisplay() argument
361 Intent homeIntent = createHomeIntent(category); in sendHomeIntentToDisplay()
/cts/common/device-side/bedstead/testapp/tools/index/
Dindex_testapps.py222 category = category_element.attributes["name"]
223 intent_filter.categories.append(category)
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveNotificationAppHidingTest.kt82 category: String = CATEGORY_MESSAGE, in <lambda>()
92 nb.setCategory(category) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1205 final String category = testArgs.getString("category"); in testExposedActivity() local
1208 final Intent queryIntent = makeIntent(action, category, mimeType); in testExposedActivity()
1487 private static Intent makeIntent(String action, String category, String mimeType) { in makeIntent() argument
1489 if (category != null) { in makeIntent()
1490 intent.addCategory(category); in makeIntent()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DSensitiveNotificationRedactionTest.kt100 category: String = CATEGORY_MESSAGE, in sendNotification()
118 nb.setCategory(category) in sendNotification()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java339 assertEquals(ApplicationInfo.CATEGORY_VIDEO, a.category); in testVerifyCategory()
340 assertEquals(ApplicationInfo.CATEGORY_UNDEFINED, b.category); in testVerifyCategory()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java807 protected Intent createHomeIntent(String category) { in createHomeIntent() argument
811 intent.addCategory(category); in createHomeIntent()

12