Home
last modified time | relevance | path

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

12345

/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()
43 assertEquals(0, group.getUserLockedFields()); in testConstructor()
47 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testIsBlocked() local
[all …]
/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutGroupTest.java55 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL, TEST_ITEMS); in testConstructor() local
57 assertEquals(TEST_LABEL, group.getLabel()); in testConstructor()
58 assertEquals(TEST_ITEMS, group.getItems()); in testConstructor()
59 assertFalse(group.isSystemGroup()); in testConstructor()
60 assertEquals(0, group.describeContents()); in testConstructor()
65 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL); in testShortConstructor() local
67 assertEquals(TEST_LABEL, group.getLabel()); in testShortConstructor()
68 assertNotNull(group.getItems()); in testShortConstructor()
69 assertFalse(group.isSystemGroup()); in testShortConstructor()
70 assertEquals(0, group.describeContents()); in testShortConstructor()
[all …]
DView_FocusHandlingTest.java478 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testHasFocusable() local
481 group.addView(singleView); in testHasFocusable()
485 group.removeView(singleView); in testHasFocusable()
488 group.addView(groupView); in testHasFocusable()
525 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testFocusAfterDescendantsTransfer() local
527 group.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); in testFocusAfterDescendantsTransfer()
528 group.setFocusableInTouchMode(true); in testFocusAfterDescendantsTransfer()
529 group.setKeyboardNavigationCluster(true); in testFocusAfterDescendantsTransfer()
530 group.requestFocus(); in testFocusAfterDescendantsTransfer()
531 assertTrue(group.isFocused()); in testFocusAfterDescendantsTransfer()
[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/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DChange.java81 changeId = Long.parseLong(matcher.group("changeId")); in fromString()
85 changeName = matcher.group("changeName"); in fromString()
86 String sinceSdkAsString = matcher.group("sinceSdk"); in fromString()
94 if (matcher.group("disabled") != null) { in fromString()
97 if (matcher.group("loggingOnly") != null) { in fromString()
100 if (matcher.group("overrides") != null) { in fromString()
102 overridesStr = matcher.group("overrides"); in fromString()
104 if (matcher.group("rawOverrides") != null) { in fromString()
106 rawOverridesStr = matcher.group("rawOverrides"); in fromString()
108 if (matcher.group("overridable") != null) { in fromString()
/cts/tests/tests/contactsprovider/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/lib/common/src/android/signature/cts/
DDexApiDocumentParser.java112 matchField.group(1), matchField.group(2), matchField.group(3), flags); in parseLine()
115 matchMethod.group(1),matchMethod.group(2), matchMethod.group(3), flags); in parseLine()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DVersion.java74 int major = Integer.parseInt(matcher.group(1)); in parse()
75 int minor = Integer.parseInt(matcher.group(2)); in parse()
76 int patch = Integer.parseInt(matcher.group(3)); in parse()
77 String description = matcher.group(4) != null ? matcher.group(4) : ""; in parse()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java175 if (!Objects.equals(expectedPermission.group, declaredPermission.group)) { in platformPermissionPolicyIsUnaltered()
178 + "(expected=" + expectedPermission.group + " actual=" in platformPermissionPolicyIsUnaltered()
179 + declaredPermission.group); in platformPermissionPolicyIsUnaltered()
182 if (declaredPermission.group != null in platformPermissionPolicyIsUnaltered()
183 && !declaredGroupsSet.contains(declaredPermission.group)) { in platformPermissionPolicyIsUnaltered()
185 "Permission group " + expectedPermission.group + " must be defined"); in platformPermissionPolicyIsUnaltered()
451 final @Nullable String group; field in PermissionPolicyTest.ExpectedPermissionInfo
456 private ExpectedPermissionInfo(@NonNull String name, @Nullable String group, in ExpectedPermissionInfo() argument
459 this.group = group; in ExpectedPermissionInfo()
/cts/tests/tests/content/src/android/content/pm/cts/
DFeatureGroupInfoTest.java118 FeatureGroupInfo group = new FeatureGroupInfo(); in createFeatureGroup() local
119 group.features = featureInfos; in createFeatureGroup()
120 return group; in createFeatureGroup()
123 private static void sortFeatureInfos(FeatureGroupInfo[] group) { in sortFeatureInfos() argument
124 for (FeatureGroupInfo g : group) { in sortFeatureInfos()
DPermissionInfoTest.java58 assertEquals(expected.group, actual.group); in checkInfoSame()
/cts/tools/vm-tests-tf/build/src/util/build/
DBuildUtilBase.java152 String res = m.group(1); in parseTestMethod()
158 title = titleM.group(1).replaceAll("\\n \\*", ""); in parseTestMethod()
170 constraint = constraintM.group(1); in parseTestMethod()
220 entries.add((pName + ".d." + result.group(1)).trim()); in parseTestClassName()
226 String res = m.group(1); in parseTestClassName()
234 String res = loadMatcher.group(1); in parseTestClassName()
243 String res = loadAndRunMatcher.group(1); in parseTestClassName()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java70 /*threadname*/ m.group(1), in parseLine()
71 … /*pid*/ (m.group(3) == null || m.group(3).startsWith("-")) ? -1 : Integer.parseInt(m.group(3)), in parseLine()
72 /*tid*/ Integer.parseInt(m.group(2)), in parseLine()
73 /*eventName*/ m.group(6), in parseLine()
74 /*details*/ m.group(7)); in parseLine()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/
DMimeGroupAssertions.java90 public void assertMatchedByMimeGroup(String group, String type) { in notUsed()
95 public void assertNotMatchedByMimeGroup(String group, String type) { in notUsed() argument
100 public void assertMimeGroupInternal(String group, Set<String> types) { in notUsed() argument
/cts/hostsidetests/incident/src/com/android/server/cts/
DPackageIncidentTest.java60 final int uid = Integer.parseInt(matcher.group(1)); in testPackageServiceDump()
61 final int versionCode = Integer.parseInt(matcher.group(2)); in testPackageServiceDump()
62 final String versionString = matcher.group(3).trim(); in testPackageServiceDump()
/cts/tests/tests/car/src/android/car/cts/
DCarWatchdogDaemonTest.java201 if (Integer.valueOf(m.group(1), 10) != userId || in parseDump()
202 !String.valueOf(m.group(2)).equals(packageName)) { in parseDump()
205 writtenBytes += Integer.valueOf(m.group(3), 10); in parseDump()
206 writtenBytes += Integer.valueOf(m.group(5), 10); in parseDump()
/cts/hostsidetests/car/src/android/car/cts/
DCarHostJUnit4TestCase.java293 matcher -> Integer.parseInt(matcher.group(1)), in createUser()
392 int userId = Integer.parseInt(matcher.group(1)); in removeUsers()
393 String name = matcher.group(2); in removeUsers()
530 id = Integer.parseInt(matcher.group(USER_PATTERN_GROUP_ID));
531 flags = matcher.group(USER_PATTERN_GROUP_FLAGS);
532 name = matcher.group(USER_PATTERN_GROUP_NAME);
533 otherState = matcher.group(USER_PATTERN_GROUP_OTHER_STATE);
/cts/tests/tests/media/src/android/media/cts/
DMediaRouterTest.java450 RouteGroup group = groupableRoute0.getGroup(); in testCallback() local
452 assertEquals(group, callback.mAddedRoute); in testCallback()
456 assertEquals(group, callback.mGroup); in testCallback()
466 group.addRoute(groupableRoute1); in testCallback()
479 group.removeRoute(groupableRoute1); in testCallback()
483 assertEquals(group, callback.mChangedRoute); in testCallback()
492 group.removeRoute(0); in testCallback()
496 assertEquals(group, callback.mRemovedRoute); in testCallback()
688 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped() argument
692 mGroup = group; in onRouteGrouped()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DConnectReqTestCase.java224 WifiP2pGroup group = mReceiverTest.getWifiP2pGroup(); in connectTest() local
225 if (group != null) { in connectTest()
226 if (!group.isGroupOwner()) { in connectTest()
227 setTargetAddress(group.getOwner().deviceAddress); in connectTest()
/cts/hostsidetests/edi/src/android/edi/cts/
DPropertyDeviceInfo.java67 String name = matcher.group(1); in parseProps()
68 String value = matcher.group(2); in parseProps()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DMultiDisplayTestBase.java247 log(matcher.group()); in ReportedDisplayMetrics()
249 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics()
253 log(matcher.group()); in ReportedDisplayMetrics()
254 physicalDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics()
258 log(matcher.group()); in ReportedDisplayMetrics()
260 Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2))); in ReportedDisplayMetrics()
267 log(matcher.group()); in ReportedDisplayMetrics()
268 overrideDensity = Integer.parseInt(matcher.group(1)); in ReportedDisplayMetrics()
369 mInitialIgnoreOrientationRequest = Boolean.parseBoolean(matcher.group(1)); in LetterboxAspectRatioSession()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DConcurrencyTest.java84 public WifiP2pGroup group = new WifiP2pGroup(); field in ConcurrencyTest.MyResponse
279 responseObj.group = null; in resetResponse()
313 for (WifiP2pGroup group: persistentGroups.getGroupList()) { in removeAllPersistentGroups()
317 group.getNetworkId(), in removeAllPersistentGroups()
537 public void onGroupInfoAvailable(WifiP2pGroup group) { in testRequestNetworkInfo()
539 mMyResponse.group = new WifiP2pGroup(group); in testRequestNetworkInfo()
546 assertNotNull(mMyResponse.group); in testRequestNetworkInfo()
547 assertNotEquals(0, mMyResponse.group.getFrequency()); in testRequestNetworkInfo()
548 assertTrue(mMyResponse.group.getNetworkId() >= 0); in testRequestNetworkInfo()
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java367 final File group = new File(context.getCacheDir(), "group"); in testCacheBehavior() local
377 group.mkdir(); in testCacheBehavior()
380 sm.setCacheBehaviorGroup(group, true); in testCacheBehavior()
387 final File d = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
388 final File e = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
389 final File f = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
396 group.setLastModified(groupTime); in testCacheBehavior()
399 final long clear1 = group.getUsableSpace() + (8 * MB_IN_BYTES); in testCacheBehavior()
410 assertFalse(group.exists()); in testCacheBehavior()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyActivity.java129 ViewGroup group = (ViewGroup)findViewById(layoutId); in enableLayout() local
130 for (int i = 0; i < group.getChildCount(); i++) { in enableLayout()
131 group.getChildAt(i).setEnabled(enable); in enableLayout()
/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()

12345