Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 47) sorted by relevance

12

/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java76 @Rule public Expect expect = Expect.create(); field in OverlayManagerTest
134 expect.that(overlayManager).isNotNull(); in getOverlayManagerFromContext_shouldSucceed()
135 expect.that(overlayManager).isInstanceOf(OverlayManager.class); in getOverlayManagerFromContext_shouldSucceed()
144 expect.that(overlayManager).isNotNull(); in getOverlayManager_ByServiceName_shouldSucceed()
145 expect.that(overlayManager).isInstanceOf(OverlayManager.class); in getOverlayManager_ByServiceName_shouldSucceed()
156 expect.that(overlayInfoList).isNotNull(); in getOverlayInfosForTarget_byDefault_returnEmptyList()
157 expect.that(overlayInfoList).isEmpty(); in getOverlayInfosForTarget_byDefault_returnEmptyList()
175 expect.that(overlayInfoList.size()).isEqualTo(2); in getOverlayInfosForTarget_registerMultipleOverlays_shouldReturnRegisteredOverlays()
176 assertThat(expect.hasFailures()).isFalse(); in getOverlayInfosForTarget_registerMultipleOverlays_shouldReturnRegisteredOverlays()
181 expect.that(overlays).containsExactly("hello_overlay1", "hello_overlay2"); in getOverlayInfosForTarget_registerMultipleOverlays_shouldReturnRegisteredOverlays()
[all …]
DOverlayManagerTransactionTest.java59 @Rule public Expect expect = Expect.create(); field in OverlayManagerTransactionTest
139 expect.that(overlayInfoList.size()).isEqualTo(1); in commit_withValidOverlayable_shouldSucceed()
166 expect.that(numberOfOverlaysWhenStart).isEqualTo(3); in commit_multipleRequests_shouldSucceed()
167 expect.that(overlayInfos.size()).isEqualTo(1); in commit_multipleRequests_shouldSucceed()
172 expect.that(overlays).containsExactly("hello_overlay"); in commit_multipleRequests_shouldSucceed()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothHapPresetInfoTest.java47 @Rule public final Expect expect = Expect.create(); field in BluetoothHapPresetInfoTest
73 expect.that(presetInfo.getIndex()).isEqualTo(TEST_PRESET_INDEX); in createHapPresetInfo()
74 expect.that(presetInfo.getName()).isEqualTo(TEST_PRESET_NAME); in createHapPresetInfo()
75 expect.that(presetInfo.isAvailable()).isTrue(); in createHapPresetInfo()
76 expect.that(presetInfo.isWritable()).isFalse(); in createHapPresetInfo()
DSystemBluetoothTest.java68 @Rule public final Expect expect = Expect.create(); field in SystemBluetoothTest
217 expect.that(BluetoothUuid.containsAnyUuid(null, null)).isTrue(); in containsAnyUuid()
218 expect.that(BluetoothUuid.containsAnyUuid(new ParcelUuid[] {}, null)).isTrue(); in containsAnyUuid()
219 expect.that(BluetoothUuid.containsAnyUuid(null, new ParcelUuid[] {})).isTrue(); in containsAnyUuid()
220 expect.that(BluetoothUuid.containsAnyUuid(null, deviceAUuids)).isFalse(); in containsAnyUuid()
221 expect.that(BluetoothUuid.containsAnyUuid(deviceAUuids, null)).isFalse(); in containsAnyUuid()
222 expect.that(BluetoothUuid.containsAnyUuid(deviceAUuids, deviceBUuids)).isFalse(); in containsAnyUuid()
223 expect.that(BluetoothUuid.containsAnyUuid(deviceAUuids, deviceCUuids)).isTrue(); in containsAnyUuid()
224 expect.that(BluetoothUuid.containsAnyUuid(deviceBUuids, deviceBUuids)).isTrue(); in containsAnyUuid()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java69 final String expect = "OneTwoThreeFourFiveSixSevenEightNineTen"; in testAssetOperations() local
77 assertContextEquals(expect, inputStream); in testAssetOperations()
81 assertContextEquals(expect, inputStream); in testAssetOperations()
85 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
89 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
93 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
208 private void assertContextEquals(final String expect, final InputStream inputStream) in assertContextEquals() argument
211 assertThat(bf.readLine()).isEqualTo(expect); in assertContextEquals()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/filter/
DCoreExpectationFilter.java31 import vogar.expect.Expectation;
32 import vogar.expect.ExpectationStore;
33 import vogar.expect.ModeId;
34 import vogar.expect.Result;
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBitmapUtils.java216 private static double distance(int expect, int actual, boolean isPremultiplied) { in distance() argument
219 final int a2 = Color.alpha(expect); in distance()
221 multiplyAlpha(Color.red(expect), a2); in distance()
223 multiplyAlpha(Color.green(expect), a2); in distance()
225 multiplyAlpha(Color.blue(expect), a2); in distance()
228 int r = Color.red(actual) - Color.red(expect); in distance()
229 int g = Color.green(actual) - Color.green(expect); in distance()
230 int b = Color.blue(actual) - Color.blue(expect); in distance()
/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java415 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
426 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
438 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testUidImportanceListener()
439 uidWatcher.expect(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener()
454 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
469 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
478 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
498 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
570 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testBackgroundCheckService()
571 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, "NONE"); in testBackgroundCheckService()
[all …]
/cts/hostsidetests/media/src/android/media/router/cts/
DMediaRouter2HostSideTest.java81 @ClassRule public static final Expect expect = Expect.create(); field in MediaRouter2HostSideTest
101 expect.that(device.uninstallPackage(MEDIA_ROUTER_PROVIDER_1_PACKAGE)).isNull(); in uninstallApps()
102 expect.that(device.uninstallPackage(MEDIA_ROUTER_PROVIDER_2_PACKAGE)).isNull(); in uninstallApps()
103 expect.that(device.uninstallPackage(MEDIA_ROUTER_PROVIDER_3_PACKAGE)).isNull(); in uninstallApps()
104 expect.that(device.uninstallPackage(MEDIA_ROUTER_PROVIDER_SELF_SCAN_ONLY_PACKAGE)).isNull(); in uninstallApps()
105 expect.that(device.uninstallPackage(MEDIA_ROUTER_TEST_PACKAGE)).isNull(); in uninstallApps()
106 expect.that(device.uninstallPackage(MEDIA_ROUTER_TEST_WITH_MODIFY_AUDIO_ROUTING_PACKAGE)) in uninstallApps()
371 expect.that(forceStopAndWaitForRunningStatus(MEDIA_ROUTER_TEST_PACKAGE)).isTrue(); in providerService_doesNotAutoBindAfterCrashing()
421 expect.that(uninstallPackage(MEDIA_ROUTER_PROVIDER_WITH_PACKAGE_MANAGER_SPAM_PACKAGE)) in packageManagerSpammingProviderService_doesNotAutoBindAfterCrashing()
423 expect.that(forceStopAndWaitForRunningStatus(MEDIA_ROUTER_TEST_PACKAGE)).isTrue(); in packageManagerSpammingProviderService_doesNotAutoBindAfterCrashing()
DProxyMediaRouter2HostSideTest.java62 @ClassRule public static final Expect expect = Expect.create(); field in ProxyMediaRouter2HostSideTest
95 expect.that(device.uninstallPackage( in uninstallApps()
97 expect.that(device.uninstallPackage( in uninstallApps()
100 expect.that( in uninstallApps()
106 expect.that(device.uninstallPackage(MEDIA_ROUTER_PROVIDER_1_PACKAGE)).isNull(); in uninstallApps()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java246 private static double distance(int expect, int actual, boolean isPremultiplied) { in distance() argument
249 final int a2 = Color.alpha(expect); in distance()
251 multiplyAlpha(Color.red(expect), a2); in distance()
253 multiplyAlpha(Color.green(expect), a2); in distance()
255 multiplyAlpha(Color.blue(expect), a2); in distance()
258 int r = Color.red(actual) - Color.red(expect); in distance()
259 int g = Color.green(actual) - Color.green(expect); in distance()
260 int b = Color.blue(actual) - Color.blue(expect); in distance()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAccessibilityEventFilterUtils.java60 (event, expect) -> event.getSource() != null in filterForEventTypeWithResource()
61 && event.getSource().getViewIdResourceName().equals(expect)); in filterForEventTypeWithResource()
68 action, "Action", (event, expect) -> event.getAction() == action); in filterForEventTypeWithAction()
121 (event, expect) -> event.getDisplayId() == displayId); in matcherForDisplayId()
134 (event, expect) -> event.getClassName().equals(className)); in matcherForClassName()
147 (event, expect) -> { in matcherForFirstText()
/cts/tests/tests/view/src/android/view/cts/
DScrollCaptureTargetTest.java93 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullTarget()
99 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullVisibleRect()
105 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullPosition()
111 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullCallback()
/cts/libs/vogar-expect/src/vogar/expect/
DResultValue.java17 package vogar.expect;
DResult.java17 package vogar.expect;
DModeId.java17 package vogar.expect;
DOutcome.java17 package vogar.expect;
25 import vogar.expect.util.Strings;
/cts/tests/tests/text/src/android/text/cts/
DFontVariationSettingsTest.kt57 val expect = drawText("a", paint) in testFontVariationSettingsEffective() constant
62 assertThat(actual.sameAs(expect)).isFalse() in testFontVariationSettingsEffective()
/cts/libs/vogar-expect/src/vogar/expect/util/
DLogOutput.java17 package vogar.expect.util;
DLog.java17 package vogar.expect.util;
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp53 static void try_opening_audio_stream(AAudioStreamBuilder *aaudioBuilder, Expect expect) { in try_opening_audio_stream() argument
58 if (expect == Expect::FAIL) { in try_opening_audio_stream()
61 } else if (expect == Expect::SUCCEED) { in try_opening_audio_stream()
86 static void runtest_aaudio_devices(int32_t deviceId, Expect expect) { in runtest_aaudio_devices() argument
90 try_opening_audio_stream(aaudioBuilder, expect); in runtest_aaudio_devices()
448 const Expect expect = in testChannelMask() local
452 if (expect == Expect::FAIL) { in testChannelMask()
455 } else if (expect == Expect::SUCCEED) { in testChannelMask()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DTaskInfoHelperTest.java69 @Rule public final Expect expect = Expect.create(); field in TaskInfoHelperTest
144 expect.that(bounds.width()).isEqualTo(testActivityDecorView.getWidth()); in testGetBounds()
145 expect.that(bounds.height()).isEqualTo(testActivityDecorView.getHeight()); in testGetBounds()
/cts/tests/tests/instantapp/src/android/cts/instantapp/resolver/
DResolverServiceMethodFallbackTest.kt142 expectedException.expect(IllegalStateException::class.java) in <lambda>()
145 expectedException.expect(TestRemoteCallbackException::class.java) in <lambda>()
150 expectedException.expect(TestRemoteCallbackException::class.java) in <lambda>()
/cts/tests/fragment/src/android/fragment/cts/
DStrictFragment.java69 for (int expect : expected) { in checkState()
70 if (mState == expect) { in checkState()
/cts/libs/json/src/com/android/json/stream/
DJsonReader.java256 expect(JsonToken.BEGIN_ARRAY); in beginArray()
264 expect(JsonToken.END_ARRAY); in endArray()
272 expect(JsonToken.BEGIN_OBJECT); in beginObject()
280 expect(JsonToken.END_OBJECT); in endObject()
286 private void expect(JsonToken expected) throws IOException { in expect() method in JsonReader

12