Home
last modified time | relevance | path

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

/cts/tests/app/src/android/app/cts/
DActivityManagerProcessStateTest.java260 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
273 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
287 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testUidImportanceListener()
288 uidWatcher.expect(WatchUidRunner.CMD_GONE, null); in testUidImportanceListener()
304 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
320 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
330 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_FG_SERVICE); in testUidImportanceListener()
350 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, WatchUidRunner.STATE_CACHED_EMPTY); in testUidImportanceListener()
419 uidWatcher.expect(WatchUidRunner.CMD_IDLE, null); in testBackgroundCheckService()
420 uidWatcher.expect(WatchUidRunner.CMD_PROCSTATE, "NONE"); in testBackgroundCheckService()
[all …]
DAlertDialog_BuilderTest.java381 final CharSequence[] expect = mContext.getResources().getTextArray( in testSetItemsWithParamCharSequence() local
387 mBuilder.setItems(expect, mOnClickListener); in testSetItemsWithParamCharSequence()
393 assertEquals(expect[0], mListView.getItemAtPosition(0)); in testSetItemsWithParamCharSequence()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManagerTest.java68 final String expect = "OneTwoThreeFourFiveSixSevenEightNineTen"; in testAssetOperations() local
76 assertContextEquals(expect, inputStream); in testAssetOperations()
80 assertContextEquals(expect, inputStream); in testAssetOperations()
84 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
88 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
92 assertContextEquals(expect, assetFileDes.createInputStream()); in testAssetOperations()
207 private void assertContextEquals(final String expect, final InputStream inputStream) in assertContextEquals() argument
210 assertThat(bf.readLine()).isEqualTo(expect); in assertContextEquals()
/cts/tests/tests/media/src/android/media/cts/
DMediaSession2TestBase.java69 void waitForConnect(boolean expect) throws InterruptedException; in waitForConnect() argument
70 void waitForDisconnect(boolean expect) throws InterruptedException; in waitForDisconnect() argument
185 public void waitForConnect(boolean expect) throws InterruptedException { in waitForConnect() argument
186 if (expect) { in waitForConnect()
194 public void waitForDisconnect(boolean expect) throws InterruptedException { in waitForDisconnect() argument
195 if (expect) { in waitForDisconnect()
DMediaBrowser2Test.java505 public void waitForConnect(boolean expect) throws InterruptedException { in waitForConnect() argument
506 if (expect) { in waitForConnect()
514 public void waitForDisconnect(boolean expect) throws InterruptedException { in waitForDisconnect() argument
515 if (expect) { in waitForDisconnect()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java210 mExpectedException.expect(ActionException.class); in testSetTextViewText()
224 mExpectedException.expect(Throwable.class); in testSetTextViewTextSize()
270 mExpectedException.expect(ActionException.class); in testSetImageViewResource()
330 mExpectedException.expect(ActionException.class); in testSetChronometer()
347 mExpectedException.expect(ActionException.class); in testSetChronometerCountDown()
373 mExpectedException.expect(ActionException.class); in testSetProgressBar()
493 mExpectedException.expect(ActionException.class); in testSetImageViewBitmap()
510 mExpectedException.expect(ActionException.class); in testSetBitmap()
525 mExpectedException.expect(ActionException.class); in testSetBoolean()
544 mExpectedException.expect(ActionException.class); in testSetCharSequence()
[all …]
/cts/tests/tests/nativemedia/aaudio/jni/
Dtest_aaudio_stream_builder.cpp35 static void try_opening_audio_stream(AAudioStreamBuilder *aaudioBuilder, Expect expect) { in try_opening_audio_stream() argument
39 if (expect == Expect::FAIL) { in try_opening_audio_stream()
42 } else if (expect == Expect::SUCCEED) { in try_opening_audio_stream()
58 static void runtest_aaudio_devices(int32_t deviceId, Expect expect) { in runtest_aaudio_devices() argument
62 try_opening_audio_stream(aaudioBuilder, expect); in runtest_aaudio_devices()
/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.java128 public void expect(int cmd, String procState) { in expect() method in WatchUidRunner
129 expect(cmd, procState, mDefaultWaitTime); in expect()
132 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/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/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java975 private static double distance(int expect, int actual, boolean isPremultiplied) { in distance() argument
978 final int a2 = Color.alpha(expect); in distance()
980 multiplyAlpha(Color.red(expect), a2); in distance()
982 multiplyAlpha(Color.green(expect), a2); in distance()
984 multiplyAlpha(Color.blue(expect), a2); in distance()
987 final int r = Color.red(actual) - Color.red(expect); in distance()
988 final int g = Color.green(actual) - Color.green(expect); in distance()
989 final int b = Color.blue(actual) - Color.blue(expect); in distance()
DMatrixTest.java523 String expect = "[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]"; in testToShortString() local
524 assertEquals(expect, mMatrix.toShortString()); in testToShortString()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dluts_for_speedup_f32.rsh32 // We expect back_focal_depth <= front_focal_depth.
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...