/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowContextWrapper.java | 47 public Context getApplicationContext() { in getApplicationContext() method in ShadowContextWrapper 48 return baseContext.getApplicationContext(); in getApplicationContext() 58 return getApplicationContext().getResources(); in getResources() 63 return getApplicationContext().getContentResolver(); in getContentResolver() 68 return getApplicationContext().getSystemService(name); in getSystemService() 73 getApplicationContext().sendBroadcast(intent); in sendBroadcast() 77 return ((ShadowApplication) shadowOf(getApplicationContext())).getBroadcastIntents(); in getBroadcastIntents() 87 …return ((ShadowApplication) shadowOf(getApplicationContext())).registerReceiverWithContext(receive… in registerReceiver() 92 getApplicationContext().unregisterReceiver(broadcastReceiver); in unregisterReceiver() 97 …return realContextWrapper == getApplicationContext() ? packageName : getApplicationContext().getPa… in getPackageName() [all …]
|
D | ShadowService.java | 32 public Context getApplicationContext() { in getApplicationContext() method in ShadowService 76 …((ShadowApplication) shadowOf(getApplicationContext())).assertNoBroadcastListenersRegistered(realS… in assertNoBroadcastListenersRegistered()
|
D | ShadowActivity.java | 68 public final Application getApplicationContext() { in getApplicationContext() method in ShadowActivity 249 return ShadowPreferenceManager.getDefaultSharedPreferences(getApplicationContext()); in getPreferences() 259 … shadowOf(getApplicationContext()).assertNoBroadcastListenersRegistered(realActivity, "Activity"); in assertNoBroadcastListenersRegistered() 392 getApplicationContext().startActivity(intent); in startActivityForResult()
|
D | ShadowPreferenceActivity.java | 19 …preferenceScreen = getResourceLoader().inflatePreferences(getApplicationContext(), preferencesResI… in addPreferencesFromResource()
|
D | ShadowMenuInflater.java | 26 …shadowOf(context.getApplicationContext()).getResourceLoader().inflateMenu(context, resource, root); in inflate()
|
D | ShadowPreferenceManager.java | 21 … ShadowApplication shadowApplication = shadowOf((Application) context.getApplicationContext()); in getDefaultSharedPreferences()
|
D | ShadowLayoutInflater.java | 52 return shadowOf(context.getApplicationContext()).getResourceLoader(); in getResourceLoader()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | AlarmManagerTest.java | 112 … Intent newIntent = new Intent(Robolectric.application.getApplicationContext(), String.class); in cancel_removesMatchingPendingIntents() 113 …endingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplicationContext(), 0, newI… in cancel_removesMatchingPendingIntents() 116 … Intent newIntent2 = new Intent(Robolectric.application.getApplicationContext(), Integer.class); in cancel_removesMatchingPendingIntents() 117 …ndingIntent2 = PendingIntent.getBroadcast(Robolectric.application.getApplicationContext(), 0, newI… in cancel_removesMatchingPendingIntents() 122 … Intent newIntent3 = new Intent(Robolectric.application.getApplicationContext(), String.class); in cancel_removesMatchingPendingIntents() 123 …endingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplicationContext(), 0, newI… in cancel_removesMatchingPendingIntents() 131 …endingIntent = PendingIntent.getBroadcast(Robolectric.application.getApplicationContext(), 0, newI… in cancel_removesMatchingPendingIntentsWithActions()
|
D | ContextWrapperTest.java | 123 … assertThat(activity.getApplicationContext(), sameInstance(activity.getApplicationContext())); in shouldReturnSameApplicationContextEveryTime() 125 …assertThat(activity.getApplicationContext(), sameInstance(new Activity().getApplicationContext())); in shouldReturnSameApplicationContextEveryTime()
|
D | LocationManagerTest.java | 176 .getShadowApplication().getApplicationContext(), 0, someIntent, in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria() 180 Robolectric.getShadowApplication().getApplicationContext(), 0, someOtherIntent, in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingCriteria() 213 …gIntent = PendingIntent.getBroadcast(Robolectric.getShadowApplication().getApplicationContext(), 0, in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingLocationListeners() 216 …dingIntent = PendingIntent.getBroadcast(Robolectric.getShadowApplication().getApplicationContext(), in shouldRemovePendingIntentsWhenRequestingLocationUpdatesUsingLocationListeners() 264 …gIntent = PendingIntent.getBroadcast(Robolectric.getShadowApplication().getApplicationContext(), 0, in shouldThrowExceptionWhenRequestingLocationUpdatesAndNoProviderIsFound() 362 …gIntent = PendingIntent.getBroadcast(Robolectric.getShadowApplication().getApplicationContext(), 0, in shouldRegisterLocationUpdatesWhenProviderGiven() 378 …gIntent = PendingIntent.getBroadcast(Robolectric.getShadowApplication().getApplicationContext(), 0, in shouldRegisterLocationUpdatesWhenCriteriaGiven()
|
D | TestFragment.java | 54 Context context = Robolectric.application.getApplicationContext(); in onCreateView()
|
/external/chromium_org/content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ |
D | ContentBrowserTestsActivity.java | 39 BrowserStartupController.get(getApplicationContext()).initChromiumBrowserProcessForTests(); in onCreate() 55 nativeRunTests(getFilesDir().getAbsolutePath(), getApplicationContext()); in runTests()
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/ |
D | WindowAndroid.java | 41 assert context == context.getApplicationContext(); in WindowAndroid() 141 public Context getApplicationContext() { in getApplicationContext() method in WindowAndroid
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | BrowserStartupController.java | 122 sInstance = new BrowserStartupController(context.getApplicationContext()); in get() 276 Context appContext = mContext.getApplicationContext(); in prepareToStartBrowserProcess()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/common/ |
D | DeviceTelephonyInfo.java | 21 Context appContext = context.getApplicationContext(); in DeviceTelephonyInfo()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/sync/ |
D | ChromiumSyncAdapterService.java | 31 return getOrCreateSyncAdapter(getApplicationContext()).getSyncAdapterBinder(); in onBind()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/identity/ |
D | SettingsSecureBasedIdentificationGenerator.java | 27 mContext = context.getApplicationContext(); in SettingsSecureBasedIdentificationGenerator()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/ |
D | AppSingletonizer.java | 18 Application applicationContext = (Application) context.getApplicationContext(); in getInstance()
|
/external/chromium_org/tools/android/memconsumer/java/src/org/chromium/memconsumer/ |
D | ResidentService.java | 43 new Notification.Builder(getApplicationContext()). in useMemory()
|
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/ |
D | AndroidProtocolHandler.java | 101 if (context.getApplicationContext() != null) { in openResource() 102 context = context.getApplicationContext(); in openResource()
|
/external/chromium_org/testing/android/java/src/org/chromium/native_test/ |
D | ChromeNativeTestActivity.java | 60 nativeRunTests(getFilesDir().getAbsolutePath(), getApplicationContext()); in runTests()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/app/ |
D | ChildProcessService.java | 167 ContentMain.initApplicationContext(sContext.get().getApplicationContext()); in onCreate() 168 nativeInitChildProcess(sContext.get().getApplicationContext(), in onCreate()
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
D | CookieManagerStartupTest.java | 34 ContentMain.initApplicationContext(getActivity().getApplicationContext()); in setUp()
|
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/ |
D | AdvancedMockContext.java | 43 public Context getApplicationContext() { in getApplicationContext() method in AdvancedMockContext
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | TabBase.java | 116 mClipboard = new Clipboard(getApplicationContext()); in TabBaseChromeContextMenuItemDelegate() 238 mApplicationContext = context != null ? context.getApplicationContext() : null; in TabBase() 359 protected Context getApplicationContext() { in getApplicationContext() method in TabBase
|