/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 76 @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 …]
|
D | OverlayManagerTransactionTest.java | 59 @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/ |
D | BluetoothHapPresetInfoTest.java | 47 @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()
|
D | SystemBluetoothTest.java | 68 @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/ |
D | AssetManagerTest.java | 69 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/ |
D | CoreExpectationFilter.java | 31 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/ |
D | BitmapUtils.java | 216 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/ |
D | ActivityManagerProcessStateTest.java | 415 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/ |
D | MediaRouter2HostSideTest.java | 81 @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()
|
D | ProxyMediaRouter2HostSideTest.java | 62 @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/ |
D | BitmapUtils.java | 246 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/ |
D | AccessibilityEventFilterUtils.java | 60 (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/ |
D | ScrollCaptureTargetTest.java | 93 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/ |
D | ResultValue.java | 17 package vogar.expect;
|
D | Result.java | 17 package vogar.expect;
|
D | ModeId.java | 17 package vogar.expect;
|
D | Outcome.java | 17 package vogar.expect; 25 import vogar.expect.util.Strings;
|
/cts/tests/tests/text/src/android/text/cts/ |
D | FontVariationSettingsTest.kt | 57 val expect = drawText("a", paint) in testFontVariationSettingsEffective() constant 62 assertThat(actual.sameAs(expect)).isFalse() in testFontVariationSettingsEffective()
|
/cts/libs/vogar-expect/src/vogar/expect/util/ |
D | LogOutput.java | 17 package vogar.expect.util;
|
D | Log.java | 17 package vogar.expect.util;
|
/cts/tests/tests/nativemedia/aaudio/jni/ |
D | test_aaudio_stream_builder.cpp | 53 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/ |
D | TaskInfoHelperTest.java | 69 @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/ |
D | ResolverServiceMethodFallbackTest.kt | 142 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/ |
D | StrictFragment.java | 69 for (int expect : expected) { in checkState() 70 if (mState == expect) { in checkState()
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 256 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
|