Home
last modified time | relevance | path

Searched refs:group (Results 1 – 25 of 80) sorted by relevance

1234

/cts/tests/app/src/android/app/cts/
DNotificationChannelGroupTest.java32 NotificationChannelGroup group = new NotificationChannelGroup("1", "1"); in testDescribeContents() local
33 assertEquals(expected, group.describeContents()); in testDescribeContents()
37 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testConstructor() local
38 assertEquals("1", group.getId()); in testConstructor()
39 assertEquals("one", group.getName()); in testConstructor()
40 assertFalse(group.isBlocked()); in testConstructor()
41 assertNull(group.getDescription()); in testConstructor()
42 assertEquals(0, group.getChannels().size()); in testConstructor()
46 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testIsBlocked() local
47 group.setBlocked(true); in testIsBlocked()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutGroupTest.java54 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL, TEST_ITEMS); in testConstructor() local
56 assertEquals(TEST_LABEL, group.getLabel()); in testConstructor()
57 assertEquals(TEST_ITEMS, group.getItems()); in testConstructor()
58 assertFalse(group.isSystemGroup()); in testConstructor()
59 assertEquals(0, group.describeContents()); in testConstructor()
64 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL); in testShortConstructor() local
66 assertEquals(TEST_LABEL, group.getLabel()); in testShortConstructor()
67 assertNotNull(group.getItems()); in testShortConstructor()
68 assertFalse(group.isSystemGroup()); in testShortConstructor()
69 assertEquals(0, group.describeContents()); in testShortConstructor()
[all …]
DView_FocusHandlingTest.java477 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testHasFocusable() local
480 group.addView(singleView); in testHasFocusable()
484 group.removeView(singleView); in testHasFocusable()
487 group.addView(groupView); in testHasFocusable()
524 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testFocusAfterDescendantsTransfer() local
526 group.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); in testFocusAfterDescendantsTransfer()
527 group.setFocusableInTouchMode(true); in testFocusAfterDescendantsTransfer()
528 group.setKeyboardNavigationCluster(true); in testFocusAfterDescendantsTransfer()
529 group.requestFocus(); in testFocusAfterDescendantsTransfer()
530 assertTrue(group.isFocused()); in testFocusAfterDescendantsTransfer()
[all …]
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java77 /*threadname*/ m.group(1), in parseLine()
78 /*pid*/ m.group(3).startsWith("-") ? -1 : Integer.parseInt(m.group(3)), in parseLine()
79 /*tid*/ Integer.parseInt(m.group(2)), in parseLine()
80 /*eventName*/ m.group(6), in parseLine()
81 /*details*/ m.group(7)); in parseLine()
88 /*threadname*/ m.group(1), in parseLine()
90 /*tid*/ Integer.parseInt(m.group(2)), in parseLine()
91 /*eventName*/ m.group(5), in parseLine()
92 /*details*/ m.group(6)); in parseLine()
99 /*threadname*/ m.group(1), in parseLine()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DScriptGroupTest.java43 ScriptGroup group; in testScriptGroupSingleKernel() local
63 group = b.create(); in testScriptGroupSingleKernel()
65 group.setInput(mColorMatrix.getKernelID(), a1_copy); in testScriptGroupSingleKernel()
66 group.setOutput(mColorMatrix.getKernelID(), a2_copy); in testScriptGroupSingleKernel()
68 group.execute(); in testScriptGroupSingleKernel()
73 group.destroy(); in testScriptGroupSingleKernel()
77 ScriptGroup group = null; in testScriptGroupDisconnectedKernel() local
102 group = b.create(); in testScriptGroupDisconnectedKernel()
112 if (group != null) { in testScriptGroupDisconnectedKernel()
113 group.destroy(); in testScriptGroupDisconnectedKernel()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_GroupMembershipTest.java52 TestGroup group = mBuilder.newGroup().insert(); in testAddGroupMembershipWithGroupRowId() local
54 .with(GroupMembership.GROUP_ROW_ID, group.getId()) in testAddGroupMembershipWithGroupRowId()
59 groupMembership.assertColumn(GroupMembership.GROUP_ROW_ID, group.getId()); in testAddGroupMembershipWithGroupRowId()
67 TestGroup group = mBuilder.newGroup() in testAddGroupMembershipWithGroupSourceId() local
79 groupMembership.assertColumn(GroupMembership.GROUP_ROW_ID, group.getId()); in testAddGroupMembershipWithGroupSourceId()
90 TestGroup group = mBuilder.newGroup() in testAddGroupMembershipWithUnknownGroupSourceId() local
100 groupMembership.assertColumn(GroupMembership.GROUP_ROW_ID, group.getId()); in testAddGroupMembershipWithUnknownGroupSourceId()
102 group.deletePermanently(); in testAddGroupMembershipWithUnknownGroupSourceId()
/cts/tests/signature/src/android/signature/cts/
DDexApiDocumentParser.java134 matchField.group(1), matchField.group(2), matchField.group(3)); in next()
137 matchMethod.group(1),matchMethod.group(2), matchMethod.group(3)); in next()
DDexMethod.java63 return matchSignature(signature).group(2); in parseDexReturnType()
67 String typeSequence = matchSignature(signature).group(1); in parseDexTypeList()
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureGroupInfoTest.java116 FeatureGroupInfo group = new FeatureGroupInfo(); in createFeatureGroup() local
117 group.features = featureInfos; in createFeatureGroup()
118 return group; in createFeatureGroup()
121 private static void sortFeatureInfos(FeatureGroupInfo[] group) { in sortFeatureInfos() argument
122 for (FeatureGroupInfo g : group) { in sortFeatureInfos()
DPermissionInfoTest.java56 assertEquals(expected.group, actual.group); in checkInfoSame()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java107 expectedPermissionGroups.add(expectedPermission.group); in testPlatformPermissionPolicyUnaltered()
135 if (!expectedPermission.group.equals(declaredPermission.group)) { in testPlatformPermissionPolicyUnaltered()
138 + "(expected=" + expectedPermission.group + " actual=" in testPlatformPermissionPolicyUnaltered()
139 + declaredPermission.group); in testPlatformPermissionPolicyUnaltered()
142 if (!declaredGroupsSet.contains(declaredPermission.group)) { in testPlatformPermissionPolicyUnaltered()
144 "Permission group " + expectedPermission.group + " must be defined"); in testPlatformPermissionPolicyUnaltered()
207 permissionInfo.group = parser.getAttributeValue(null, ATTR_PERMISSION_GROUP); in loadExpectedPermissions()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerDisplayTestBase.java181 log(matcher.group()); in ReportedDisplayMetrics()
183 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics()
187 log(matcher.group()); in ReportedDisplayMetrics()
188 physicalDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics()
192 log(matcher.group()); in ReportedDisplayMetrics()
194 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics()
201 log(matcher.group()); in ReportedDisplayMetrics()
202 overrideDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics()
DVirtualDisplayHelper.java126 ? m -> m.group(0).contains("FLAG_DEFAULT_DISPLAY") in getDisplayState()
127 : m -> m.group(1).equals(VIRTUAL_DISPLAY_NAME); in getDisplayState()
131 return "ON".equals(matcher.group(2)); in getDisplayState()
DActivityManagerAmStartOptionsTests.java137 status = matcher.group(1); in verifyShellOutput()
142 reportedActivity = matcher.group(1); in verifyShellOutput()
DActivityManagerConfigChangeTests.java202 final String assetSeqNumber = matcher.group(3); in readAssetSeqNumber()
229 return Integer.parseInt(matcher.group(2)); in getActivityDensityDpi()
247 Integer.parseInt(matcher.group(2))); in assertExpectedFontPixelSize()
/cts/tests/tests/hardware/src/android/hardware/cts/
DGlUtils.java51 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in getVersion()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPropertyDeviceInfo.java55 String name = matcher.group(1); in collectRoProperties()
56 String value = matcher.group(2); in collectRoProperties()
/cts/hostsidetests/incident/src/com/android/server/cts/
DPackageIncidentTest.java59 final int uid = Integer.parseInt(matcher.group(1)); in testPackageServiceDump()
60 final int versionCode = Integer.parseInt(matcher.group(2)); in testPackageServiceDump()
61 final String versionString = matcher.group(3).trim(); in testPackageServiceDump()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java333 final File group = new File(context.getCacheDir(), "group"); in testCacheBehavior() local
343 group.mkdir(); in testCacheBehavior()
346 sm.setCacheBehaviorGroup(group, true); in testCacheBehavior()
353 final File d = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
354 final File e = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
355 final File f = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
362 group.setLastModified(groupTime); in testCacheBehavior()
365 final long clear1 = group.getUsableSpace() + (8 * MB_IN_BYTES); in testCacheBehavior()
376 assertFalse(group.exists()); in testCacheBehavior()
/cts/tests/tests/media/src/android/media/cts/
DMediaRouterTest.java449 RouteGroup group = groupableRoute0.getGroup(); in testCallback() local
451 assertEquals(group, callback.mAddedRoute); in testCallback()
455 assertEquals(group, callback.mGroup); in testCallback()
465 group.addRoute(groupableRoute1); in testCallback()
478 group.removeRoute(groupableRoute1); in testCallback()
482 assertEquals(group, callback.mChangedRoute); in testCallback()
491 group.removeRoute(0); in testCallback()
495 assertEquals(group, callback.mRemovedRoute); in testCallback()
687 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped() argument
691 mGroup = group; in onRouteGrouped()
[all …]
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
DRunAsHostTest.java41 String appIdString = appIdMatcher.group(1); in testRunAs()
/cts/tests/tests/widget/src/android/widget/cts/util/
DExpandableListScenario.java206 final int group = ExpandableListView.getPackedPositionGroup(packedPosition); in isOutOfBounds() local
207 if (group >= mGroups.size() || group < 0) { in isOutOfBounds()
213 if (child >= mGroups.get(group).children.size() || child < 0) { in isOutOfBounds()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPropertyUtil.java100 String name = matcher.group(1); in getClientIds()
101 String value = matcher.group(2); in getClientIds()
/cts/suite/audio_quality/test_description/conf/
Ddetect_usb_audio.py44 print "___CTS_AUDIO_PASS___ " + line + " " + m.group(1)
/cts/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java72 return matcher.group(1); in setBackupTransport()
84 previouslyEnabled = "enabled".equals(matcher.group(1)); in setBackupEnabled()

1234