Home
last modified time | relevance | path

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

1234

/frameworks/rs/java/tests/RSTest_CompatLib/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/java/tests/RsTest/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/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerTest.java20 import static org.easymock.EasyMock.expect;
73 expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient(), in testGetAccessibilityServiceList()
76 expect(mockServiceInterface.getInstalledAccessibilityServiceList(UserHandle.USER_OWNER)) in testGetAccessibilityServiceList()
97 expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient(), in testInterrupt()
116 expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient(), in testIsEnabled()
153 expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient(), in testSendAccessibilityEvent_AccessibilityEnabled()
156 expect(mockServiceInterface.sendAccessibilityEvent(eqAccessibilityEvent(sentEvent), in testSendAccessibilityEvent_AccessibilityEnabled()
158 expect(mockServiceInterface.sendAccessibilityEvent(eqAccessibilityEvent(sentEvent), in testSendAccessibilityEvent_AccessibilityEnabled()
191 expect(mockServiceInterface.addClient(anyIAccessibilityManagerClient(), in testSendAccessibilityEvent_AccessibilityDisabled()
DNetworkPolicyManagerServiceTest.java45 import static org.easymock.EasyMock.expect;
202 expect(mPolicyListener.asBinder()).andReturn(mStubBinder).atLeastOnce(); in setUp()
219 expect(mPowerManager.isInteractive()).andReturn(true).atLeastOnce(); in setUp()
220 expect(mNetworkManager.isBandwidthControlEnabled()).andReturn(true).atLeastOnce(); in setUp()
334 expect(mPowerManager.isInteractive()).andReturn(false).atLeastOnce(); in testScreenChangesRules()
344 expect(mPowerManager.isInteractive()).andReturn(true).atLeastOnce(); in testScreenChangesRules()
593 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in testNetworkPolicyAppliedCycleLastMonth()
606 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in testNetworkPolicyAppliedCycleLastMonth()
612 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, TIME_MAR_10)) in testNetworkPolicyAppliedCycleLastMonth()
674 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in testOverWarningLimitNotification()
[all …]
DNetworkStatsServiceTest.java46 import static org.easymock.EasyMock.expect;
889 expect(mNetManager.isBandwidthControlEnabled()).andReturn(true).atLeastOnce(); in expectSystemReady()
893 expect(mConnManager.getAllNetworkState()).andReturn(state).atLeastOnce(); in expectNetworkState()
896 expect(mConnManager.getActiveLinkProperties()).andReturn(linkProp).atLeastOnce(); in expectNetworkState()
905 expect(mNetManager.getNetworkStatsSummaryDev()).andReturn(summary).atLeastOnce(); in expectNetworkStatsSummaryDev()
909 expect(mNetManager.getNetworkStatsSummaryXt()).andReturn(summary).atLeastOnce(); in expectNetworkStatsSummaryXt()
919 expect(mNetManager.getNetworkStatsUidDetail(eq(UID_ALL))).andReturn(detail).atLeastOnce(); in expectNetworkStatsUidDetail()
922 expect(mNetManager.getNetworkStatsTethering()) in expectNetworkStatsUidDetail()
932 expect(mSettings.getPollInterval()).andReturn(HOUR_IN_MILLIS).anyTimes(); in expectSettings()
933 expect(mSettings.getTimeCacheMaxAge()).andReturn(DAY_IN_MILLIS).anyTimes(); in expectSettings()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DPackedIntVectorTest.java84 int expect = i * j; in testBasic() local
87 expect += j + 27; in testBasic()
90 assertEquals(p.getValue(i, j), expect); in testBasic() local
100 int expect = i * j; in testBasic() local
103 expect += j + 27; in testBasic()
106 expect += j * j + 14; in testBasic()
109 assertEquals(p.getValue(i, j), expect); in testBasic() local
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java150 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsEqualToBufferSize()
165 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsMoreThanBufferSize()
189 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testFlushAllWithSomeContents()
205 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsAfterFlushAll()
226 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsWithDifferentSizePerContentType()
230 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsWithDifferentSizePerContentType()
234 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsWithDifferentSizePerContentType()
238 EasyMock.expect(mMockProvider.bulkInsert(mPackageName, in testInsertContentsWithDifferentSizePerContentType()
/frameworks/compile/slang/tests/
Dtest.py29 def CompareFiles(actual, expect): argument
35 if not os.path.isfile(expect):
37 print 'Could not find %s' % expect
40 return filecmp.cmp(actual, expect, False)
/frameworks/base/docs/html/training/
Dbuilding-multimedia.jd9 create rich multimedia apps that behave the way users expect.</p>
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerService.java973 expect(parser, XmlPullParser.START_TAG, TAG_SPOOLER); in parseState()
981 expect(parser, XmlPullParser.END_TAG, TAG_SPOOLER); in parseState()
1026 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER_ID); in parsePrintJob()
1042 expect(parser, XmlPullParser.END_TAG, TAG_PAGE_RANGE); in parsePrintJob()
1080 expect(parser, XmlPullParser.END_TAG, TAG_MEDIA_SIZE); in parsePrintJob()
1096 expect(parser, XmlPullParser.END_TAG, TAG_RESOLUTION); in parsePrintJob()
1114 expect(parser, XmlPullParser.END_TAG, TAG_MARGINS); in parsePrintJob()
1121 expect(parser, XmlPullParser.END_TAG, TAG_ATTRIBUTES); in parsePrintJob()
1141 expect(parser, XmlPullParser.END_TAG, TAG_DOCUMENT_INFO); in parsePrintJob()
1161 expect(parser, XmlPullParser.END_TAG, TAG_ADVANCED_OPTION); in parsePrintJob()
[all …]
/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/ui/
DFusedPrintersProvider.java588 expect(parser, XmlPullParser.START_TAG, TAG_PRINTERS); in parseState()
600 expect(parser, XmlPullParser.END_TAG, TAG_PRINTERS); in parseState()
617 expect(parser, XmlPullParser.START_TAG, TAG_PRINTER_ID); in parsePrinter()
624 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER_ID); in parsePrinter()
638 expect(parser, XmlPullParser.END_TAG, TAG_PRINTER); in parsePrinter()
643 private void expect(XmlPullParser parser, int type, String tag) in expect() method in FusedPrintersProvider.PersistenceManager.ReadTask
/frameworks/base/docs/html/guide/topics/media/
Dindex.jd31 <p>Android users get used to using the back key. We expect the volume keys to work in some
32 intuitive fashion. We expect that the home key behaves in a manner consistent with the Android
/frameworks/ex/variablespeed/jni/
Dvariablespeed.h67 static bool CompareAndSetEngine(AudioEngine* expect, AudioEngine* update);
/frameworks/base/docs/html/training/keyboard-input/
Dnavigation.jd72 <p>Look for any instances in which the focus moves in a way you don't expect.</p>
77 <p>Look for any instances in which the focus moves in a way you don't expect.</p>
82 does not do what you expect, specify where the focus should go in your layout, as discussed
Dindex.jd24 about the type of input you expect (such as
Dcommands.jd35 android.view.KeyEvent} class and related APIs, you should expect that such keyboard
/frameworks/base/docs/html/training/managing-audio/
Daudio-focus.jd50 <p>You must specify which stream you're using and whether you expect to require transient or
51 permanent audio focus. Request transient focus when you expect to play audio for only a short time
134 those events&mdash;and abandoning your audio focus. At that point, you would expect a user action
Daudio-output.jd66 typically expect the playback to be paused&mdash;while for games you may choose to significantly
/frameworks/base/docs/html/design/tv/
Dprinciples.jd17 <p>Users expect immediate access to content when they turn on a TV. Get users into the action
Dstyle.jd12 steadily increased over time, users expect TV experiences to be relatively simple and
95 (typically about 10 feet away) makes it harder for users to read text. Users also don't expect to
/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/base/docs/html/training/custom-views/
Dindex.jd58 <dd>Users expect a view to react smoothly and naturally to input gestures.
/frameworks/base/docs/html/training/basics/activity-lifecycle/
Dpausing.jd71 <li>Commit unsaved changes, but only if users expect such changes to be permanently saved when
98 is when you're certain users expect the changes to be auto-saved (such as when drafting an email).
/frameworks/base/docs/html/guide/webapps/
Dindex.jd37 application that you at least expect to be available on Android-powered devices (which you should

1234