Home
last modified time | relevance | path

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

12

/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java372 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
383 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
395 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testUidImportanceListener()
396 uidWatcher.expect(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener()
411 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
426 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
435 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
455 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
527 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testBackgroundCheckService()
528 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, "NONE"); in testBackgroundCheckService()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java67 final String expect = "OneTwoThreeFourFiveSixSevenEightNineTen"; in testAssetOperations() local
75 assertContextEquals(expect, inputStream); in testAssetOperations()
79 assertContextEquals(expect, inputStream); in testAssetOperations()
83 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
87 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
91 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
206 private void assertContextEquals(final String expect, final InputStream inputStream) in assertContextEquals() argument
209 assertThat(bf.readLine()).isEqualTo(expect); in assertContextEquals()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/
DExpectationBasedFilter.java30 import vogar.expect.Expectation;
31 import vogar.expect.ExpectationStore;
32 import vogar.expect.ModeId;
33 import vogar.expect.Result;
/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/tests/view/src/android/view/cts/
DScrollCaptureTargetTest.java81 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullTarget()
87 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullVisibleRect()
93 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullPosition()
99 mExpectedException.expect(NullPointerException.class); in testConstructor_requiresNonNullCallback()
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp80 static void try_opening_audio_stream(AAudioStreamBuilder *aaudioBuilder, Expect expect) { in try_opening_audio_stream() argument
84 if (expect == Expect::FAIL) { in try_opening_audio_stream()
87 } else if (expect == Expect::SUCCEED) { in try_opening_audio_stream()
103 static void runtest_aaudio_devices(int32_t deviceId, Expect expect) { in runtest_aaudio_devices() argument
107 try_opening_audio_stream(aaudioBuilder, expect); in runtest_aaudio_devices()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAccessibilityEventFilterUtils.java50 (event, expect) -> event.getSource() != null in filterForEventTypeWithResource()
51 && event.getSource().getViewIdResourceName().equals(expect)); in filterForEventTypeWithResource()
58 action, "Action", (event, expect) -> event.getAction() == action); in filterForEventTypeWithAction()
/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;
DExpectation.java17 package vogar.expect;
DExpectationStore.java17 package vogar.expect;
35 import vogar.expect.util.Log;
/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/libs/vogar-expect/src/vogar/expect/util/
DLogOutput.java17 package vogar.expect.util;
DLog.java17 package vogar.expect.util;
DStrings.java18 package vogar.expect.util;
/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
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityShortcutSettingsRule.java218 for (String expect : expectedList) { in waitForShortcutStateChange()
219 if (!currentShortcuts.contains(expect)) { in waitForShortcutStateChange()
/cts/tools/release-parser/tests/resources/
Dbuild.prop59 ro.build.expect.bootloader=8996-012001-1804121206
60 ro.build.expect.baseband=8996-130181-1807171030
Dbuild.prop.pb.txt66 key: "ro.build.expect.bootloader"
82 key: "ro.build.expect.baseband"
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DWatchUidRunner.java131 public void expect(int cmd, String procState) { in expect() method in WatchUidRunner
132 expect(cmd, procState, mDefaultWaitTime); in expect()
135 public void expect(int cmd, String procState, long timeout) { in expect() method in WatchUidRunner
DServiceProcessController.java116 mUidWatcher.expect(WatchUidRunner.CMD_IDLE, null, timeout); in denyBackgroundOp()
117 mUidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, "NONE", timeout); in denyBackgroundOp()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerPermissionRequestApp/src/com/android/cts/packageinstallerpermissionrequestapp/
DPermissionRequestTest.kt60 expectedException.expect(SecurityException::class.java) in setSelfAsInstallerAndWhitelistPermission()

12