OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ShadowApplication
(Results
1 - 25
of
161
) sorted by null
1
2
3
4
5
6
7
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowContextWrapper.java
12
return
ShadowApplication
.getInstance().getBroadcastIntents();
22
return
ShadowApplication
.getInstance().getNextStartedActivity();
32
return
ShadowApplication
.getInstance().peekNextStartedActivity();
42
return
ShadowApplication
.getInstance().getNextStartedService();
49
ShadowApplication
.getInstance().clearStartedServices();
58
return
ShadowApplication
.getInstance().peekNextStartedService();
68
return
ShadowApplication
.getInstance().getNextStoppedService();
72
ShadowApplication
.getInstance().grantPermissions(permissionNames);
76
ShadowApplication
.getInstance().denyPermissions(permissionNames);
ShadowSystemClock.java
20
if (
ShadowApplication
.getInstance() == null) {
23
return
ShadowApplication
.getInstance().getForegroundThreadScheduler().getCurrentTime();
28
if (
ShadowApplication
.getInstance() == null) {
33
ShadowApplication
.getInstance().getForegroundThreadScheduler().advanceBy(millis);
38
if (
ShadowApplication
.getInstance() == null) {
46
ShadowApplication
.getInstance().getForegroundThreadScheduler().advanceTo(millis);
ShadowScroller.java
60
startTime =
ShadowApplication
.getInstance().getForegroundThreadScheduler().getCurrentTime();
64
ShadowApplication
.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() {
92
return
ShadowApplication
.getInstance().getForegroundThreadScheduler().getCurrentTime() - startTime;
ShadowPopupWindow.java
20
ShadowApplication
.getInstance().setLatestPopupWindow(realPopupWindow);
ShadowAsyncTaskLoader.java
29
ShadowApplication
.getInstance().getForegroundThreadScheduler().post(new Runnable() {
43
ShadowApplication
.getInstance().getBackgroundThreadScheduler().post(future);
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/internal/
AppSingletonizer.java
5
import com.xtremelabs.robolectric.shadows.
ShadowApplication
;
19
ShadowApplication
shadowApplication
= (
ShadowApplication
) shadowOf(applicationContext);
20
T instance = get(
shadowApplication
);
23
set(
shadowApplication
, instance);
28
protected abstract T get(
ShadowApplication
shadowApplication
);
30
protected abstract void set(
ShadowApplication
shadowApplication
, T instance)
[
all
...]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/util/
AppSingletonizer.java
8
import org.robolectric.shadows.
ShadowApplication
;
19
ShadowApplication
shadowApplication
= (
ShadowApplication
) shadowOf(applicationContext);
20
T instance = get(
shadowApplication
);
23
set(
shadowApplication
, instance);
28
protected abstract T get(
ShadowApplication
shadowApplication
);
30
protected abstract void set(
ShadowApplication
shadowApplication
, T instance)
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
ShadowActivity.java
26
import org.robolectric.shadows.
ShadowApplication
;
33
ShadowApplication
.getInstance().startActivity(intent);
ShadowPackageMonitor.java
32
import org.robolectric.shadows.
ShadowApplication
;
61
ShadowApplication
.getInstance().getBackgroundThreadScheduler());
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
InstrumentedDialogFragmentTest.java
27
import org.robolectric.shadows.
ShadowApplication
;
59
fragment.onAttach(
ShadowApplication
.getInstance().getApplicationContext());
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DataUsageSummaryLegacyTest.java
36
import org.robolectric.shadows.
ShadowApplication
;
53
ShadowApplication
shadowContext =
ShadowApplication
.getInstance();
DataUsageUtilsTest.java
35
import org.robolectric.shadows.
ShadowApplication
;
49
ShadowApplication
shadowContext =
ShadowApplication
.getInstance();
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
CastPreferenceControllerTest.java
32
import org.robolectric.shadows.
ShadowApplication
;
48
ShadowApplication
shadowContext =
ShadowApplication
.getInstance();
PhoneRingtonePreferenceControllerTest.java
34
import org.robolectric.shadows.
ShadowApplication
;
48
ShadowApplication
shadowContext =
ShadowApplication
.getInstance();
ZenModeBlockedEffectsPreferenceControllerTest.java
36
import org.robolectric.shadows.
ShadowApplication
;
55
ShadowApplication
shadowApplication
=
ShadowApplication
.getInstance();
56
shadowApplication
.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager);
ZenModeBehaviorCallsPreferenceControllerTest.java
38
import org.robolectric.shadows.
ShadowApplication
;
57
ShadowApplication
shadowApplication
=
ShadowApplication
.getInstance();
58
shadowApplication
.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager);
ZenModeBehaviorMsgEventReminderPreferenceControllerTest.java
38
import org.robolectric.shadows.
ShadowApplication
;
57
ShadowApplication
shadowApplication
=
ShadowApplication
.getInstance();
58
shadowApplication
.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager);
ZenModeBehaviorSoundPreferenceControllerTest.java
38
import org.robolectric.shadows.
ShadowApplication
;
57
ShadowApplication
shadowApplication
=
ShadowApplication
.getInstance();
58
shadowApplication
.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager);
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/util/concurrent/
RoboExecutorServiceTest.java
15
import org.robolectric.shadows.
ShadowApplication
;
42
ShadowApplication
.runBackgroundTasks();
53
ShadowApplication
.runBackgroundTasks();
73
ShadowApplication
.runBackgroundTasks();
95
ShadowApplication
.runBackgroundTasks();
105
ShadowApplication
.runBackgroundTasks();
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
EncryptionAndCredentialTest.java
37
import org.robolectric.shadows.
ShadowApplication
;
55
ShadowApplication
application =
ShadowApplication
.getInstance();
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
ApplicationResolverTest.java
4
import com.xtremelabs.robolectric.shadows.
ShadowApplication
;
50
List<
ShadowApplication
.Wrapper> receivers = shadowOf(application).getRegisteredReceivers();
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
FooterPreferenceTest.java
33
import org.robolectric.shadows.
ShadowApplication
;
42
mContext =
ShadowApplication
.getInstance().getApplicationContext();
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
ApplicationResolver.java
8
import com.xtremelabs.robolectric.shadows.
ShadowApplication
;
31
ShadowApplication
shadowApplication
= shadowOf(application);
32
shadowApplication
.setPackageName(packageName);
33
shadowApplication
.setApplicationName(applicationName);
35
shadowApplication
.setPackageManager(new RobolectricPackageManager(application, config));
36
registerBroadcastReceivers(
shadowApplication
);
41
private void registerBroadcastReceivers(
ShadowApplication
shadowApplication
) {
48
shadowApplication
.registerReceiver((BroadcastReceiver) Robolectric.newInstanceOf(receiverClassName), filter)
[
all
...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/
CategoryManagerTest.java
31
import org.robolectric.shadows.
ShadowApplication
;
46
mContext =
ShadowApplication
.getInstance().getApplicationContext();
144
mCategoryManager.sortCategories(
ShadowApplication
.getInstance().getApplicationContext(),
177
mCategoryManager.sortCategories(
ShadowApplication
.getInstance().getApplicationContext(),
190
ShadowApplication
.getInstance().getApplicationContext().getPackageName();
210
mCategoryManager.sortCategories(
ShadowApplication
.getInstance().getApplicationContext(),
223
ShadowApplication
.getInstance().getApplicationContext().getPackageName();
245
mCategoryManager.sortCategories(
ShadowApplication
.getInstance().getApplicationContext(),
259
ShadowApplication
.getInstance().getApplicationContext().getPackageName();
278
mCategoryManager.sortCategories(
ShadowApplication
.getInstance().getApplicationContext()
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
PrivateVolumeOptionMenuControllerTest.java
40
import org.robolectric.shadows.
ShadowApplication
;
108
ShadowApplication
shadowApplication
=
ShadowApplication
.getInstance();
109
assertThat(
shadowApplication
).isNotNull();
110
assertThat(
shadowApplication
.getNextStartedActivity().getComponent().getClassName())
Completed in 382 milliseconds
1
2
3
4
5
6
7