Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationChannelGroupTest.java38 NotificationChannelGroup group = new NotificationChannelGroup("1", "1"); in testDescribeContents() local
39 assertEquals(expected, group.describeContents()); in testDescribeContents()
44 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testConstructor() local
45 assertEquals("1", group.getId()); in testConstructor()
46 assertEquals("one", group.getName().toString()); in testConstructor()
47 assertFalse(group.isBlocked()); in testConstructor()
48 assertNull(group.getDescription()); in testConstructor()
49 assertEquals(0, group.getChannels().size()); in testConstructor()
50 assertEquals(0, group.getUserLockedFields()); in testConstructor()
55 NotificationChannelGroup group = new NotificationChannelGroup("1", "one"); in testIsBlocked() local
[all …]
/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutGroupTest.java57 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL, TEST_ITEMS); in testConstructor() local
59 assertEquals(TEST_LABEL, group.getLabel()); in testConstructor()
60 assertEquals(TEST_ITEMS, group.getItems()); in testConstructor()
61 assertFalse(group.isSystemGroup()); in testConstructor()
62 assertEquals(0, group.describeContents()); in testConstructor()
67 KeyboardShortcutGroup group = new KeyboardShortcutGroup(TEST_LABEL); in testShortConstructor() local
69 assertEquals(TEST_LABEL, group.getLabel()); in testShortConstructor()
70 assertNotNull(group.getItems()); in testShortConstructor()
71 assertFalse(group.isSystemGroup()); in testShortConstructor()
72 assertEquals(0, group.describeContents()); in testShortConstructor()
[all …]
DView_FocusHandlingTest.java489 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testHasFocusable() local
492 group.addView(singleView); in testHasFocusable()
496 group.removeView(singleView); in testHasFocusable()
499 group.addView(groupView); in testHasFocusable()
536 final ViewGroup group = (ViewGroup) activity.findViewById(R.id.auto_test_area); in testFocusAfterDescendantsTransfer() local
538 group.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); in testFocusAfterDescendantsTransfer()
539 group.setFocusableInTouchMode(true); in testFocusAfterDescendantsTransfer()
540 group.setKeyboardNavigationCluster(true); in testFocusAfterDescendantsTransfer()
541 group.requestFocus(); in testFocusAfterDescendantsTransfer()
542 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/tests/tests/media/audio/src/android/media/audio/cts/
DVolumeInfoTest.java77 final AudioVolumeGroup group = groups.get(0); in testVolGroupParcelableWriteToParcelCreate() local
79 exerciseParcelableWriteToParcelCreate(0, group /*AudioVolumeGroup*/, in testVolGroupParcelableWriteToParcelCreate()
82 exerciseParcelableWriteToParcelCreate(0, group /*AudioVolumeGroup*/, in testVolGroupParcelableWriteToParcelCreate()
85 exerciseParcelableWriteToParcelCreate(0, group /*AudioVolumeGroup*/, in testVolGroupParcelableWriteToParcelCreate()
92 private void exerciseParcelableWriteToParcelCreate(int streamType, AudioVolumeGroup group, in exerciseParcelableWriteToParcelCreate() argument
95 if (group == null) { in exerciseParcelableWriteToParcelCreate()
98 srcVIB = new VolumeInfo.Builder(group); in exerciseParcelableWriteToParcelCreate()
118 assertEquals(group == null, srcVI.hasStreamType()); in exerciseParcelableWriteToParcelCreate()
119 assertEquals(group != null, srcVI.hasVolumeGroup()); in exerciseParcelableWriteToParcelCreate()
122 if (group == null) { // using stream type in exerciseParcelableWriteToParcelCreate()
DAudioVolumeGroupCallbackHelper.java36 void setExpectedVolumeGroup(int group) { in setExpectedVolumeGroup() argument
38 mExpectedVolumeGroupId = group; in setExpectedVolumeGroup()
42 public void onAudioVolumeGroupChanged(int group, int flags) { in onAudioVolumeGroupChanged() argument
43 if (group != mExpectedVolumeGroupId) { in onAudioVolumeGroupChanged()
51 Log.i(TAG, "callback for group: " + group + " already received"); in onAudioVolumeGroupChanged()
/cts/tests/tests/content/src/android/content/cts/
DUriRelativeFilterGroupTest.java62 UriRelativeFilterGroup group = maskToGroup(ACTION_ALLOW, i); in testGroupMatch() local
66 assertTrue(group + " should match " + uri, group.matchData(uri)); in testGroupMatch()
68 assertFalse(group + " should not match " + uri, group.matchData(uri)); in testGroupMatch()
121 UriRelativeFilterGroup group = new UriRelativeFilterGroup(action); in maskToGroup() local
123 group.addUriRelativeFilter( in maskToGroup()
127 group.addUriRelativeFilter( in maskToGroup()
131 group.addUriRelativeFilter( in maskToGroup()
134 return group; in maskToGroup()
/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.java113 matchField.group(1), matchField.group(2), matchField.group(3), flags); in parseLine()
119 matchMethod.group(1), matchMethod.group(2), matchMethod.group(3), flags); in parseLine()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DVersion.java73 int major = Integer.parseInt(matcher.group(1)); in parse()
74 int minor = Integer.parseInt(matcher.group(2)); in parse()
75 int patch = Integer.parseInt(matcher.group(3)); in parse()
76 String description = matcher.group(4) != null ? matcher.group(4) : ""; in parse()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2022_20485.java65 NotificationChannelGroup group = in testLongStringFieldsNotificationChannelGroup() local
71 id.set(group, mLongString); in testLongStringFieldsNotificationChannelGroup()
76 name.set(group, mLongString); in testLongStringFieldsNotificationChannelGroup()
81 description.set(group, mLongString); in testLongStringFieldsNotificationChannelGroup()
84 group.writeToParcel(parcel, 0); in testLongStringFieldsNotificationChannelGroup()
103 NotificationChannelGroup group = in testNullableFields() local
106 group.writeToParcel(parcel, 0); in testNullableFields()
110 if (checkId && group.getId() == fromParcel.getId()) { in testNullableFields()
154 Field group = Class.forName(className).getDeclaredField("mGroup"); in testLongStringFieldsNotificationChannel() local
155 group.setAccessible(true); in testLongStringFieldsNotificationChannel()
[all …]
DCVE_2023_21087.java52 NotificationChannelGroup group = in testPocCVE_2023_21087() local
54 notificationManager.createNotificationChannelGroup(group); in testPocCVE_2023_21087()
/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.java65 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/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DTimeDetectorShellHelper.java83 long elapsedRealtimeMillis = Long.parseLong(matcher.group(1)); in parseTestUnixEpochTimeFromToString()
84 long unixEpochTimeMillis = Long.parseLong(matcher.group(2)); in parseTestUnixEpochTimeFromToString()
148 String unixEpochTimeValue = matcher.group(1); in parseFromNetworkTimeSuggestionToString()
149 Integer uncertaintyMillis = Integer.parseInt(matcher.group(2)); in parseFromNetworkTimeSuggestionToString()
/cts/libs/kernelinfo/src/com/android/cts/kernelinfo/
DKernelInfo.kt53 val major = m.group(1).toInt() in getVersionFromString()
54 val minor = if (TextUtils.isEmpty(m.group(3))) 0 else m.group(3).toInt() in getVersionFromString()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java71 /*threadname*/ m.group(1), in parseLine()
72 … /*pid*/ (m.group(3) == null || m.group(3).startsWith("-")) ? -1 : Integer.parseInt(m.group(3)), in parseLine()
73 /*tid*/ Integer.parseInt(m.group(2)), in parseLine()
74 /*eventName*/ m.group(6), in parseLine()
75 /*details*/ m.group(7)); in parseLine()
/cts/tests/tests/car/src/android/car/cts/utils/
DDumpUtils.java69 map.put(match.group(1), match.group(2)); in parseDumpResult()
/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/car_builtin/src/android/car/cts/builtin/user/
DInitializedUsersCommand.java67 int userId = Integer.parseInt(matcher.group(USER_PATTERN_GROUP_ID)); in parseCommandReturn()
69 String type = matcher.group(USER_PATTERN_GROUP_TYPE); in parseCommandReturn()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPropertyUtil.java200 String name = matcher.group(1); in getClientIds()
201 String value = matcher.group(2); in getClientIds()
291 String prop = matcher.group(1); in getPropertiesWithPrefix()
292 String value = matcher.group(2); in getPropertiesWithPrefix()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DBiometricsDeviceInfo.java178 final int sensorId = Integer.parseInt(matcher.group("ID")); in getSensorInfo()
179 final int modality = toModality(Integer.parseInt(matcher.group("modality"))); in getSensorInfo()
181 matcher.group("strength"))); in getSensorInfo()
183 matcher.group("curStrength"))); in getSensorInfo()
/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/
DGpuWorkDumpsysTest.java134 if (appUid == Long.parseLong(matcher.group(1)) in testOutputFormat()
135 && Long.parseLong(matcher.group(2)) > 0 in testOutputFormat()
136 && Long.parseLong(matcher.group(3)) > 0) { in testOutputFormat()

1234567