Home
last modified time | relevance | path

Searched refs:realObject (Results 1 – 25 of 50) sorted by relevance

12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowWifiInfo.java25 WifiInfo realObject; field in ShadowWifiInfo
29 directlyOn(realObject, WifiInfo.class).setInetAddress(address); in setInetAddress()
32 realObject, in setInetAddress()
41 directlyOn(realObject, WifiInfo.class).setMacAddress(newMacAddress); in setMacAddress()
43 directlyOn(realObject, WifiInfo.class, in setMacAddress()
50 directlyOn(realObject, WifiInfo.class, in setSSID()
54 directlyOn(realObject, WifiInfo.class, in setSSID()
57 directlyOn(realObject, WifiInfo.class).setSSID((WifiSsid) getWifiSsid(ssid)); in setSSID()
73 directlyOn(realObject, WifiInfo.class).setBSSID(bssid); in setBSSID()
75 directlyOn(realObject, WifiInfo.class, in setBSSID()
[all …]
DShadowRenderNodeAnimator.java21 @RealObject RenderNodeAnimator realObject; field in ShadowRenderNodeAnimator
39 directlyOn(realObject, RenderNodeAnimator.class, "moveToRunningState"); in moveToRunningState()
50 directlyOn(realObject, RenderNodeAnimator.class, "doStart"); in doStart()
58 directlyOn(realObject, RenderNodeAnimator.class).cancel(); in cancel()
61 int state = ReflectionHelpers.getField(realObject, "mState"); in cancel()
65 directlyOn(realObject, RenderNodeAnimator.class, "onFinished"); in cancel()
75 directlyOn(realObject, RenderNodeAnimator.class).end(); in end()
79 int state = ReflectionHelpers.getField(realObject, "mState"); in end()
84 directlyOn(realObject, RenderNodeAnimator.class, "onFinished"); in end()
110 long duration = realObject.getDuration();
[all …]
DShadowDisplay.java41 @RealObject Display realObject; field in ShadowDisplay
77 directlyOn(realObject, Display.class).getMetrics(outMetrics); in getMetrics()
98 directlyOn(realObject, Display.class).getRealMetrics(outMetrics); in getRealMetrics()
114 ? directlyOn(realObject, Display.class).getDisplayId() in getDisplayId()
127 ? directlyOn(realObject, Display.class).getRefreshRate() in getRefreshRate()
140 ? directlyOn(realObject, Display.class).getPixelFormat() in getPixelFormat()
183 ShadowDisplayManager.changeDisplay(realObject.getDisplayId(), in setDensityDpi()
198 ShadowDisplayManager.changeDisplay(realObject.getDisplayId(), in setXdpi()
213 ShadowDisplayManager.changeDisplay(realObject.getDisplayId(), in setYdpi()
251 ShadowDisplayManager.changeDisplay(realObject.getDisplayId(), in setName()
[all …]
DShadowLooper.java43 private @RealObject Looper realObject; field in ShadowLooper
78 invokeConstructor(Looper.class, realObject, from(boolean.class, quitAllowed)); in __constructor__()
80 mainLooper = realObject; in __constructor__()
82 loopingLoopers.put(Thread.currentThread(), realObject); in __constructor__() local
103 if (realObject != Looper.getMainLooper()) { in doLoop()
104 synchronized (realObject) { in doLoop()
107 realObject.wait(); in doLoop()
117 …if (realObject == Looper.getMainLooper()) throw new RuntimeException("Main thread not allowed to q… in quit()
127 synchronized (realObject) { in quitUnchecked()
129 realObject.notifyAll(); in quitUnchecked()
[all …]
DShadowDownloadManager.java71 @RealObject DownloadManager.Request realObject; field in ShadowDownloadManager.ShadowRequest
84 return getFieldReflectively("mUri", realObject, Uri.class); in getUri()
88 return getFieldReflectively("mDestinationUri", realObject, Uri.class); in getDestination()
92 return getFieldReflectively("mTitle", realObject, CharSequence.class); in getTitle()
96 return getFieldReflectively("mDescription", realObject, CharSequence.class); in getDescription()
100 return getFieldReflectively("mMimeType", realObject, CharSequence.class); in getMimeType()
104 return getFieldReflectively("mNotificationVisibility", realObject, Integer.class); in getNotificationVisibility()
108 return getFieldReflectively("mAllowedNetworkTypes", realObject, Integer.class); in getAllowedNetworkTypes()
112 return getFieldReflectively("mRoamingAllowed", realObject, Boolean.class); in getAllowedOverRoaming()
116 return getFieldReflectively("mMeteredAllowed", realObject, Boolean.class); in getAllowedOverMetered()
[all …]
DShadowScanResult.java12 @RealObject ScanResult realObject; field in ShadowScanResult
27 .append("SSID: ").append(valueOrNone(realObject.SSID)) in toString()
28 .append(", BSSID: ").append(valueOrNone(realObject.BSSID)) in toString()
29 .append(", capabilities: ").append(valueOrNone(realObject.capabilities)) in toString()
30 .append(", level: ").append(realObject.level) in toString()
31 .append(", frequency: ").append(realObject.frequency) in toString()
DShadowTabHost.java27 private TabHost realObject; field in ShadowTabHost
43 realObject.addView(indicatorAsView); in addTab()
131 TabSpec realObject; field in ShadowTabHost.ShadowTabSpec
181 return realObject; in setIndicator()
187 return realObject; in setIndicator()
194 return realObject; in setIndicator()
207 return realObject; in setContent()
213 return realObject; in setContent()
219 return realObject; in setContent()
DShadowWindowManagerImpl.java46 WindowManagerImpl realObject; field in ShadowWindowManagerImpl
51 views.put(realObject.getDefaultDisplay().getDisplayId(), view); in addView()
54 realObject, in addView()
63 views.remove(realObject.getDefaultDisplay().getDisplayId(), view); in removeView()
64 directlyOn(realObject, WindowManagerImpl.class, "removeView", in removeView()
69 return ImmutableList.copyOf(views.get(realObject.getDefaultDisplay().getDisplayId())); in getViews()
75 return directlyOn(realObject, WindowManagerImpl.class).getDefaultDisplay(); in getDefaultDisplay()
DShadowGestureDetector.java20 private GestureDetector realObject; field in ShadowGestureDetector
31 Shadow.invokeConstructor(GestureDetector.class, realObject, in __constructor__()
40 lastActiveGestureDetector = realObject; in onTouchEvent()
43 return directlyOn(realObject, GestureDetector.class).onTouchEvent(ev); in onTouchEvent()
48 directlyOn(realObject, GestureDetector.class).setOnDoubleTapListener(onDoubleTapListener); in setOnDoubleTapListener()
DShadowWifiP2pGroup.java13 private WifiP2pGroup realObject; field in ShadowWifiP2pGroup
16 directlyOn(realObject, WifiP2pGroup.class).setInterface(intf); in setInterface()
20 directlyOn(realObject, WifiP2pGroup.class).setInterface(passphrase); in setPassphrase()
24 directlyOn(realObject, WifiP2pGroup.class).setInterface(networkName); in setNetworkName()
DShadowArscAssetInputStream.java21 private AssetInputStream realObject; field in ShadowArscAssetInputStream
25 return realObject; in getDelegate()
32 assetPtr = ReflectionHelpers.callInstanceMethod(realObject, "getNativeAsset"); in getAsset()
35 ((Integer) ReflectionHelpers.callInstanceMethod(realObject, "getAssetInt")).longValue(); in getAsset()
DShadowMediaRouter.java24 private @RealObject MediaRouter realObject; field in ShadowMediaRouter
36 realObject, in addBluetoothRoute()
41 realObject.selectRoute(MediaRouter.ROUTE_TYPE_LIVE_AUDIO, getBluetoothA2dpRoute()); in addBluetoothRoute()
54 return realObject.getSelectedRoute(type).equals(getBluetoothA2dpRoute()); in isBluetoothRouteSelected()
DShadowCompoundButton.java15 @RealObject CompoundButton realObject; field in ShadowCompoundButton
22 …directlyOn(realObject, CompoundButton.class, "setButtonDrawable", from(int.class, buttonDrawableId… in setButtonDrawable()
28 …directlyOn(realObject, CompoundButton.class, "setButtonDrawable", from(Drawable.class, buttonDrawa… in setButtonDrawable()
DShadowFilter.java12 @RealObject private Filter realObject; field in ShadowFilter
20 filtering = ReflectionHelpers.callInstanceMethod(realObject, "performFiltering", in filter()
27 ReflectionHelpers.callInstanceMethod(realObject, "publishResults", in filter()
DShadowAsyncTaskLoader.java14 @RealObject private AsyncTaskLoader<D> realObject; field in ShadowAsyncTaskLoader
32 realObject.deliverResult(result); in onForceLoad()
49 return realObject.loadInBackground(); in call()
DShadowWifiConfiguration.java9 @RealObject private WifiConfiguration realObject; field in ShadowWifiConfiguration
13 return new WifiConfiguration(realObject); in copy()
DShadowSharedMemory.java40 @RealObject private SharedMemory realObject; field in ShadowSharedMemory
49 ReflectionHelpers.callInstanceMethod(realObject, "checkOpen"); in map()
101 return ReflectionHelpers.getField(realObject, "mFileDescriptor"); in getRealFileDescriptor()
DShadowLinearLayout.java10 @RealObject LinearLayout realObject; field in ShadowLinearLayout
13 return ReflectionHelpers.getField(realObject, "mGravity"); in getGravity()
DShadowAccessibilityButtonController.java14 @RealObject AccessibilityButtonController realObject; field in ShadowAccessibilityButtonController
18 ReflectionHelpers.callInstanceMethod(realObject, "dispatchAccessibilityButtonClicked"); in performAccessibilityButtonClick()
DShadowSharedPreferences.java19 @RealObject Object realObject; field in ShadowSharedPreferences.ShadowSharedPreferencesEditorImpl
23 Shadow.directlyOn(realObject, "android.app.SharedPreferencesImpl$EditorImpl", "apply"); in apply()
DShadowViewRootImpl.java28 @RealObject private ViewRootImpl realObject; field in ShadowViewRootImpl
46 ViewRootImpl component = realObject; in callDispatchResized()
144 return realObject.getView().getDisplay(); in getDisplay()
146 WindowManager windowManager = (WindowManager) realObject.getView().getContext() in getDisplay()
DShadowValueAnimator.java19 private ValueAnimator realObject; field in ShadowValueAnimator
51 directlyOn(realObject, ValueAnimator.class).setRepeatCount(count); in setRepeatCount()
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DClassicSuperHandlingTest.java31 private @RealObject Child realObject; field in ClassicSuperHandlingTest.ChildShadow
40 private @RealObject Parent realObject; field in ClassicSuperHandlingTest.ParentShadow
49 private @RealObject Grandparent realObject; field in ClassicSuperHandlingTest.GrandparentShadow
DThreadSafetyTest.java47 @RealObject InstrumentedThread realObject; field in ThreadSafetyTest.InstrumentedThreadShadow
50 Shadow.directlyOn(realObject, InstrumentedThread.class, "run"); in run()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowSwipeRefreshLayout.java13 @RealObject SwipeRefreshLayout realObject; field in ShadowSwipeRefreshLayout
19 Shadow.directlyOn(realObject, SwipeRefreshLayout.class).setOnRefreshListener(listener); in setOnRefreshListener()

12