/frameworks/minikin/tests/unittest/ |
D | OptimalLineBreakerTest.cpp | 115 std::vector<LineBreakExpectation> expect = { in TEST_F() local 120 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 124 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 128 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 132 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 138 std::vector<LineBreakExpectation> expect = { in TEST_F() local 142 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 146 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 150 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 154 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() [all …]
|
D | GreedyLineBreakerTest.cpp | 105 std::vector<LineBreakExpectation> expect = { in TEST_F() local 110 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 116 std::vector<LineBreakExpectation> expect = { in TEST_F() local 121 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 128 std::vector<LineBreakExpectation> expect = { in TEST_F() local 135 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 142 std::vector<LineBreakExpectation> expect = { in TEST_F() local 151 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() 158 std::vector<LineBreakExpectation> expect = { in TEST_F() local 167 EXPECT_TRUE(sameLineBreak(expect, actual)) << toString(expect) << std::endl in TEST_F() [all …]
|
/frameworks/native/services/vr/virtual_touchpad/tests/ |
D | VirtualTouchpad_test.cpp | 120 UInputRecorder expect; in TEST_F() local 149 expect.Reset(); in TEST_F() 151 expect.Open(); in TEST_F() 153 expect.IoctlSetInt(UI_SET_PROPBIT, INPUT_PROP_DIRECT); in TEST_F() 155 expect.IoctlSetInt(UI_SET_EVBIT, EV_ABS); in TEST_F() 156 expect.IoctlSetInt(UI_SET_ABSBIT, ABS_MT_POSITION_X); in TEST_F() 157 expect.IoctlSetInt(UI_SET_ABSBIT, ABS_MT_POSITION_Y); in TEST_F() 159 expect.IoctlSetInt(UI_SET_ABSBIT, ABS_MT_SLOT); in TEST_F() 161 expect.IoctlSetInt(UI_SET_EVBIT, EV_REL); in TEST_F() 162 expect.IoctlSetInt(UI_SET_RELBIT, REL_WHEEL); in TEST_F() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CountryDetectorServiceTest.java | 99 @Rule public final Expect expect = Expect.create(); field in CountryDetectorServiceTest 132 expect.that(mCountryDetectorService.isListenerSet()).isFalse(); in addCountryListener_validListener_listenerAdded() 135 expect.that(mCountryDetectorService.isListenerSet()).isTrue(); in addCountryListener_validListener_listenerAdded() 144 expect.that(mCountryDetectorService.isListenerSet()).isTrue(); in removeCountryListener_validListener_listenerRemoved() 147 expect.that(mCountryDetectorService.isListenerSet()).isFalse(); in removeCountryListener_validListener_listenerRemoved() 154 expect.that(mCountryDetectorService.isSystemReady()).isFalse(); in addCountryListener_serviceNotReady_throwsException() 162 expect.that(mCountryDetectorService.isSystemReady()).isFalse(); in removeCountryListener_serviceNotReady_throwsException() 168 expect.that(mCountryDetectorService.isSystemReady()).isFalse(); in detectCountry_serviceNotReady_returnNull() 170 expect.that(mCountryDetectorService.detectCountry()).isNull(); in detectCountry_serviceNotReady_returnNull() 182 expect.that(countryListenerA.isNotified()).isFalse(); in notifyReceivers_twoListenersRegistered_bothNotified() [all …]
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 80 thrown.expect(SecurityException.class); in reportChange_noLogCompatChangePermission_throwsSecurityException() 98 thrown.expect(SecurityException.class); in reportChangeByPackageName_noLogCompatChangePermission_throwsSecurityException() 116 thrown.expect(SecurityException.class); in reportChangeByUid_noLogCompatChangePermission_throwsSecurityException() 132 thrown.expect(SecurityException.class); in isChangeEnabled_noReadCompatConfigPermission_throwsSecurityException() 141 thrown.expect(SecurityException.class); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException() 160 thrown.expect(SecurityException.class); in isChangeEnabledByPackageName_noReadCompatConfigPermission_throwsSecurityException() 169 thrown.expect(SecurityException.class); in isChangeEnabledByPackageName_noLogompatConfigPermission_throwsSecurityException() 188 thrown.expect(SecurityException.class); in isChangeEnabledByUid_noReadCompatConfigPermission_throwsSecurityException() 196 thrown.expect(SecurityException.class); in isChangeEnabledByUid_noLogCompatChangePermission_throwsSecurityException() 213 thrown.expect(SecurityException.class); in setOverrides_noOverridesPermission_throwsSecurityException() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | atomic.rscript | 7 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/base/core/tests/coretests/src/android/text/ |
D | PackedIntVectorTest.java | 96 int expect = i * j; in testBasic() local 99 expect += j + 27; in testBasic() 102 assertEquals(p.getValue(i, j), expect); in testBasic() local 112 int expect = i * j; in testBasic() local 115 expect += j + 27; in testBasic() 118 expect += j * j + 14; in testBasic() 121 assertEquals(p.getValue(i, j), expect); in testBasic() local
|
/frameworks/compile/slang/tests/ |
D | slang_test.py | 77 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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | atomic.rscript | 23 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);
|
D | bitfield.rscript | 36 // expect 4 bytes of padding here 39 // expect 4 bytes of padding here 47 // expect 4 bytes of padding here
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | atomic.rscript | 25 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);
|
D | bitfield.rscript | 38 // expect 4 bytes of padding here 41 // expect 4 bytes of padding here 49 // expect 4 bytes of padding here
|
/frameworks/native/libs/binder/tests/ |
D | binderTextOutputTest.cpp | 41 #define CHECK_LOG_(input, expect, singleline) \ argument 45 CheckMessage(cap, expect, singleline); \ 56 #define CHECK_LOG(input, expect) CHECK_LOG_(input, expect, true) argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | VersionInfoTest.java | 61 mThrown.expect(InvalidVersionException.class); in testIncorrectVersion() 69 mThrown.expect(InvalidVersionException.class); in testMissingRequired() 77 mThrown.expect(InvalidVersionException.class); in testMissingDependencies()
|
/frameworks/ml/nn/tools/test_generator/tests/ |
D | test.py | 78 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | Utils.java | 90 String expect = PLMNText[n]; in getMccMnc() local 91 int len = expect.endsWith("*") ? expect.length() - 1 : expect.length(); in getMccMnc() 92 if (!domain.get(n).regionMatches(0, expect, 0, len)) { in getMccMnc()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | BarChartInfoTest.java | 63 thrown.expect(IllegalStateException.class); in builder_noTitle_shouldThrowIllegalStateException() 117 thrown.expect(IllegalStateException.class); in addBarViewInfo_moreInfosThanMaxAllowed_shouldThrowIllegalStateException()
|
/frameworks/compile/slang/lit-tests/padding/ |
D | bitfield.rscript | 42 // expect 4 bytes of padding here 45 // expect 4 bytes of padding here 53 // expect 4 bytes of padding here
|
D | more_structs.rscript | 91 // expect 6 bytes of padding here 99 // expect 7 bytes of padding here 102 // expect 6 bytes of padding here 105 // expect 6 bytes of padding here
|
/frameworks/base/core/java/android/util/ |
D | JsonReader.java | 279 expect(JsonToken.BEGIN_ARRAY); in beginArray() 287 expect(JsonToken.END_ARRAY); in endArray() 295 expect(JsonToken.BEGIN_OBJECT); in beginObject() 303 expect(JsonToken.END_OBJECT); in endObject() 309 private void expect(JsonToken expected) throws IOException { in expect() method in JsonReader
|
/frameworks/native/cmds/dumpsys/ |
D | TEST_MAPPING | 5 // there are many other parts of Android that expect the output
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | PrintSpoolerService.java | 1151 expect(parser, XmlPullParser.START_TAG, TAG_SPOOLER); in parseStateLocked() 1159 expect(parser, XmlPullParser.END_TAG, TAG_SPOOLER); in parseStateLocked() 1221 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER_ID); in parsePrintJobLocked() 1237 expect(parser, XmlPullParser.END_TAG, TAG_PAGE_RANGE); in parsePrintJobLocked() 1281 expect(parser, XmlPullParser.END_TAG, TAG_MEDIA_SIZE); in parsePrintJobLocked() 1297 expect(parser, XmlPullParser.END_TAG, TAG_RESOLUTION); in parsePrintJobLocked() 1315 expect(parser, XmlPullParser.END_TAG, TAG_MARGINS); in parsePrintJobLocked() 1322 expect(parser, XmlPullParser.END_TAG, TAG_ATTRIBUTES); in parsePrintJobLocked() 1342 expect(parser, XmlPullParser.END_TAG, TAG_DOCUMENT_INFO); in parsePrintJobLocked() 1362 expect(parser, XmlPullParser.END_TAG, TAG_ADVANCED_OPTION); in parsePrintJobLocked() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | AnswerToResetTest.java | 88 ArrayList<AnswerToReset.InterfaceByte> expect = new ArrayList<>( in testAnswerToRestNoHistoricalByte() local 91 assertEquals(expect, atr.getInterfaceBytes()); in testAnswerToRestNoHistoricalByte() 107 byte[] expect = new byte[]{ in testAnswerToRestNoInterfaceByte() 110 assertTrue(Arrays.equals(atr.getHistoricalBytes().getRawData(), expect)); in testAnswerToRestNoInterfaceByte() local
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | FusedPrintersProvider.java | 885 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/wmtests/src/com/android/server/wm/ |
D | WindowManagerServiceTests.java | 42 mExpectedException.expect(UnsupportedOperationException.class); in testForceShowSystemBarsThrowsExceptionForNonAutomotive()
|