Home
last modified time | relevance | path

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

12

/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java338 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
349 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
361 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testUidImportanceListener()
362 uidWatcher.expect(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener()
377 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
392 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
401 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
421 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
489 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testBackgroundCheckService()
490 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/tests/core/runner/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/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java211 mExpectedException.expect(ActionException.class); in testSetTextViewText()
225 mExpectedException.expect(Throwable.class); in testSetTextViewTextSize()
271 mExpectedException.expect(ActionException.class); in testSetImageViewResource()
331 mExpectedException.expect(ActionException.class); in testSetChronometer()
348 mExpectedException.expect(ActionException.class); in testSetChronometerCountDown()
374 mExpectedException.expect(ActionException.class); in testSetProgressBar()
494 mExpectedException.expect(ActionException.class); in testSetImageViewBitmap()
511 mExpectedException.expect(ActionException.class); in testSetBitmap()
526 mExpectedException.expect(ActionException.class); in testSetBoolean()
545 mExpectedException.expect(ActionException.class); in testSetCharSequence()
[all …]
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp79 static void try_opening_audio_stream(AAudioStreamBuilder *aaudioBuilder, Expect expect) { in try_opening_audio_stream() argument
83 if (expect == Expect::FAIL) { in try_opening_audio_stream()
86 } else if (expect == Expect::SUCCEED) { in try_opening_audio_stream()
102 static void runtest_aaudio_devices(int32_t deviceId, Expect expect) { in runtest_aaudio_devices() argument
106 try_opening_audio_stream(aaudioBuilder, expect); in runtest_aaudio_devices()
/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/fragment/src/android/fragment/cts/
DStrictFragment.java69 for (int expect : expected) { in checkState()
70 if (mState == expect) { in checkState()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DWatchUidRunner.java130 public void expect(int cmd, String procState) { in expect() method in WatchUidRunner
131 expect(cmd, procState, mDefaultWaitTime); in expect()
134 public void expect(int cmd, String procState, long timeout) { in expect() method in WatchUidRunner
DServiceProcessController.java112 mUidWatcher.expect(WatchUidRunner.CMD_IDLE, null, timeout); in denyBackgroundOp()
113 mUidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, "NONE", timeout); in denyBackgroundOp()
/cts/libs/vogar-expect/src/vogar/expect/
DOutcome.java17 package vogar.expect;
25 import vogar.expect.util.Strings;
DResultValue.java17 package vogar.expect;
DResult.java17 package vogar.expect;
DModeId.java17 package vogar.expect;
DExpectation.java17 package vogar.expect;
DExpectationStore.java17 package vogar.expect;
35 import vogar.expect.util.Log;
/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()
/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/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/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java1071 private static double distance(int expect, int actual, boolean isPremultiplied) { in distance() argument
1074 final int a2 = Color.alpha(expect); in distance()
1076 multiplyAlpha(Color.red(expect), a2); in distance()
1078 multiplyAlpha(Color.green(expect), a2); in distance()
1080 multiplyAlpha(Color.blue(expect), a2); in distance()
1083 final int r = Color.red(actual) - Color.red(expect); in distance()
1084 final int g = Color.green(actual) - Color.green(expect); in distance()
1085 final int b = Color.blue(actual) - Color.blue(expect); in distance()
DMatrixTest.java524 String expect = "[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]"; in testToShortString() local
525 assertEquals(expect, mMatrix.toShortString()); in testToShortString()
/cts/tests/tests/net/src/android/net/cts/
DNetworkRequestTest.java254 private void assertCorrectlySatisfies(boolean expect, NetworkRequest request, in assertCorrectlySatisfies() argument
256 assertEquals(expect, request.canBeSatisfiedBy(nc)); in assertCorrectlySatisfies()

12