/frameworks/support/lifecycle/viewmodel/src/main/java/androidx/lifecycle/ |
AndroidViewModel.java | 32 private Application mApplication; 35 mApplication = application; 45 return (T) mApplication;
|
ViewModelProvider.java | 183 private Application mApplication; 191 mApplication = application; 200 return modelClass.getConstructor(Application.class).newInstance(mApplication);
|
/frameworks/base/test-runner/src/android/test/ |
ApplicationTestCase.java | 75 private T mApplication; 83 return mApplication; 102 mApplication = null; 104 mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext()); 106 assertNotNull(mApplication); 124 assertNotNull(mApplication); 126 mApplication.onCreate(); 137 mApplication.onTerminate(); 152 mApplication = null; 179 assertNotNull("Application class could not be instantiated successfully", mApplication); [all...] |
ServiceTestCase.java | 108 private Application mApplication; 303 mApplication = application; 314 return mApplication;
|
ActivityUnitTestCase.java | 87 private Application mApplication; 140 if (mApplication == null) { 152 token, mApplication, intent, info, title, mMockParent, id, 192 mApplication = application;
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
SecureSource.java | 22 private GalleryApp mApplication; 34 mApplication = context; 45 DataManager dataManager = mApplication.getDataManager(); 48 return new SecureAlbum(path, mApplication, unlock); 51 return new UnlockImage(path, mApplication);
|
ComboSource.java | 24 private GalleryApp mApplication; 29 mApplication = application; 43 DataManager dataManager = mApplication.getDataManager(); 46 return new ComboAlbumSet(path, mApplication,
|
ClusterSource.java | 34 GalleryApp mApplication; 39 mApplication = application; 63 DataManager dataManager = mApplication.getDataManager(); 71 return new ClusterAlbumSet(path, mApplication, sets[0], matchType);
|
FilterSource.java | 35 private GalleryApp mApplication; 42 mApplication = application; 52 mApplication); 54 Path.fromString(FILTER_CAMERA_SHORTCUT_ITEM), mApplication); 63 DataManager dataManager = mApplication.getDataManager();
|
UriSource.java | 36 private GalleryApp mApplication; 40 mApplication = context; 52 return new UriImage(mApplication, path, Uri.parse(uri), type); 68 String type = mApplication.getContentResolver().getType(uri);
|
SnailSource.java | 26 private GalleryApp mApplication; 32 mApplication = application; 41 DataManager dataManager = mApplication.getDataManager();
|
ActionImage.java | 33 private GalleryApp mApplication; 38 mApplication = Utils.checkNotNull(application); 62 Bitmap bitmap = BitmapFactory.decodeResource(mApplication.getResources(),
|
DataManager.java | 101 private GalleryApp mApplication; 112 mApplication = application; 120 addSource(new LocalSource(mApplication)); 121 addSource(new PicasaSource(mApplication)); 122 addSource(new ComboSource(mApplication)); 123 addSource(new ClusterSource(mApplication)); 124 addSource(new FilterSource(mApplication)); 125 addSource(new SecureSource(mApplication)); 126 addSource(new UriSource(mApplication)); 127 addSource(new SnailSource(mApplication)); [all...] |
LocalAlbumSet.java | 50 private final GalleryApp mApplication; 63 mApplication = application; 109 jc, mApplication.getContentResolver(), mType); 126 DataManager dataManager = mApplication.getDataManager(); 144 return new LocalAlbum(path, mApplication, id, true, name); 146 return new LocalAlbum(path, mApplication, id, false, name); 170 mLoadTask = mApplication.getThreadPool().submit(new AlbumsLoader(), this);
|
LocalVideo.java | 71 private final GalleryApp mApplication; 77 mApplication = application; 83 mApplication = context; 84 ContentResolver resolver = mApplication.getContentResolver(); 155 return new LocalVideoRequest(mApplication, getPath(), dateModifiedInSec, 192 mApplication.getContentResolver().delete(baseUri, "_id=?", 223 mApplication.getAndroidContext(), durationInSec));
|
LocalSource.java | 37 private GalleryApp mApplication; 58 mApplication = context; 84 GalleryApp app = mApplication; 89 return new LocalAlbumSet(path, mApplication); 106 return new LocalImage(path, mApplication, mMatcher.getIntVar(0)); 108 return new LocalVideo(path, mApplication, mMatcher.getIntVar(0)); 183 MediaObject object = mApplication.getDataManager().getMediaObject(item); 236 mApplication, isImage, ids); 266 mClient = mApplication.getContentResolver()
|
ImageCacheRequest.java | 31 protected GalleryApp mApplication; 39 mApplication = application; 54 ImageCacheService cacheService = mApplication.getImageCacheService();
|
ClusterAlbumSet.java | 30 private GalleryApp mApplication; 39 mApplication = application; 82 Context context = mApplication.getAndroidContext(); 103 DataManager dataManager = mApplication.getDataManager();
|
/external/skia/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ |
ViewerActivity.java | 35 private ViewerApplication mApplication; 61 onKeyPressed(mApplication.getNativeHandle(), KeyEvent.KEYCODE_SOFT_LEFT); 64 onKeyPressed(mApplication.getNativeHandle(), KeyEvent.KEYCODE_SOFT_RIGHT); 93 mApplication = (ViewerApplication) getApplication(); 94 mApplication.setViewerActivity(this); 115 mApplication.setViewerActivity(null); 121 if (mApplication.getNativeHandle() != 0) { 122 onSurfaceCreated(mApplication.getNativeHandle(), holder.getSurface()); 128 if (mApplication.getNativeHandle() != 0) { 129 onSurfaceChanged(mApplication.getNativeHandle(), holder.getSurface()) [all...] |
/external/skqp/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/ |
ViewerActivity.java | 35 private ViewerApplication mApplication; 61 onKeyPressed(mApplication.getNativeHandle(), KeyEvent.KEYCODE_SOFT_LEFT); 64 onKeyPressed(mApplication.getNativeHandle(), KeyEvent.KEYCODE_SOFT_RIGHT); 93 mApplication = (ViewerApplication) getApplication(); 94 mApplication.setViewerActivity(this); 115 mApplication.setViewerActivity(null); 121 if (mApplication.getNativeHandle() != 0) { 122 onSurfaceCreated(mApplication.getNativeHandle(), holder.getSurface()); 128 if (mApplication.getNativeHandle() != 0) { 129 onSurfaceChanged(mApplication.getNativeHandle(), holder.getSurface()) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/backup/ |
BackupSettingsActivityTest.java | 64 private Application mApplication; 82 mApplication = RuntimeEnvironment.application; 85 mPackageManager = Shadows.shadowOf(mApplication.getPackageManager()); 99 mApplication.getPackageManager().setComponentEnabledSetting(mComponent, 111 assertThat(shadowOf(mApplication).getNextStartedActivity()).isEqualTo(mIntent); 126 assertThat(shadowOf(mApplication).getNextStartedActivity()).isNull(); 133 mApplication, true)).isNotEmpty(); 135 mApplication)).isEmpty(); 144 mApplication, true); 147 mApplication); [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
AppSettingPreferenceControllerTest.java | 57 private Application mApplication; 65 mApplication = RuntimeEnvironment.application; 66 mPackageManager = shadowOf(mApplication.getPackageManager()); 67 mController = new AppSettingPreferenceController(mApplication, "test_key"); 69 mPreference = new Preference(mApplication); 115 assertThat(shadowOf(mApplication).getNextStartedActivity().getComponent())
|
/packages/services/Telephony/src/com/android/phone/ |
CallNotifier.java | 78 private PhoneGlobals mApplication; 131 mApplication = app; 134 mAudioManager = (AudioManager) mApplication.getSystemService(Context.AUDIO_SERVICE); 136 (TelephonyManager) mApplication.getSystemService(Context.TELEPHONY_SERVICE); 137 mSubscriptionManager = (SubscriptionManager) mApplication.getSystemService( 144 adapter.getProfileProxy(mApplication.getApplicationContext(), 271 PhoneUtils.turnOnSpeaker(mApplication, false, true); 530 PhoneDisplayMessage.displayNetworkMessage(mApplication, displayInfo); 546 mergeFailedString = mApplication.getResources().getString( 550 mergeFailedString = mApplication.getResources().getString [all...] |
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
AutomaticStorageManagementJobServiceTest.java | 90 private ShadowApplication mApplication; 122 mApplication = ShadowApplication.getInstance(); 123 mApplication.setSystemService(Context.BATTERY_SERVICE, mBatteryManager); 124 mApplication.setSystemService(Context.NOTIFICATION_SERVICE, mNotificationManager); 172 mApplication.runBackgroundTasks(); 174 List<Intent> broadcastedIntents = mApplication.getBroadcastIntents(); 228 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); 284 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver(); 293 mStorageManagementJobProvider, mApplication.getApplicationContext(), fakeClock); 303 ContentResolver resolver = mApplication.getApplicationContext().getContentResolver() [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
SettingsLicenseActivityTest.java | 48 private Application mApplication; 54 mApplication = RuntimeEnvironment.application; 82 assertEqualIntents(shadowOf(mApplication).getNextStartedActivity(), intent); 104 assertEqualIntents(shadowOf(mApplication).getNextStartedActivity(), intent);
|