/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowDisplayTest.java | 24 private ShadowDisplay shadow; field in ShadowDisplayTest 29 shadow = Shadows.shadowOf(display); in setUp() 34 shadow.setDensity(1.5f); in shouldProvideDisplayMetrics() 35 shadow.setDensityDpi(DisplayMetrics.DENSITY_HIGH); in shouldProvideDisplayMetrics() 36 shadow.setScaledDensity(1.6f); in shouldProvideDisplayMetrics() 37 shadow.setWidth(1024); in shouldProvideDisplayMetrics() 38 shadow.setHeight(600); in shouldProvideDisplayMetrics() 39 shadow.setRealWidth(1400); in shouldProvideDisplayMetrics() 40 shadow.setRealHeight(900); in shouldProvideDisplayMetrics() 41 shadow.setXdpi(183.0f); in shouldProvideDisplayMetrics() [all …]
|
D | ShadowAccessibilityNodeInfoTest.java | 27 private ShadowAccessibilityNodeInfo shadow; field in ShadowAccessibilityNodeInfoTest 82 shadow = shadowOf(node); in shouldNotHaveInfiniteLoopWithDifferentLoopedChildren() 84 shadow.addChild(child1); in shouldNotHaveInfiniteLoopWithDifferentLoopedChildren() 102 shadow = shadowOf(node); in shouldRecordFlagsProperly() 103 shadow.setPasteable(false); in shouldRecordFlagsProperly() 104 assertThat(shadow.isClickable()).isEqualTo(false); in shouldRecordFlagsProperly() 105 assertThat(shadow.isPasteable()).isEqualTo(false); in shouldRecordFlagsProperly() 107 shadow.setTextSelectionSetable(true); in shouldRecordFlagsProperly() 108 shadow.addAction(AccessibilityNodeInfo.ACTION_SET_SELECTION); in shouldRecordFlagsProperly() 110 assertThat(shadow.getActions()).isEqualTo(AccessibilityNodeInfo.ACTION_SET_SELECTION); in shouldRecordFlagsProperly() [all …]
|
D | ShadowContentProviderOperationTest.java | 30 ShadowContentProviderOperation shadow = Shadows.shadowOf(op); in reflectionShouldWork() local 31 assertThat(shadow.getType()).isEqualTo(ShadowContentProviderOperation.TYPE_INSERT); in reflectionShouldWork() 32 assertThat(shadow.getContentValues().getAsString("insertKey")).isEqualTo("insertValue"); in reflectionShouldWork() 33 assertThat(shadow.getValuesBackReferences().getAsInteger("backKey")).isEqualTo(2); in reflectionShouldWork() 42 shadow = Shadows.shadowOf(op); in reflectionShouldWork() 43 assertThat(shadow.getType()).isEqualTo(ShadowContentProviderOperation.TYPE_UPDATE); in reflectionShouldWork() 44 assertThat(shadow.getContentValues().getAsString("updateKey")).isEqualTo("updateValue"); in reflectionShouldWork() 45 assertThat(shadow.getSelection()).isEqualTo("a=? and b=?"); in reflectionShouldWork() 46 assertThat(shadow.getSelectionArgs()).containsExactly("abc"); in reflectionShouldWork() 47 …assertThat(shadow.getSelectionArgsBackReferences()).isEqualTo(Collections.<Integer, Integer>single… in reflectionShouldWork() [all …]
|
D | ShadowProgressDialogTest.java | 19 private ShadowProgressDialog shadow; field in ShadowProgressDialogTest 24 shadow = Shadows.shadowOf(dialog); in setUp() 29 assertThat(shadow).isInstanceOf(ShadowAlertDialog.class); in shouldExtendAlertDialog() 35 shadow.callOnCreate(null); in shouldPutTheMessageIntoTheView() 37 View dialogView = shadow.getView(); in shouldPutTheMessageIntoTheView() 40 assertThat(shadowOf(shadow.getView()).innerText()).contains(message); in shouldPutTheMessageIntoTheView() 72 assertThat(shadow.getProgressStyle()).isEqualTo(ProgressDialog.STYLE_SPINNER); in shouldGetProgressStyle() 75 assertThat(shadow.getProgressStyle()).isEqualTo(ProgressDialog.STYLE_HORIZONTAL); in shouldGetProgressStyle() 78 assertThat(shadow.getProgressStyle()).isEqualTo(ProgressDialog.STYLE_SPINNER); in shouldGetProgressStyle() 84 shadow.callOnCreate(null); in horizontalStyle_shouldGetMessage() [all …]
|
D | ShadowInputMethodManagerTest.java | 20 private ShadowInputMethodManager shadow; field in ShadowInputMethodManagerTest 25 shadow = Shadows.shadowOf(manager); in setUp() 30 assertThat(shadow.isSoftInputVisible()).isFalse(); in shouldRecordSoftInputVisibility() 33 assertThat(shadow.isSoftInputVisible()).isTrue(); in shouldRecordSoftInputVisibility() 36 assertThat(shadow.isSoftInputVisible()).isFalse(); in shouldRecordSoftInputVisibility() 41 assertThat(shadow.isSoftInputVisible()).isFalse(); in shouldToggleSoftInputVisibility() 44 assertThat(shadow.isSoftInputVisible()).isTrue(); in shouldToggleSoftInputVisibility() 47 assertThat(shadow.isSoftInputVisible()).isFalse(); in shouldToggleSoftInputVisibility() 54 shadow.setSoftInputVisibilityHandler(mockHandler); in shouldNotifyHandlerWhenVisibilityChanged() 55 assertThat(shadow.isSoftInputVisible()).isFalse(); in shouldNotifyHandlerWhenVisibilityChanged()
|
D | ShadowSslErrorHandlerTest.java | 11 import org.robolectric.shadow.api.Shadow; 17 private ShadowSslErrorHandler shadow; field in ShadowSslErrorHandlerTest 22 shadow = Shadows.shadowOf(handler); in setUp() 27 assertThat(shadow).isInstanceOf(ShadowHandler.class); in shouldInheritFromShadowHandler() 32 assertThat(shadow.wasCancelCalled()).isFalse(); in shouldRecordCancel() 34 assertThat(shadow.wasCancelCalled()).isTrue(); in shouldRecordCancel() 39 assertThat(shadow.wasProceedCalled()).isFalse(); in shouldRecordProceed() 41 assertThat(shadow.wasProceedCalled()).isTrue(); in shouldRecordProceed()
|
D | ShadowPendingIntentTest.java | 42 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getBroadcast_shouldCreateIntentForBroadcast() local 43 assertThat(shadow.isActivityIntent()).isFalse(); in getBroadcast_shouldCreateIntentForBroadcast() 44 assertThat(shadow.isBroadcastIntent()).isTrue(); in getBroadcast_shouldCreateIntentForBroadcast() 45 assertThat(shadow.isServiceIntent()).isFalse(); in getBroadcast_shouldCreateIntentForBroadcast() 46 assertThat(intent).isEqualTo(shadow.getSavedIntent()); in getBroadcast_shouldCreateIntentForBroadcast() 47 assertThat(context).isEqualTo(shadow.getSavedContext()); in getBroadcast_shouldCreateIntentForBroadcast() 48 assertThat(shadow.getRequestCode()).isEqualTo(99); in getBroadcast_shouldCreateIntentForBroadcast() 49 assertThat(shadow.getFlags()).isEqualTo(100); in getBroadcast_shouldCreateIntentForBroadcast() 57 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getActivity_shouldCreateIntentForBroadcast() local 58 assertThat(shadow.isActivityIntent()).isTrue(); in getActivity_shouldCreateIntentForBroadcast() [all …]
|
D | ShadowSensorManagerTest.java | 21 import org.robolectric.shadow.api.Shadow; 27 private ShadowSensorManager shadow; field in ShadowSensorManagerTest 32 shadow = shadowOf(sensorManager); in setup() 38 shadow = null; in tearDown() 55 assertThat(shadow.hasListener(listener)).isTrue(); in shouldReturnHasListenerAfterRegisteringListener() 71 assertThat(shadow.hasListener(listener)).isFalse(); in shouldReturnHasNoListenerAfterUnregisterListener() 79 assertThat(shadow.hasListener(listener)).isFalse(); in shouldReturnHasNoListenerAfterUnregisterListenerWithoutSpecificSensor() 86 assertThat(shadow.hasListener(listener)).isFalse(); in shouldReturnHasNoListenerByDefault() 91 assertThat(shadow.createSensorEvent() instanceof SensorEvent).isTrue(); in shouldCreateSensorEvent()
|
D | ShadowAccessibilityEventTest.java | 21 private ShadowAccessibilityEvent shadow; field in ShadowAccessibilityEventTest 28 shadow = shadowOf(event); in setUp() 29 assertThat(shadow != null).isEqualTo(true); in setUp() 49 shadow.setEventType(AccessibilityEvent.TYPE_ANNOUNCEMENT); in shouldBeEqualToClonedEvent() 71 assertThat(shadow.getSourceRoot()).isEqualTo(rootView); in shouldHaveCurrentSourceId() 72 assertThat(shadow.getVirtualDescendantId()).isEqualTo(ShadowAccessibilityRecord.NO_VIRTUAL_ID); in shouldHaveCurrentSourceId() 74 assertThat(shadow.getVirtualDescendantId()).isEqualTo(1); in shouldHaveCurrentSourceId() 79 shadow.recycle(); in tearDown()
|
D | ShadowDownloadManagerTest.java | 23 private final ShadowRequest shadow = shadowOf(request); field in ShadowDownloadManagerTest 27 assertThat(shadow.getUri().toString()).isEqualTo("http://example.com/foo.mp4"); in request_shouldGetUri() 33 assertThat(shadow.getDestination().toString()).isEqualTo("/storage/media/foo.mp4"); in request_shouldGetDestinationUri() 39 assertThat(shadow.getTitle()).isEqualTo("Title"); in request_shouldGetTitle() 45 assertThat(shadow.getDescription()).isEqualTo("Description"); in request_shouldGetDescription() 51 assertThat(shadow.getMimeType()).isEqualTo("application/json"); in request_shouldGetMimeType() 57 List<Pair<String, String>> headers = shadow.getRequestHeaders(); in request_shouldGetRequestHeaders() 66 assertThat(shadow.getNotificationVisibility()).isEqualTo(Request.VISIBILITY_VISIBLE); in request_shouldGetNotificationVisibility() 72 assertThat(shadow.getAllowedNetworkTypes()).isEqualTo(Request.NETWORK_BLUETOOTH); in request_shouldGetAllowedNetworkTypes() 78 assertThat(shadow.getAllowedOverRoaming()).isTrue(); in request_shouldGetAllowedOverRoaming() [all …]
|
D | ShadowServiceTest.java | 20 import org.robolectric.shadow.api.Shadow; 25 private ShadowService shadow; field in ShadowServiceTest 34 shadow = shadowOf(service); in setup() 68 assertThat(shadow.getLastForegroundNotification()).isSameAs(n); in startForeground() 69 assertThat(shadow.getLastForegroundNotificationId()).isEqualTo(23); in startForeground() 77 assertThat(shadow.isForegroundStopped()).isTrue(); in stopForeground() 78 assertThat(shadow.getNotificationShouldRemoved()).isTrue(); in stopForeground() 115 assertThat(shadow.isStoppedBySelf()).isTrue(); in shouldStopSelf() 121 assertThat(shadow.isStoppedBySelf()).isTrue(); in shouldStopSelfWithId()
|
/external/autotest/server/hosts/ |
D | shadowing_store_unittest.py | 23 shadow = _FakeRaisingStore() 24 store = shadowing_store.ShadowingStore(primary, shadow) 25 self.assertEqual(shadow.get(), info) 30 shadow = _FakeRaisingStore() 31 store = shadowing_store.ShadowingStore(primary, shadow) 35 self.assertEqual(shadow.get(), info) 41 shadow = _FakeRaisingStore(init_info, raise_on_commit=True) 42 store = shadowing_store.ShadowingStore(primary, shadow) 46 self.assertEqual(shadow.get(), init_info) 52 shadow = _FakeRaisingStore(init_info) [all …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | PreferenceTest.java | 32 private ShadowPreference shadow; field in PreferenceTest 44 shadow = Robolectric.shadowOf( preference ); in setup() 52 shadow = Robolectric.shadowOf(preference); in shouldConstruct() 53 assertThat(shadow.getContext(), sameInstance(context)); in shouldConstruct() 54 assertThat(shadow.getAttrs(), sameInstance((AttributeSet)attrs)); in shouldConstruct() 55 assertThat(shadow.getDefStyle(), equalTo(defStyle)); in shouldConstruct() 58 shadow = Robolectric.shadowOf(preference); in shouldConstruct() 59 assertThat(shadow.getContext(), sameInstance( context )); in shouldConstruct() 60 assertThat(shadow.getAttrs(), sameInstance((AttributeSet)attrs)); in shouldConstruct() 61 assertThat(shadow.getDefStyle(), equalTo(0)); in shouldConstruct() [all …]
|
D | PendingIntentTest.java | 39 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getBroadcast__shouldCreateIntentForBroadcast() local 40 assertThat(shadow.isActivityIntent(), is(false)); in getBroadcast__shouldCreateIntentForBroadcast() 41 assertThat(shadow.isBroadcastIntent(), is(true)); in getBroadcast__shouldCreateIntentForBroadcast() 42 assertThat(shadow.isServiceIntent(), is(false)); in getBroadcast__shouldCreateIntentForBroadcast() 43 assertThat(intent, equalTo(shadow.getSavedIntent())); in getBroadcast__shouldCreateIntentForBroadcast() 44 assertThat(Robolectric.application, equalTo(shadow.getSavedContext())); in getBroadcast__shouldCreateIntentForBroadcast() 51 ShadowPendingIntent shadow = shadowOf(pendingIntent); in getActivity__shouldCreateIntentForBroadcast() local 52 assertThat(shadow.isActivityIntent(), is(true)); in getActivity__shouldCreateIntentForBroadcast() 53 assertThat(shadow.isBroadcastIntent(), is(false)); in getActivity__shouldCreateIntentForBroadcast() 54 assertThat(shadow.isServiceIntent(), is(false)); in getActivity__shouldCreateIntentForBroadcast() [all …]
|
D | TranslateAnimationTest.java | 18 private ShadowTranslateAnimation shadow; field in TranslateAnimationTest 23 shadow = shadowOf(animation); in setUp() 28 assertThat(shadow.getFromXType(), equalTo(1)); in animationParametersFromConstructor() 29 assertThat(shadow.getFromXValue(), equalTo(2f)); in animationParametersFromConstructor() 30 assertThat(shadow.getToXType(), equalTo(3)); in animationParametersFromConstructor() 31 assertThat(shadow.getToXValue(), equalTo(4f)); in animationParametersFromConstructor() 32 assertThat(shadow.getFromYType(), equalTo(5)); in animationParametersFromConstructor() 33 assertThat(shadow.getFromYValue(), equalTo(6f)); in animationParametersFromConstructor() 34 assertThat(shadow.getToYType(), equalTo(7)); in animationParametersFromConstructor() 35 assertThat(shadow.getToYValue(), equalTo(8f)); in animationParametersFromConstructor()
|
D | DialogPreferenceTest.java | 26 private ShadowDialogPreference shadow; field in DialogPreferenceTest 38 shadow = Robolectric.shadowOf(preference); in setup() 46 shadow = Robolectric.shadowOf(preference); in testConstructors() 47 assertThat(shadow.getContext(), sameInstance(context)); in testConstructors() 48 assertThat(shadow.getAttrs(), sameInstance((AttributeSet) attrs)); in testConstructors() 49 assertThat(shadow.getDefStyle(), equalTo(defStyle)); in testConstructors() 52 shadow = Robolectric.shadowOf(preference); in testConstructors() 53 assertThat(shadow.getContext(), sameInstance(context)); in testConstructors() 54 assertThat(shadow.getAttrs(), sameInstance((AttributeSet) attrs)); in testConstructors() 55 assertThat(shadow.getDefStyle(), equalTo(0)); in testConstructors()
|
D | DisplayTest.java | 18 ShadowDisplay shadow = Robolectric.shadowOf(display); in shouldProvideDisplayMetrics() local 20 shadow.setDensity(1.5f); in shouldProvideDisplayMetrics() 21 shadow.setDensityDpi(DisplayMetrics.DENSITY_MEDIUM); in shouldProvideDisplayMetrics() 22 shadow.setScaledDensity(1.6f); in shouldProvideDisplayMetrics() 23 shadow.setWidth(1024); in shouldProvideDisplayMetrics() 24 shadow.setHeight(600); in shouldProvideDisplayMetrics() 25 shadow.setXdpi(183.0f); in shouldProvideDisplayMetrics() 26 shadow.setYdpi(184.0f); in shouldProvideDisplayMetrics()
|
D | SslErrorHandlerTest.java | 21 private ShadowSslErrorHandler shadow; field in SslErrorHandlerTest 26 shadow = Robolectric.shadowOf(handler); in setUp() 31 assertThat(shadow, instanceOf(ShadowHandler.class)); in shouldInheritFromShadowHandler() 36 assertThat(shadow.wasCancelCalled(), equalTo(false)); in shouldRecordCancel() 38 assertThat(shadow.wasCancelCalled(), equalTo(true)); in shouldRecordCancel() 43 assertThat(shadow.wasProceedCalled(), equalTo(false)); in shouldRecordProceed() 45 assertThat(shadow.wasProceedCalled(), equalTo(true)); in shouldRecordProceed()
|
D | SensorManagerTest.java | 22 private ShadowSensorManager shadow; field in SensorManagerTest 27 shadow = shadowOf(sensorManager); in setup() 33 shadow = null; in tearDown() 40 assertTrue(shadow.hasListener(listener)); in shouldReturnHasListenerAfterRegisteringListener() 56 assertFalse(shadow.hasListener(listener)); in shouldReturnHasNoListenerAfterUnregisterListener() 63 assertFalse(shadow.hasListener(listener)); in shouldReturnHasNoListenerByDefault() 68 assertTrue(shadow.createSensorEvent() instanceof SensorEvent); in shouldCreateSensorEvent()
|
D | PreferenceActivityTest.java | 25 private ShadowPreferenceActivity shadow; field in PreferenceActivityTest 30 shadow = Robolectric.shadowOf(activity); in setUp() 35 shadow.setListView( new ListView( new Activity() ) ); in shouldGetListView() 41 assertThat(shadow, instanceOf(ShadowListActivity.class)); in shouldInheritFromListActivity() 51 assertThat(shadow.getPreferencesResId(), equalTo(-1)); in shouldRecordPreferencesResourceId() 53 assertThat(shadow.getPreferencesResId(), equalTo(R.xml.preferences)); in shouldRecordPreferencesResourceId()
|
D | RatingBarTest.java | 24 private ShadowRatingBar shadow; field in RatingBarTest 31 shadow = Robolectric.shadowOf(ratingBar); in setup() 39 assertThat(shadow.getOnRatingBarChangeListener(), sameInstance(listener)); in testOnSeekBarChangedListener() 41 assertThat(shadow.getOnRatingBarChangeListener(), nullValue()); in testOnSeekBarChangedListener() 61 ShadowRatingBar shadow = Robolectric.shadowOf(ratingBar); in testInheritance() local 62 assertThat(shadow, instanceOf(ShadowAbsSeekBar.class)); in testInheritance()
|
D | AnimationTest.java | 21 private ShadowAnimation shadow; field in AnimationTest 27 shadow = shadowOf(animation); in setUp() 53 shadow.invokeRepeat(); in invokeRepeatShouldInvokeRepeatCallback() 62 shadow.invokeEnd(); in invokeEndShouldInvokeEndCallback() 71 shadow.invokeEnd(); in simulateAnimationEndShouldInvokeApplyTransformationWith1() 122 shadow.getLoadedFromResourceId(); in testNotLoadedFromResourceId() 127 shadow.setLoadedFromResourceId(R.anim.fade_in); in testLoadedFromResourceId() 128 assertThat(shadow.getLoadedFromResourceId(), equalTo(R.anim.fade_in)); in testLoadedFromResourceId()
|
/external/valgrind/helgrind/tests/ |
D | shmem_abits.c | 8 static unsigned char shadow[MAX]; variable 32 r = VALGRIND_HG_GET_ABITS (p, shadow, len); in check() 36 V(shadow[i] == access, testline); in check() 39 r = VALGRIND_HG_GET_ABITS (p-1, shadow, len+1); in check() 42 V (shadow[0] == 0x00, testline); in check() 44 V (shadow[i] == access, testline); in check() 47 r = VALGRIND_HG_GET_ABITS (p+1, shadow, len); in check() 54 V(shadow[i] == access, testline); in check() 56 V(shadow[len-1] == 0x00, testline); in check() 65 memcpy(s, shadow, MAX); in popped_stack_address()
|
/external/libjpeg-turbo/doc/html/ |
D | doxygen.css | 35 -webkit-transition: text-shadow 0.5s linear; 36 -moz-transition: text-shadow 0.5s linear; 37 -ms-transition: text-shadow 0.5s linear; 38 -o-transition: text-shadow 0.5s linear; 39 transition: text-shadow 0.5s linear; 44 text-shadow: 0 0 15px cyan; 192 -webkit-transition-property: background-color, box-shadow; 194 -moz-transition-property: background-color, box-shadow; 196 -ms-transition-property: background-color, box-shadow; 198 -o-transition-property: background-color, box-shadow; [all …]
|
/external/libnl/doc/ |
D | libnl.css | 30 -webkit-transition: text-shadow 0.5s linear; 31 -moz-transition: text-shadow 0.5s linear; 32 -ms-transition: text-shadow 0.5s linear; 33 -o-transition: text-shadow 0.5s linear; 34 transition: text-shadow 0.5s linear; 39 text-shadow: 0 0 15px cyan; 187 -webkit-transition-property: background-color, box-shadow; 189 -moz-transition-property: background-color, box-shadow; 191 -ms-transition-property: background-color, box-shadow; 193 -o-transition-property: background-color, box-shadow; [all …]
|