Home
last modified time | relevance | path

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

123

/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutGroupTest.java50 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL, TEST_ITEMS); in testConstructor() local
52 assertEquals(TEST_LABEL, group.getLabel()); in testConstructor()
53 assertEquals(TEST_ITEMS, group.getItems()); in testConstructor()
54 assertFalse(group.isSystemGroup()); in testConstructor()
55 assertEquals(0, group.describeContents()); in testConstructor()
60 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL); in testShortConstructor() local
62 assertEquals(TEST_LABEL, group.getLabel()); in testShortConstructor()
63 assertNotNull(group.getItems()); in testShortConstructor()
64 assertFalse(group.isSystemGroup()); in testShortConstructor()
65 assertEquals(0, group.describeContents()); in testShortConstructor()
[all …]
DView_FocusHandlingTest.java290 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testHasFocusable() local
293 group.addView(singleView); in testHasFocusable()
297 group.removeView(singleView); in testHasFocusable()
300 group.addView(groupView); in testHasFocusable()
377 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testFocusAfterDescendantsTransfer() local
379 group.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); in testFocusAfterDescendantsTransfer()
380 group.setFocusableInTouchMode(true); in testFocusAfterDescendantsTransfer()
381 group.setKeyboardNavigationCluster(true); in testFocusAfterDescendantsTransfer()
382 group.requestFocus(); in testFocusAfterDescendantsTransfer()
383 assertTrue(group.isFocused()); in testFocusAfterDescendantsTransfer()
[all …]
/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()
43 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testWriteToParcel() local
45 group.writeToParcel(parcel, 0); in testWriteToParcel()
49 assertEquals(group, fromParcel); in testWriteToParcel()
53 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testClone() local
54 NotificationChannelGroup cloned = group.clone(); in testClone()
/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/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/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
DWindowManagerState.java235 final String focusedWindow = matcher.group(3); in parseSysDump()
244 final String focusedWindow = matcher.group(3); in parseSysDump()
253 final String focusedWindow = matcher.group(3); in parseSysDump()
262 final String focusedApp = matcher.group(5); in parseSysDump()
271 final String appTransitionState = matcher.group(1); in parseSysDump()
280 final String lastAppTransitionPattern = matcher.group(1); in parseSysDump()
289 int left = Integer.parseInt(matcher.group(1)); in parseSysDump()
290 int top = Integer.parseInt(matcher.group(2)); in parseSysDump()
291 int right = Integer.parseInt(matcher.group(3)); in parseSysDump()
292 int bottom = Integer.parseInt(matcher.group(4)); in parseSysDump()
[all …]
DActivityManagerState.java167 final String stackId = matcher.group(2); in parseSysDump()
176 mResumedActivityRecord = matcher.group(3); in parseSysDump()
184 final String displayId = matcher.group(1); in parseSysDump()
412 final String stackId = matcher.group(1); in create()
450 mResumedActivity = matcher.group(3); in extract()
542 final String taskId = matcher.group(1); in create()
582 final String stackId = matcher.group(6); in extract()
598 mRealActivity = matcher.group(1); in extract()
608 mOrigActivity = matcher.group(1); in extract()
617 mTaskType = Integer.valueOf(matcher.group(4)); in extract()
[all …]
DActivityManagerTestBase.java597 final String state = matcher.group(1); in isDisplayOn()
685 final String match = matcher.group(7); in getDeviceRotation()
1016 details.widthDp = Integer.parseInt(matcher.group(2)); in readLastReportedSizes()
1017 details.heightDp = Integer.parseInt(matcher.group(3)); in readLastReportedSizes()
1018 details.displayWidth = Integer.parseInt(matcher.group(4)); in readLastReportedSizes()
1019 details.displayHeight = Integer.parseInt(matcher.group(5)); in readLastReportedSizes()
1020 details.metricsWidth = Integer.parseInt(matcher.group(6)); in readLastReportedSizes()
1021 details.metricsHeight = Integer.parseInt(matcher.group(7)); in readLastReportedSizes()
1022 details.smallestWidthDp = Integer.parseInt(matcher.group(8)); in readLastReportedSizes()
1023 details.densityDpi = Integer.parseInt(matcher.group(9)); in readLastReportedSizes()
[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/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java80 expectedPermissionGroups.add(expectedPermission.group); in testPlatformPermissionPolicyUnaltered()
101 expectedPermission.group, declaredPermission.group); in testPlatformPermissionPolicyUnaltered()
102 assertTrue("Permission group " + expectedPermission.group + "must be defined", in testPlatformPermissionPolicyUnaltered()
103 declaredGroupsSet.contains(declaredPermission.group)); in testPlatformPermissionPolicyUnaltered()
150 permissionInfo.group = parser.getAttributeValue(null, ATTR_PERMISSION_GROUP); in loadExpectedPermissions()
/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/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/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/services/activityandwindowmanager/activitymanager/src/android/server/cts/
DActivityManagerConfigChangeTests.java176 final String assetSeqNumber = matcher.group(3); in readAssetSeqNumber()
208 switch (matcher.group(1)) { in getGlobalDensityDpi()
217 return Integer.parseInt(matcher.group(1)); in getGlobalDensityDpi()
231 Integer.parseInt(matcher.group(2))); in assertExpectedFontPixelSize()
DActivityManagerAmStartOptionsTests.java129 status = matcher.group(1); in verifyShellOutput()
134 reportedActivity = matcher.group(1); in verifyShellOutput()
163 activityName = matcher.group(2); in verifyLogcat()
/cts/tests/tests/media/src/android/media/cts/
DMediaRouterTest.java456 RouteGroup group = groupableRoute0.getGroup(); in testCallback() local
458 assertEquals(group, callback.mAddedRoute); in testCallback()
462 assertEquals(group, callback.mGroup); in testCallback()
472 group.addRoute(groupableRoute1); in testCallback()
485 group.removeRoute(groupableRoute1); in testCallback()
489 assertEquals(group, callback.mChangedRoute); in testCallback()
498 group.removeRoute(0); in testCallback()
502 assertEquals(group, callback.mRemovedRoute); in testCallback()
694 public void onRouteGrouped(MediaRouter router, RouteInfo info, RouteGroup group, in onRouteGrouped() argument
698 mGroup = group; in onRouteGrouped()
[all …]
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java329 final File group = new File(context.getCacheDir(), "group"); in testCacheBehavior() local
339 group.mkdir(); in testCacheBehavior()
342 sm.setCacheBehaviorGroup(group, true); in testCacheBehavior()
349 final File d = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
350 final File e = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
351 final File f = useFallocate(makeUniqueFile(group), size, groupTime); in testCacheBehavior()
358 group.setLastModified(groupTime); in testCacheBehavior()
361 final long clear1 = group.getUsableSpace() + (8 * MB_IN_BYTES); in testCacheBehavior()
372 assertFalse(group.exists()); in testCacheBehavior()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DCollectorUtil.java63 String fileName = m.group(1); in pullFromDevice()
151 String key = m.group(1); in reformatJsonString()
152 String value = m.group(2); in reformatJsonString()
DOptionHelper.java119 String optionInput = matcher.group(); in getValidCliArgs()
131 String token = tokenMatcher.group().replaceAll("\"", ""); in getValidCliArgs()
/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/hostsidetests/backup/src/android/cts/backup/
DBackupPreparer.java121 previouslyEnabled = "enabled".equals(matcher.group(1)); in enableBackup()
136 return matcher.group(1); in setBackupTransport()
/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()
/cts/hostsidetests/cpptools/src/com/android/cts/cpptools/
DRunAsHostTest.java41 String appIdString = appIdMatcher.group(1); in testRunAs()
/cts/suite/audio_quality/test_description/conf/
Ddetect_usb_audio.py44 print "___CTS_AUDIO_PASS___ " + line + " " + m.group(1)

123