Home
last modified time | relevance | path

Searched refs:Shadow (Results 1 – 25 of 261) sorted by relevance

1234567891011

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowToast.java12 import org.robolectric.shadow.api.Shadow;
39 ShadowToast shadowToast = Shadow.extract(toast); in makeText()
46 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show()
132 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in reset()
144 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in shownToastCount()
157 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in showedCustomToast()
174 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in showedToast()
176 ShadowToast shadowToast = Shadow.extract(toast); in showedToast()
191 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getTextOfLatestToast()
197 ShadowToast shadowToast = Shadow.extract(latestToast); in getTextOfLatestToast()
[all …]
DShadowBluetoothGatt.java15 import org.robolectric.shadow.api.Shadow;
25 Shadow.class.getClassLoader().loadClass("android.bluetooth.IBluetoothGatt"); in newInstance()
30 Shadow.newInstance( in newInstance()
42 Shadow.newInstance( in newInstance()
50 Shadow.newInstance( in newInstance()
58 Shadow.newInstance( in newInstance()
DShadowAlertDialog.java12 import org.robolectric.shadow.api.Shadow;
32 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestAlertDialog()
48 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in reset()
59 ShadowListView shadowListView = Shadow.extract(realAlertDialog.getListView()); in clickOnItem()
94 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show()
121 return (ShadowAlertController) Shadow.extract(alertController); in getShadowAlertController()
DShadowViewGroup.java3 import static org.robolectric.shadow.api.Shadow.directlyOn;
13 import org.robolectric.shadow.api.Shadow;
26 ShadowLooper shadowLooper = Shadow.extract(Looper.getMainLooper()); in addView()
45 ShadowView shadowView = Shadow.extract(child); in innerText()
67 ShadowView shadowChild = Shadow.extract(child); in dump()
89 ShadowView shadowView = Shadow.extract(child); in removedChild()
DShadowDrawable.java22 import org.robolectric.shadow.api.Shadow;
49 ShadowBitmapDrawable shadowBitmapDrawable = Shadow.extract(drawable); in createFromStream()
91 ShadowBitmapDrawable shadowBitmapDrawable = Shadow.extract(drawable); in createFromPath()
99 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in createFromResourceId()
102 ShadowBitmapDrawable shadowBitmapDrawable = Shadow.extract(drawable); in createFromResourceId()
150 Shadow.directlyOn(realDrawable, Drawable.class).setAlpha(alpha); in setAlpha()
156 Shadow.directlyOn(realDrawable, Drawable.class, "invalidateSelf"); in invalidateSelf()
DShadowListPopupWindow.java3 import static org.robolectric.shadow.api.Shadow.directlyOn;
10 import org.robolectric.shadow.api.Shadow;
20 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in show()
26 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestListPopupWindow()
DShadowBitmapFactory.java4 import static org.robolectric.shadow.api.Shadow.directlyOn;
27 import org.robolectric.shadow.api.Shadow;
67 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeResource()
80 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeFile()
90 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeFileDescriptor()
106 ShadowAssetInputStream sais = Shadow.extract(is); in decodeStream()
129 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeStream()
137 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in decodeByteArray()
164 Bitmap bitmap = Shadow.newInstanceOf(Bitmap.class); in create()
165 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in create()
DShadowBitmap.java23 import org.robolectric.shadow.api.Shadow;
68 ShadowBitmap shadowBitmap = Shadow.extract(bitmap); in visualize()
214 ShadowBitmap shadowBitmap = Shadow.extract(scaledBitmap); in createBitmap()
230 ShadowBitmap shadowBitmap = Shadow.extract(src); in createBitmap()
243 ShadowBitmap shadowBitmap = Shadow.extract(scaledBitmap); in createScaledBitmap()
245 ShadowBitmap shadowSrcBitmap = Shadow.extract(src); in createScaledBitmap()
267 ShadowBitmap shadowBitmap = Shadow.extract(newBitmap); in createBitmap()
269 ShadowBitmap shadowSrcBitmap = Shadow.extract(src); in createBitmap()
305 ShadowBitmap shadowNewBitmap = Shadow.extract(newBitmap); in createBitmap()
307 ShadowBitmap shadowSrcBitmap = Shadow.extract(src); in createBitmap()
[all …]
DShadowPopupMenu.java3 import static org.robolectric.shadow.api.Shadow.directlyOn;
10 import org.robolectric.shadow.api.Shadow;
45 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in getLatestPopupMenu()
51 ShadowApplication shadowApplication = Shadow.extract(RuntimeEnvironment.application); in setLatestPopupMenu()
DShadowBitmapDrawable.java3 import static org.robolectric.shadow.api.Shadow.directlyOn;
14 import org.robolectric.shadow.api.Shadow;
43 ShadowBitmapDrawable shadow = Shadow.extract(real); in mutate()
65 ShadowBitmap shadowBitmap = Shadow.extract(realBitmapDrawable.getBitmap()); in getCreatedFromResId()
DShadowInputDevice.java6 import org.robolectric.shadow.api.Shadow;
13 InputDevice inputDevice = Shadow.newInstanceOf(InputDevice.class); in makeInputDeviceNamed()
14 ShadowInputDevice shadowInputDevice = Shadow.extract(inputDevice); in makeInputDeviceNamed()
DShadowMessage.java6 import static org.robolectric.shadow.api.Shadow.directlyOn;
21 import org.robolectric.shadow.api.Shadow;
137 return Shadow.extract(looper); in shadowOf()
141 return Shadow.extract(mq); in shadowOf()
DShadowSensor.java8 import org.robolectric.shadow.api.Shadow;
19 Sensor sensor = Shadow.newInstanceOf(Sensor.class); in newInstance()
21 Shadow.directlyOn(sensor, Sensor.class, "setType", ClassParameter.from(int.class, type)); in newInstance()
DShadowAccessibilityWindowInfo.java16 import org.robolectric.shadow.api.Shadow;
68 final ShadowAccessibilityWindowInfo shadowInfo = Shadow.extract(window); in obtain()
78 final ShadowAccessibilityWindowInfo newShadow = Shadow.extract(newInfo); in getClone()
114 final ShadowAccessibilityWindowInfo shadow = Shadow.extract(wrapper.mInfo); in areThereUnrecycledWindows()
136 final ShadowAccessibilityWindowInfo otherShadow = Shadow.extract(window); in equals()
287 ((ShadowAccessibilityWindowInfo) Shadow.extract(child)).parent = in addChild()
/external/compiler-rt/lib/esan/
Dworking_set.cpp92 byte *Shadow = (byte *)appToShadow(Addr); in processRangeAccessWorkingSet() local
94 while (I < NumLines && (uptr)Shadow % 4 != 0) { in processRangeAccessWorkingSet()
95 if ((*Shadow & ShadowAccessedVal) != ShadowAccessedVal) in processRangeAccessWorkingSet()
96 *Shadow |= ShadowAccessedVal; in processRangeAccessWorkingSet()
97 ++Shadow; in processRangeAccessWorkingSet()
106 if ((*(u32*)Shadow & WordValue) != WordValue) in processRangeAccessWorkingSet()
107 *(u32*)Shadow |= WordValue; in processRangeAccessWorkingSet()
108 Shadow += 4; in processRangeAccessWorkingSet()
113 if ((*Shadow & ShadowAccessedVal) != ShadowAccessedVal) in processRangeAccessWorkingSet()
114 *Shadow |= ShadowAccessedVal; in processRangeAccessWorkingSet()
[all …]
/external/robolectric-shadows/processor/src/test/resources/org/robolectric/
DRobolectric_InnerClassCollision.java15 import org.robolectric.shadow.api.Shadow;
32 return (ShadowDummy) Shadow.extract(actual); in shadowOf()
36 return (ShadowOuterDummy) Shadow.extract(actual); in shadowOf()
40 return (ShadowOuterDummy.ShadowInnerDummy) Shadow.extract(actual); in shadowOf()
44 return (ShadowUniqueDummy) Shadow.extract(actual); in shadowOf()
48 return (ShadowUniqueDummy.ShadowInnerDummy) Shadow.extract(actual); in shadowOf()
52 return (ShadowUniqueInnerDummy) Shadow.extract(actual); in shadowOf()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_update_shadow_word_inl.h30 if (Shadow::Addr0AndSizeAreEqual(cur, old)) {
33 if (Shadow::TidsAreEqual(old, cur)) {
50 if (Shadow::TwoRangesIntersect(old, cur, kAccessSize)) {
52 if (Shadow::TidsAreEqual(old, cur)) {
Dtsan_rtl.h159 friend class Shadow;
176 class Shadow : public FastState {
178 explicit Shadow(u64 x) in Shadow() function
182 explicit Shadow(const FastState &s) in Shadow() function
218 static inline bool TidsAreEqual(const Shadow s1, const Shadow s2) { in TidsAreEqual()
225 bool Addr0AndSizeAreEqual(const Shadow s1, const Shadow s2) { in Addr0AndSizeAreEqual()
230 static ALWAYS_INLINE bool TwoRangesIntersect(Shadow s1, Shadow s2, in TwoRangesIntersect()
307 static bool TwoRangesIntersectSlow(const Shadow s1, const Shadow s2) { in TwoRangesIntersectSlow()
561 void AddMemoryAccess(uptr addr, Shadow s, StackTrace stack,
663 u64 *shadow_mem, Shadow cur);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTest.java11 import org.robolectric.shadow.api.Shadow;
25 assertThat(Shadow.newInstanceOf(Activity.class.getName()).getClass().getClassLoader()) in newInstanceOf()
32 assertThat((ShadowActivity) Shadow.extract(activity)).isSameAs(shadowOf(activity)); in extractor()
38 assertThat(Shadow.<Object>extract(activity)).isSameAs(shadowOf(activity)); in otherDeprecated_extractor()
DShadowPaintTest.java13 import org.robolectric.shadow.api.Shadow;
20 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetIsDitherInfo()
29 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetIsAntiAlias()
59 Paint paint = Shadow.newInstanceOf(Paint.class); in shouldGetAndSetTextAlignment()
67 Paint paint = Shadow.newInstanceOf(Paint.class); in measureTextActuallyMeasuresLength()
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DThreadSafetyTest.java14 import org.robolectric.shadow.api.Shadow;
27 Object shadowFromThisThread = Shadow.extract(instrumentedThread); in shadowCreationShouldBeThreadsafe()
41 shadowFromOtherThread = Shadow.extract(this); in run()
50 Shadow.directlyOn(realObject, InstrumentedThread.class, "run"); in run()
DRobolectricInternalsTest.java12 import org.robolectric.shadow.api.Shadow;
31 Shadow.invokeConstructor(Constructors.class, a); in getConstructor_withNoParams()
43 Shadow.invokeConstructor(Constructors.class, a, ClassParameter.from(String.class, PARAM1)); in getConstructor_withOneClassParam()
57Shadow.invokeConstructor(Constructors.class, a, ClassParameter.from(String.class, PARAM1), ClassPa… in getConstructor_withTwoClassParams()
74Shadow.invokeConstructor(Constructors.class, a, ClassParameter.from(String.class, PARAM1), ClassPa… in getConstructor_withThreeClassParams()
81 Object shadow = Shadow.extract(realObject); in shadowOf()
/external/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp301 Value *Shadow; member
320 void setShadow(Instruction *I, Value *Shadow);
325 void storeShadow(Value *Addr, uint64_t Size, uint64_t Align, Value *Shadow,
893 Value *&Shadow = ValShadowMap[V]; in getShadow() local
894 if (!Shadow) { in getShadow()
905 Shadow = IRB.CreateLoad(getArgTLS(A->getArgNo(), ArgTLSPos)); in getShadow()
913 Shadow = &*i; in getShadow()
914 assert(Shadow->getType() == DFS.ShadowTy); in getShadow()
918 NonZeroChecks.push_back(Shadow); in getShadow()
920 Shadow = DFS.ZeroShadow; in getShadow()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DDataFlowSanitizer.cpp401 Value *Shadow; member
419 void setShadow(Instruction *I, Value *Shadow);
424 void storeShadow(Value *Addr, uint64_t Size, uint64_t Align, Value *Shadow,
1005 Value *&Shadow = ValShadowMap[V]; in getShadow() local
1006 if (!Shadow) { in getShadow()
1017 Shadow = IRB.CreateLoad(getArgTLS(A->getArgNo(), ArgTLSPos)); in getShadow()
1025 Shadow = &*i; in getShadow()
1026 assert(Shadow->getType() == DFS.ShadowTy); in getShadow()
1030 NonZeroChecks.push_back(Shadow); in getShadow()
1032 Shadow = DFS.ZeroShadow; in getShadow()
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cc19 TEST(Shadow, FastState) { in TEST() argument
20 Shadow s(FastState(11, 22)); in TEST()
49 TEST(Shadow, Mapping) { in TEST() argument
64 TEST(Shadow, Celling) { in TEST() argument

1234567891011