Home
last modified time | relevance | path

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

12

/frameworks/native/services/vr/virtual_touchpad/tests/
DVirtualTouchpad_test.cpp113 void DumpDifference(const char* expect, const char* actual) { in DumpDifference() argument
115 while (*expect && *expect == *actual) { in DumpDifference()
116 putchar(*expect); in DumpDifference()
117 ++expect; in DumpDifference()
120 printf("\n expect: %s\n", expect); in DumpDifference()
131 UInputRecorder expect; in TEST_F() local
161 expect.Reset(); in TEST_F()
163 expect.Open(); in TEST_F()
165 expect.IoctlSetInt(UI_SET_PROPBIT, INPUT_PROP_DIRECT); in TEST_F()
167 expect.IoctlSetInt(UI_SET_EVBIT, EV_ABS); in TEST_F()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DListRowPresenterTest.java314 void expect(boolean shadowOverlayContainer, int shadowOverlayContainerOverlayColor, in expect() method in ListRowPresenterTest.ShadowOverlayResult
413 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest01()
417 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest01()
421 result.expect(false, 0, 0, false, false, in shadowOverlayContainerTest01()
438 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest02()
442 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest02()
446 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest02()
463 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest03()
467 result.expect(true, HALF_OVERLAY_COLOR, 0, false, false, in shadowOverlayContainerTest03()
471 result.expect(false, 0, 0, false, false, in shadowOverlayContainerTest03()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Datomic.rs7 uint32_t expect = (dst > src ? dst : src);
10 _RS_ASSERT(dst == expect);
17 uint32_t expect = (dst < src ? dst : src);
20 _RS_ASSERT(dst == expect);
27 uint32_t expect = (dst == cmp ? swp : dst);
30 _RS_ASSERT(dst == expect);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Datomic.rs25 uint32_t expect = (dst > src ? dst : src);
28 _RS_ASSERT(dst == expect);
35 uint32_t expect = (dst < src ? dst : src);
38 _RS_ASSERT(dst == expect);
45 uint32_t expect = (dst == cmp ? swp : dst);
48 _RS_ASSERT(dst == expect);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Datomic.rs23 uint32_t expect = (dst > src ? dst : src);
26 _RS_ASSERT(dst == expect);
33 uint32_t expect = (dst < src ? dst : src);
36 _RS_ASSERT(dst == expect);
43 uint32_t expect = (dst == cmp ? swp : dst);
46 _RS_ASSERT(dst == expect);
/frameworks/base/core/tests/coretests/src/android/text/
DPackedIntVectorTest.java93 int expect = i * j; in testBasic() local
96 expect += j + 27; in testBasic()
99 assertEquals(p.getValue(i, j), expect); in testBasic() local
109 int expect = i * j; in testBasic() local
112 expect += j + 27; in testBasic()
115 expect += j * j + 14; in testBasic()
118 assertEquals(p.getValue(i, j), expect); in testBasic() local
/frameworks/compile/slang/tests/
Dslang_test.py77 def CompareFiles(actual, expect): argument
83 if not os.path.isfile(expect):
85 print 'Could not find %s' % expect
88 return filecmp.cmp(actual, expect, False)
258 for expect in java_expect:
259 expect_base = expect[:-7] # strip ".expect" suffix
267 elif not CompareFiles(found[0], expect):
268 tests.fail('%s and %s are different' % (found[0], expect))
/frameworks/native/libs/binder/tests/
DbinderTextOutputTest.cpp42 #define CHECK_LOG_(input, expect, singleline) \ argument
46 CheckMessage(cap, expect, singleline); \
57 #define CHECK_LOG(input, expect) CHECK_LOG_(input, expect, true) argument
/frameworks/ml/nn/tools/test_generator/tests/
Dtest.py78 def CompareFiles(actual, expect): argument
84 if not os.path.isfile(expect):
86 print ('Could not find %s' % expect)
89 return filecmp.cmp(actual, expect, False)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/
DVersionInfoTest.java60 mThrown.expect(InvalidVersionException.class); in testIncorrectVersion()
68 mThrown.expect(InvalidVersionException.class); in testMissingRequired()
76 mThrown.expect(InvalidVersionException.class); in testMissingDependencies()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java87 String expect = PLMNText[n]; in getMccMnc() local
88 int len = expect.endsWith("*") ? expect.length() - 1 : expect.length(); in getMccMnc()
89 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc()
/frameworks/base/packages/Osu/src/com/android/hotspot2/
DUtils.java83 String expect = PLMNText[n]; in getMccMnc() local
84 int len = expect.endsWith("*") ? expect.length() - 1 : expect.length(); in getMccMnc()
85 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DStrictFragment.java68 for (int expect : expected) { in checkState()
69 if (mState == expect) { in checkState()
/frameworks/base/core/java/android/util/
DJsonReader.java277 expect(JsonToken.BEGIN_ARRAY); in beginArray()
285 expect(JsonToken.END_ARRAY); in endArray()
293 expect(JsonToken.BEGIN_OBJECT); in beginObject()
301 expect(JsonToken.END_OBJECT); in endObject()
307 private void expect(JsonToken expected) throws IOException { in expect() method in JsonReader
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java1108 expect(parser, XmlPullParser.START_TAG, TAG_SPOOLER); in parseState()
1116 expect(parser, XmlPullParser.END_TAG, TAG_SPOOLER); in parseState()
1178 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER_ID); in parsePrintJob()
1194 expect(parser, XmlPullParser.END_TAG, TAG_PAGE_RANGE); in parsePrintJob()
1238 expect(parser, XmlPullParser.END_TAG, TAG_MEDIA_SIZE); in parsePrintJob()
1254 expect(parser, XmlPullParser.END_TAG, TAG_RESOLUTION); in parsePrintJob()
1272 expect(parser, XmlPullParser.END_TAG, TAG_MARGINS); in parsePrintJob()
1279 expect(parser, XmlPullParser.END_TAG, TAG_ATTRIBUTES); in parsePrintJob()
1299 expect(parser, XmlPullParser.END_TAG, TAG_DOCUMENT_INFO); in parsePrintJob()
1319 expect(parser, XmlPullParser.END_TAG, TAG_ADVANCED_OPTION); in parsePrintJob()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java112 exception.expect(IllegalStateException.class); in clone_child_fails()
182 exception.expect(Exception.class);
347 exception.expect(IllegalArgumentException.class); in nestedAddViews()
366 exception.expect(IllegalArgumentException.class); in nestedLandscapeViews()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DFusedPrintersProvider.java885 expect(parser, XmlPullParser.START_TAG, TAG_PRINTERS); in parseState()
897 expect(parser, XmlPullParser.END_TAG, TAG_PRINTERS); in parseState()
914 expect(parser, XmlPullParser.START_TAG, TAG_PRINTER_ID); in parsePrinter()
921 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER_ID); in parsePrinter()
937 expect(parser, XmlPullParser.END_TAG, TAG_LOCATION); in parsePrinter()
958 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER); in parsePrinter()
963 private void expect(XmlPullParser parser, int type, String tag) in expect() method in FusedPrintersProvider.PersistenceManager.ReadTask
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java447 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in addRestrictBackgroundWhitelist()
568 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in removeRestrictBackgroundWhitelist()
605 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in addRestrictBackgroundBlacklist()
643 mPolicyListener.expect().onUidPoliciesChanged(anyInt(), anyInt()); in removeRestrictBackgroundBlacklist()
936 mPolicyListener.expect().onMeteredIfacesChanged(any()); in testNetworkPolicyAppliedCycleLastMonth()
951 mPolicyListener.expect().onMeteredIfacesChanged(any()); in testNetworkPolicyAppliedCycleLastMonth()
986 mPolicyListener.expect().onMeteredIfacesChanged(any()); in testOverWarningLimitNotification()
1005 mPolicyListener.expect().onMeteredIfacesChanged(any()); in testOverWarningLimitNotification()
1059 mPolicyListener.expect().onMeteredIfacesChanged(any()); in testOverWarningLimitNotification()
1094 mPolicyListener.expect().onMeteredIfacesChanged(any()); in testMeteredNetworkWithoutLimit()
[all …]
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
DPathInterpolatorExceptionParameterizedTest.java68 thrown.expect(RuntimeException.class); in testPathMorphingExceptions()
/frameworks/support/dynamic-animation/tests/src/android/support/dynamicanimation/tests/
DSpringTests.java372 mExpectedException.expect(IllegalArgumentException.class); in testInvalidStiffness()
382 mExpectedException.expect(IllegalArgumentException.class); in testInvalidDampingRatio()
698 mExpectedException.expect(AndroidRuntimeException.class); in testStartOnNonMainThread()
708 mExpectedException.expect(AndroidRuntimeException.class); in testCancelOnNonMainThread()
718 mExpectedException.expect(AndroidRuntimeException.class); in testSkipToEndOnNonMainThread()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DAsyncListUtilTest.java220 mTilesFilledLatch.expect(positions); in expectTiles()
318 void expect(int ... positions) { in expect() method in AsyncListUtilTest.PositionSetLatch
/frameworks/compile/slang/tests/F_reduce_general_parse/
Dstderr.txt.expect14 reduce_general_parse.rs:20:56: error: did not expect '(' here for '#pragma rs reduce'
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
DHTTPRequest.java284 String nonce, String cnonce, String nc, String qop, String expect) in test() argument
305 System.out.println("Success: " + responseString.equals(expect)); in test()
/frameworks/opt/bitmap/src/com/android/bitmap/
DContiguousFIFOAggregator.java94 public void expect(final T key, final Callback<T> callback) { in expect() method in ContiguousFIFOAggregator
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dluts_for_speedup_f32.rsh32 // We expect back_focal_depth <= front_focal_depth.

12