/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()
|
D | ShadowContext.java | 141 return shadowOf((Application) realContext.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/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
D | SimplePieChartActivity.java | 86 sf1.configure(getApplicationContext(), R.xml.pie_segment_formatter1); in onCreate() 91 sf2.configure(getApplicationContext(), R.xml.pie_segment_formatter2); in onCreate() 96 sf3.configure(getApplicationContext(), R.xml.pie_segment_formatter3); in onCreate() 101 sf4.configure(getApplicationContext(), R.xml.pie_segment_formatter4); in onCreate()
|
D | SimpleXYPlotActivity.java | 65 series1Format.configure(getApplicationContext(), in onCreate() 74 series2Format.configure(getApplicationContext(), in onCreate()
|
D | ListViewActivity.java | 48 … lv.setAdapter(new MyViewAdapter(getApplicationContext(), R.layout.listview_example_item, null)); in onCreate()
|
/external/glide/library/src/main/java/com/bumptech/glide/manager/ |
D | RequestManagerRetriever.java | 72 applicationManager = new RequestManager(context.getApplicationContext(), in getApplicationManager() 99 return get(activity.getApplicationContext()); in get() 112 return get(fragment.getActivity().getApplicationContext()); in get() 125 return get(activity.getApplicationContext()); in get() 146 return get(fragment.getActivity().getApplicationContext()); in get()
|
D | DefaultConnectivityMonitor.java | 29 this.context = context.getApplicationContext(); in DefaultConnectivityMonitor()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/ |
D | AppSingletonizer.java | 18 Application applicationContext = (Application) context.getApplicationContext(); in getInstance()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
D | LocalUriFetcher.java | 37 this.context = context.getApplicationContext(); in LocalUriFetcher()
|
/external/glide/library/src/main/java/com/bumptech/glide/request/animation/ |
D | ViewAnimationFactory.java | 69 this.context = context.getApplicationContext(); in ResourceAnimationFactory()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/ |
D | StreamUriLoader.java | 56 return new StreamAssetPathFetcher(context.getApplicationContext().getAssets(), assetPath); in getAssetPathFetcher()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/model/file_descriptor/ |
D | FileDescriptorUriLoader.java | 53 … return new FileDescriptorAssetPathFetcher(context.getApplicationContext().getAssets(), assetPath); in getAssetPathFetcher()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/ |
D | StartedServiceMatcher.java | 112 intent.setClass(getShadowApplication().getApplicationContext(), serviceClass); in createIntent()
|
/external/jmonkeyengine/engine/src/android/com/jme3/system/android/ |
D | JmeAndroidSystem.java | 109 storageFolder = activity.getApplicationContext().getExternalFilesDir(null); in getStorageFolder()
|
/external/glide/library/src/main/java/com/bumptech/glide/ |
D | GlideBuilder.java | 37 this.context = context.getApplicationContext(); in GlideBuilder()
|