/cts/common/device-side/bedstead/queryable/src/test/java/com/android/queryable/queries/ |
D | IntegerQueryHelperTest.java | 40 assertThat(integerQueryHelper.matches(INTEGER_VALUE)).isTrue(); in matches_noRestrictions_returnsTrue() 50 assertThat(integerQueryHelper.matches(INTEGER_VALUE)).isTrue(); in matches_isEqualTo_meetsRestriction_returnsTrue() 60 assertThat(integerQueryHelper.matches(GREATER_VALUE)).isFalse(); in matches_isEqualTo_doesNotMeetRestriction_returnsFalse() 70 assertThat(integerQueryHelper.matches(GREATER_VALUE)).isTrue(); in matches_isGreaterThan_meetsRestriction_returnsTrue() 80 assertThat(integerQueryHelper.matches(INTEGER_VALUE)).isFalse(); in matches_isGreaterThan_doesNotMeetRestriction_returnsFalse() 90 assertThat(integerQueryHelper.matches(GREATER_VALUE)).isTrue(); in matches_isGreaterThanOrEqualTo_greaterThan_returnsTrue() 100 assertThat(integerQueryHelper.matches(INTEGER_VALUE)).isTrue(); in matches_isGreaterThanOrEqualTo_equalTo_returnsTrue() 110 assertThat(integerQueryHelper.matches(LESS_VALUE)).isFalse(); in matches_isGreaterThanOrEqualTo_doesNotMeetRestriction_returnsFalse() 120 assertThat(integerQueryHelper.matches(LESS_VALUE)).isTrue(); in matches_isLessThan_meetsRestriction_returnsTrue() 130 assertThat(integerQueryHelper.matches(INTEGER_VALUE)).isFalse(); in matches_isLessThan_doesNotMeetRestriction_returnsFalse() [all …]
|
D | LongQueryHelperTest.java | 39 assertThat(longQueryHelper.matches(LONG_VALUE)).isTrue(); in matches_noRestrictions_returnsTrue() 49 assertThat(longQueryHelper.matches(LONG_VALUE)).isTrue(); in matches_isEqualTo_meetsRestriction_returnsTrue() 59 assertThat(longQueryHelper.matches(GREATER_VALUE)).isFalse(); in matches_isEqualTo_doesNotMeetRestriction_returnsFalse() 69 assertThat(longQueryHelper.matches(GREATER_VALUE)).isTrue(); in matches_isGreaterThan_meetsRestriction_returnsTrue() 79 assertThat(longQueryHelper.matches(LONG_VALUE)).isFalse(); in matches_isGreaterThan_doesNotMeetRestriction_returnsFalse() 89 assertThat(longQueryHelper.matches(GREATER_VALUE)).isTrue(); in matches_isGreaterThanOrEqualTo_greaterThan_returnsTrue() 99 assertThat(longQueryHelper.matches(LONG_VALUE)).isTrue(); in matches_isGreaterThanOrEqualTo_equalTo_returnsTrue() 109 assertThat(longQueryHelper.matches(LESS_VALUE)).isFalse(); in matches_isGreaterThanOrEqualTo_doesNotMeetRestriction_returnsFalse() 119 assertThat(longQueryHelper.matches(LESS_VALUE)).isTrue(); in matches_isLessThan_meetsRestriction_returnsTrue() 129 assertThat(longQueryHelper.matches(LONG_VALUE)).isFalse(); in matches_isLessThan_doesNotMeetRestriction_returnsFalse() [all …]
|
D | BooleanQueryHelperTest.java | 36 assertThat(booleanQueryHelper.matches(true)).isTrue(); in matches_noRestrictions_returnsTrue() 44 assertThat(booleanQueryHelper.matches(true)).isTrue(); in matches_isTrue_valueIsTrue_returnsTrue() 52 assertThat(booleanQueryHelper.matches(false)).isFalse(); in matches_isTrue_valueIsFalse_returnsFalse() 60 assertThat(booleanQueryHelper.matches(true)).isFalse(); in matches_isFalse_valueIsTrue_returnsFalse() 68 assertThat(booleanQueryHelper.matches(false)).isTrue(); in matches_isFalse_valueIsFalse_returnsTrue() 76 assertThat(booleanQueryHelper.matches(true)).isTrue(); in matches_equalsTrue_valueIsTrue_returnsTrue() 84 assertThat(booleanQueryHelper.matches(false)).isFalse(); in matches_equalsTrue_valueIsFalse_returnsFalse() 92 assertThat(booleanQueryHelper.matches(true)).isFalse(); in matches_equalsFalse_valueIsTrue_returnsFalse() 100 assertThat(booleanQueryHelper.matches(false)).isTrue(); in matches_equalsFalse_valueIsFalse_returnsTrue()
|
D | BundleKeyQueryHelperTest.java | 50 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue() 61 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 72 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 84 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_bundleValueRestriction_meetsRestriction_returnsTrue() 96 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_bundleValueRestriction_doesNotMeetRestriction_returnsFalse() 107 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_serializableValueRestriction_meetsRestriction_returnsTrue() 118 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_serializableValueRestriction_doesNotMeetRestriction_returnsFalse() 129 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_existsRestriction_meetsRestriction_returnsTrue() 140 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isFalse(); in matches_existsRestriction_doesNotMeetRestriction_returnsFalse() 151 assertThat(bundleKeyQueryHelper.matches(mBundle, KEY)).isTrue(); in matches_doesNotExistRestriction_meetsRestriction_returnsTrue() [all …]
|
D | PersistableBundleKeyQueryHelperTest.java | 46 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_noRestrictions_returnsTrue() 57 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_stringValueRestriction_meetsRestriction_returnsTrue() 68 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_stringValueRestriction_doesNotMeetRestriction_returnsFalse() 80 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_persistableBundleValueRestriction_meetsRestriction_returnsTrue() 92 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_persistableBundleValueRestriction_doesNotMeetRestriction_returnsFalse() 103 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_existsRestriction_meetsRestriction_returnsTrue() 114 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_existsRestriction_doesNotMeetRestriction_returnsFalse() 125 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isTrue(); in matches_doesNotExistRestriction_meetsRestriction_returnsTrue() 136 assertThat(persistableBundleKeyQueryHelper.matches(mPersistableBundle, KEY)).isFalse(); in matches_doesNotExistRestriction_doesNotMeetRestriction_returnsFalse()
|
D | ClassQueryHelperTest.java | 47 assertThat(classQueryHelper.matches(CLASS_1_CLASS_INFO)).isTrue(); in matches_noRestrictions_returnsTrue() 57 assertThat(classQueryHelper.matches(CLASS_1_CLASS_INFO)).isTrue(); in matches_isSameClassAs_doesMatch_returnsTrue() 67 assertThat(classQueryHelper.matches(CLASS_2_CLASS_INFO)).isFalse(); in matches_isSameClassAs_doesNotMatch_returnsFalse() 77 assertThat(classQueryHelper.matches(CLASS_1_CLASS_INFO)).isTrue(); in matches_className_doesMatch_returnsTrue() 87 assertThat(classQueryHelper.matches(CLASS_2_CLASS_INFO)).isFalse(); in matches_className_doesNotMatch_returnsFalse() 97 assertThat(classQueryHelper.matches(CLASS_1_CLASS_INFO)).isTrue(); in matches_simpleName_doesMatch_returnsTrue() 107 assertThat(classQueryHelper.matches(CLASS_2_CLASS_INFO)).isFalse(); in matches_simpleName_doesNotMatch_returnsFalse()
|
D | EnumQueryHelperTest.java | 43 assertThat(enumQueryHelper.matches(TestEnum.VALUE1)).isTrue(); in matches_noRestrictions_returnsTrue() 53 assertThat(enumQueryHelper.matches(TestEnum.VALUE1)).isTrue(); in matches_isEqualTo_matches_returnsTrue() 63 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isFalse(); in matches_isEqualTo_doesNotMatch_returnsFalse() 73 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isTrue(); in matches_isNotEqualTo_matches_returnsTrue() 83 assertThat(enumQueryHelper.matches(TestEnum.VALUE1)).isFalse(); in matches_isNotEqualTo_doesNotMatch_returnsFalse() 114 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isTrue(); in matches_isOneOf_matches_returnsTrue() 124 assertThat(enumQueryHelper.matches(null)).isFalse(); in matches_isOneOf_doesNotMatch_returnsFalse() 134 assertThat(enumQueryHelper.matches(TestEnum.VALUE2)).isTrue(); in matches_isNotOneOf_matches_returnsTrue() 144 assertThat(enumQueryHelper.matches(TestEnum.VALUE1)).isFalse(); in matches_isNotOneOf_doesNotMatch_returnsFalse()
|
D | UserHandleQueryHelperTest.java | 42 assertThat(userHandleQueryHelper.matches(USER_HANDLE)).isTrue(); in matches_noRestrictions_returnsTrue() 52 assertThat(userHandleQueryHelper.matches(USER_HANDLE)).isTrue(); in matches_isEqualTo_meetsRestriction_returnsTrue() 62 assertThat(userHandleQueryHelper.matches(DIFFERENT_USER_HANDLE)).isFalse(); in matches_isEqualTo_doesNotMeetRestriction_returnsFalse() 72 assertThat(userHandleQueryHelper.matches(USER_HANDLE)).isTrue(); in matches_id_meetsRestriction_returnsTrue() 82 assertThat(userHandleQueryHelper.matches(DIFFERENT_USER_HANDLE)).isFalse(); in matches_id_doesNotMeetRestriction_returnsFalse()
|
D | ListQueryHelperTest.java | 52 assertThat(listQueryHelper.matches(List.of(new Bundle()))).isTrue(); in matches_size_matches_returnsTrue() 62 assertThat(listQueryHelper.matches(List.of())).isFalse(); in matches_size_doesNotMatch_returnsFalse() 74 assertThat(listQueryHelper.matches( in matches_contains_doesContain_returnsTrue() 87 assertThat(listQueryHelper.matches(List.of(BUNDLE_NOT_CONTAINING_KEY))).isFalse(); in matches_contains_doesNotContain_returnsFalse() 99 assertThat(listQueryHelper.matches( in matches_doesNotContain_doesContain_returnsFalse() 112 assertThat(listQueryHelper.matches(List.of(BUNDLE_NOT_CONTAINING_KEY))).isTrue(); in matches_doesNotContain_doesNotContain_returnsTrue()
|
D | SetQueryHelperTest.java | 50 assertThat(setQueryHelper.matches(Set.of(new Bundle()))).isTrue(); in matches_size_matches_returnsTrue() 59 assertThat(setQueryHelper.matches(Set.of())).isFalse(); in matches_size_doesNotMatch_returnsFalse() 70 …assertThat(setQueryHelper.matches(Set.of(BUNDLE_CONTAINING_KEY, BUNDLE_NOT_CONTAINING_KEY))).isTru… in matches_contains_doesContain_returnsTrue() 81 assertThat(setQueryHelper.matches(Set.of(BUNDLE_NOT_CONTAINING_KEY))).isFalse(); in matches_contains_doesNotContain_returnsFalse() 92 …assertThat(setQueryHelper.matches(Set.of(BUNDLE_CONTAINING_KEY, BUNDLE_NOT_CONTAINING_KEY))).isFal… in matches_doesNotContain_doesContain_returnsFalse() 103 assertThat(setQueryHelper.matches(Set.of(BUNDLE_NOT_CONTAINING_KEY))).isTrue(); in matches_doesNotContain_doesNotContain_returnsTrue()
|
D | BundleQueryHelperTest.java | 44 assertThat(bundleQueryHelper.matches(mBundle)).isTrue(); in matches_noRestrictions_returnsTrue() 55 assertThat(bundleQueryHelper.matches(mBundle)).isTrue(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 66 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 79 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 90 assertThat(bundleQueryHelper.matches(mBundle)).isFalse(); in matches_restrictionOnNonExistingKey_returnsFalse()
|
D | PersistableBundleQueryHelperTest.java | 43 assertThat(persistableBundleQueryHelper.matches(mPersistableBundle)).isTrue(); in matches_noRestrictions_returnsTrue() 54 assertThat(persistableBundleQueryHelper.matches(mPersistableBundle)).isTrue(); in matches_restrictionOnOneKey_restrictionIsMet_returnsTrue() 65 assertThat(persistableBundleQueryHelper.matches(mPersistableBundle)).isFalse(); in matches_restrictionOnOneKey_restrictionIsNotMet_returnsFalse() 78 assertThat(persistableBundleQueryHelper.matches(mPersistableBundle)).isFalse(); in matches_restrictionOnMultipleKeys_oneRestrictionIsNotMet_returnsFalse() 89 assertThat(persistableBundleQueryHelper.matches(mPersistableBundle)).isFalse(); in matches_restrictionOnNonExistingKey_returnsFalse()
|
D | IntentQueryHelperTest.java | 42 assertThat(intentQueryHelper.matches(intent)).isTrue(); in matches_noRestrictions_returnsTrue() 54 assertThat(intentQueryHelper.matches(intent)).isTrue(); in matches_action_meetsRestriction_returnsTrue() 66 assertThat(intentQueryHelper.matches(intent)).isFalse(); in matches_action_doesNotMeetRestriction_returnsFalse() 78 assertThat(intentQueryHelper.matches(intent)).isTrue(); in matches_extras_meetsRestriction_returnsTrue() 91 assertThat(intentQueryHelper.matches(intent)).isFalse(); in matches_extras_doesNotMeetRestriction_returnsFalse()
|
D | ActivityQueryHelperTest.java | 62 assertThat(activityQueryHelper.matches(CLASS_1_ACTIVITY_INFO)).isTrue(); in matches_noRestrictions_returnsTrue() 71 assertThat(activityQueryHelper.matches(CLASS_1_ACTIVITY_INFO)).isTrue(); in matches_activityClass_doesMatch_returnsTrue() 80 assertThat(activityQueryHelper.matches(CLASS_2_ACTIVITY_INFO)).isFalse(); in matches_activityClass_doesNotMatch_returnsFalse() 90 assertThat(activityQueryHelper.matches(EXPORTED_ACTIVITY_INFO)).isTrue(); in matches_exported_matches_returnsTrue() 99 assertThat(activityQueryHelper.matches(EXPORTED_ACTIVITY_INFO)).isFalse(); in matches_exported_doesNotMatch_returnsFalse()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanFilterTest.java | 80 assertTrue("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter() 83 assertFalse("setName filter fails", filter.matches(mScanResult)); in testsetNameFilter() 92 assertTrue("device filter fails", filter.matches(mScanResult)); in testDeviceAddressFilter() 95 assertFalse("device filter fails", filter.matches(mScanResult)); in testDeviceAddressFilter() 105 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter() 110 assertFalse("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter() 118 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceUuidFilter() 128 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceSolicitationUuidFilter() 133 assertFalse("uuid filter fails", filter.matches(mScanResult)); in testsetServiceSolicitationUuidFilter() 140 assertTrue("uuid filter fails", filter.matches(mScanResult)); in testsetServiceSolicitationUuidFilter() [all …]
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/ |
D | ActivityQueryHelper.java | 52 public boolean matches(ActivityInfo value) { in matches() method in ActivityQueryHelper 53 return mActivityClassQueryHelper.matches(value) in matches() 54 && mExportedQueryHelper.matches(value.exported()); in matches() 57 public static boolean matches(ActivityQueryHelper<?> activityQueryHelper, ActivityInfo value) { in matches() method in ActivityQueryHelper 58 return activityQueryHelper.matches(value); in matches()
|
D | IntentQueryHelper.java | 58 public boolean matches(Intent value) { in matches() method in IntentQueryHelper 59 if (!mAction.matches(value.getAction())) { in matches() 62 if (!mExtras.matches(value.getExtras())) { in matches() 73 public boolean matches(SerializableParcelWrapper<Intent> serializableBundle) { in matches() method in IntentQueryHelper 78 return matches(serializableBundle.get()); in matches()
|
D | UserHandleQueryHelper.java | 60 public boolean matches(UserHandle value) { in matches() method in UserHandleQueryHelper 65 if (mIdQuery != null && !mIdQuery.matches(value.getIdentifier())) { in matches() 76 public boolean matches(SerializableParcelWrapper<UserHandle> serializableBundle) { in matches() method in UserHandleQueryHelper 81 return matches(serializableBundle.get()); in matches()
|
D | BundleQueryHelper.java | 52 public boolean matches(Bundle value) { in matches() method in BundleQueryHelper 54 if (!keyQueries.getValue().matches(value, keyQueries.getKey())) { in matches() 62 public boolean matches(SerializableParcelWrapper<Bundle> serializableBundle) { in matches() method in BundleQueryHelper 70 return matches(serializableBundle.get()); in matches()
|
D | PersistableBundleQueryHelper.java | 53 public boolean matches(PersistableBundle value) { in matches() method in PersistableBundleQueryHelper 56 if (!keyQueries.getValue().matches(value, keyQueries.getKey())) { in matches() 64 public boolean matches(SerializableParcelWrapper<PersistableBundle> serializableBundle) { in matches() method in PersistableBundleQueryHelper 72 return matches(serializableBundle.get()); in matches()
|
D | StringQueryHelper.java | 45 public boolean matches(String value) { in matches() method in StringQueryHelper 53 public static boolean matches(StringQueryHelper<?> stringQueryHelper, String value) { in matches() method in StringQueryHelper 54 return stringQueryHelper.matches(value); in matches()
|
D | BundleKeyQueryHelper.java | 92 public boolean matches(Bundle value, String key) { in matches() method in BundleKeyQueryHelper 96 if (mStringQuery != null && !mStringQuery.matches(value.getString(key))) { in matches() 99 if (mSerializableQuery != null && !mSerializableQuery.matches(value.getSerializable(key))) { in matches() 102 if (mBundleQuery != null && !mBundleQuery.matches(value.getBundle(key))) { in matches()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | InstantAppTest.java | 59 final List<ResolveInfo> matches = in testInstantAppResolverQuery() local 61 assertTrue(matches == null || matches.size() <= 1); in testInstantAppResolverQuery() 73 final List<ResolveInfo> matches = in testInstantAppInstallerQuery() local 75 assertTrue(matches == null || matches.size() <= 1); in testInstantAppInstallerQuery()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | BuildTest.java | 239 assertTrue(BOARD_PATTERN.matcher(Build.BOARD).matches()); in testBuildConstants() 241 assertTrue(BRAND_PATTERN.matcher(Build.BRAND).matches()); in testBuildConstants() 243 assertTrue(DEVICE_PATTERN.matcher(Build.DEVICE).matches()); in testBuildConstants() 247 assertTrue(HARDWARE_PATTERN.matcher(Build.HARDWARE).matches()); in testBuildConstants() 251 assertTrue(ID_PATTERN.matcher(Build.ID).matches()); in testBuildConstants() 258 assertTrue(SOC_MANUFACTURER_PATTERN.matcher(Build.SOC_MANUFACTURER).matches()); in testBuildConstants() 264 assertTrue(SOC_MODEL_PATTERN.matcher(Build.SOC_MODEL).matches()); in testBuildConstants() 269 assertTrue(PRODUCT_PATTERN.matcher(Build.PRODUCT).matches()); in testBuildConstants() 271 assertTrue(SERIAL_NUMBER_PATTERN.matcher(Build.SERIAL).matches()); in testBuildConstants() 273 assertTrue(SKU_PATTERN.matcher(Build.SKU).matches()); in testBuildConstants() [all …]
|
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/ |
D | MetricQueryBuilder.java | 86 if (matches(m)) { in get() 130 private boolean matches(EnterpriseMetricInfo metric) { in matches() method in MetricQueryBuilder 131 return mAdminPackageNameQuery.matches(metric.adminPackageName()) in matches() 132 && mBooleanQuery.matches(metric.Boolean()) in matches() 133 && mStringsQuery.matches(metric.strings()); in matches()
|