Home
last modified time | relevance | path

Searched refs:mApp (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/TV/tests/unit/src/com/android/tv/util/
DMockTvSingletons.java56 private final TvApplication mApp; field in MockTvSingletons
63 mApp = (TvApplication) context.getApplicationContext(); in MockTvSingletons()
68 return mApp.getAnalytics(); in getAnalytics()
76 return mApp.getChannelDataManager(); in getChannelDataManager()
81 return mApp.getProgramDataManager(); in getProgramDataManager()
86 return mApp.getPreviewDataManager(); in getPreviewDataManager()
91 return mApp.getDvrDataManager(); in getDvrDataManager()
101 return mApp.getRecordingStorageStatusManager(); in getRecordingStorageStatusManager()
106 return mApp.getDvrScheduleManager(); in getDvrScheduleManager()
111 return mApp.getDvrManager(); in getDvrManager()
[all …]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppDeletionPreference.java29 private PackageInfo mApp; field in AppDeletionPreference
34 mApp = item; in AppDeletionPreference()
38 setItemSize(mApp.size); in AppDeletionPreference()
51 return mApp.packageName; in getPackageName()
55 if (mApp == null) return; in updateSummary()
56 if (mApp.daysSinceLastUse == AppsAsyncLoader.NEVER_USED) { in updateSummary()
58 } else if (mApp.daysSinceLastUse == AppsAsyncLoader.UNKNOWN_LAST_USE) { in updateSummary()
62 if (mApp.daysSinceLastUse <= 1) { in updateSummary()
64 final long lastUse = now - TimeUnit.DAYS.toMillis(mApp.daysSinceLastUse); in updateSummary()
71 R.string.deletion_helper_app_summary, mApp.daysSinceLastUse)); in updateSummary()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderTask.java128 protected final LauncherAppState mApp; field in LoaderTask
167 mApp = app; in LoaderTask()
172 mLauncherApps = mApp.getContext().getSystemService(LauncherApps.class); in LoaderTask()
173 mUserManager = mApp.getContext().getSystemService(UserManager.class); in LoaderTask()
174 mUserCache = UserCache.INSTANCE.get(mApp.getContext()); in LoaderTask()
175 mPmHelper = PackageManagerHelper.INSTANCE.get(mApp.getContext()); in LoaderTask()
176 mSessionHelper = InstallSessionHelper.INSTANCE.get(mApp.getContext()); in LoaderTask()
177 mIconCache = mApp.getIconCache(); in LoaderTask()
209 mApp.getContext().getContentResolver(), in sendFirstScreenActiveInstallsBroadcast()
221 FirstScreenBroadcastHelper.sendBroadcastsForModels(mApp.getContext(), broadcastModels); in sendFirstScreenActiveInstallsBroadcast()
[all …]
DBaseLauncherBinder.java79 protected final LauncherAppState mApp; field in BaseLauncherBinder
90 mApp = app; in BaseLauncherBinder()
128 mBgDataModel.lastLoadId = mApp.getModel().getLastLoadId(); in initWorkspaceBinder()
149 mBgDataModel.lastLoadId = mApp.getModel().getLastLoadId(); in bindWorkspaceAllAtOnce()
156 new UnifiedWorkspaceBinder(cb, mUiExecutor, mApp, mBgDataModel, mMyBindingId, in bindWorkspaceAllAtOnce()
199 mBgDataModel.widgetsModel.getWidgetsListForPicker(mApp.getContext()); in bindWidgets()
278 private final LauncherAppState mApp; field in BaseLauncherBinder.UnifiedWorkspaceBinder
298 mApp = app; in UnifiedWorkspaceBinder()
322 final InvariantDeviceProfile idp = mApp.getInvariantDeviceProfile(); in bind()
396 ItemInstallQueue.INSTANCE.get(mApp.getContext()) in setupPendingBind()
[all …]
DModelDelegate.java55 protected LauncherAppState mApp; field in ModelDelegate
69 this.mApp = app; in init()
79 if (hasShortcutsPermission(mApp.getContext()) in validateData()
81 mApp.getModel().forceReload(); in validateData()
DLoaderCursor.java75 private final LauncherAppState mApp; field in LoaderCursor
123 mApp = app; in LoaderCursor()
401 mApp.getModel().getModelDbController(), in updater()
423 mApp.getModel().getModelDbController().delete(TABLE_NAME, in commitDeleted()
449 mApp.getModel().getModelDbController().update(TABLE_NAME, values, in commitRestoredItems()
/packages/apps/Settings/src/com/android/settings/applications/
DProcessStatsDetail.java91 private ProcStatsPackageEntry mApp; field in ProcessStatsDetail
108 mApp = args.getParcelable(EXTRA_PACKAGE_ENTRY); in onCreate()
109 mApp.retrieveUiData(getActivity(), mPm); in onCreate()
125 if (mApp.mUiTargetApp == null) { in onViewCreated()
132 .setIcon(mApp.mUiTargetApp != null in onViewCreated()
133 ? IconDrawableFactory.newInstance(activity).getBadgedIcon(mApp.mUiTargetApp) in onViewCreated()
135 .setLabel(mApp.mUiLabel) in onViewCreated()
136 .setPackageName(mApp.mPackage) in onViewCreated()
137 .setUid(mApp.mUiTargetApp != null in onViewCreated()
138 ? mApp.mUiTargetApp.uid in onViewCreated()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiScanModeActivity.java46 @VisibleForTesting String mApp; field in WifiScanModeActivity
66 mApp = savedInstanceState.getString("app"); in onCreate()
78 mApp = null; in refreshAppLabel()
81 mApp = Utils.getApplicationLabel(getApplicationContext(), packageName).toString(); in refreshAppLabel()
100 mDialog = AlertDialogFragment.newInstance(mApp); in createDialog()
126 outState.putString("app", mApp); in onSaveInstanceState()
146 private final String mApp; field in WifiScanModeActivity.AlertDialogFragment
150 mApp = app; in AlertDialogFragment()
155 mApp = null; in AlertDialogFragment()
167 TextUtils.isEmpty(mApp) in onCreateDialog()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQsbApplicationWrapper.kt22 private var mApp: QsbApplication? = null variable in com.android.quicksearchbox.QsbApplicationWrapper
27 if (mApp != null) { in onTerminate()
28 mApp!!.close() in onTerminate()
37 if (mApp == null) {
38 mApp = createQsbApplication()
40 return mApp!!
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java428 private final PhoneGlobals mApp; field in PhoneInterfaceManager
1457 mApp.onNetworkSelectionChanged(request.subId); in handleMessage()
1605 carrierId = CarrierResolver.getCarrierIdFromIdentifier(mApp, in handleMessage()
2472 mApp = app; in PhoneInterfaceManager()
2481 mTelephonySharedPreferences = PreferenceManager.getDefaultSharedPreferences(mApp); in PhoneInterfaceManager()
2494 CarrierAllowListInfo.loadInstance(mApp); in PhoneInterfaceManager()
2498 SatelliteEntitlementController.make(mApp, mFeatureFlags); in PhoneInterfaceManager()
2614 mApp.startActivity(intent); in dialForSubscriber()
2665 mApp.startActivity(intent); in callForSubscriber()
2859 mApp.getSystemService(AppOpsManager.class) in updateServiceLocationWithPackageName()
[all …]
DImsRcsController.java82 private PhoneGlobals mApp; field in ImsRcsController
118 mApp = app; in ImsRcsController()
120 mPackageManager = mApp.getPackageManager(); in ImsRcsController()
135 mApp, subId, "registerImsRegistrationCallback"); in registerImsRegistrationCallback()
157 mApp, subId, "unregisterImsRegistrationCallback"); in unregisterImsRegistrationCallback()
178 mApp, subId, "getImsRcsRegistrationState"); in getImsRcsRegistrationState()
204 mApp, subId, "getImsRcsRegistrationTransportType"); in getImsRcsRegistrationTransportType()
599 mApp, subId, callingPackage, callingFeatureId, "isUceSettingEnabled")) { in isUceSettingEnabled()
611 SubscriptionManager.IMS_RCS_UCE_ENABLED, false /*defaultValue*/, mApp); in isUceSettingEnabled()
635 TelephonyPermissions.enforceAnyPermissionGranted(mApp, Binder.getCallingUid(), in isSipDelegateSupported()
[all …]
DImsStateCallbackController.java141 private final PhoneGlobals mApp; field in ImsStateCallbackController
281 mApp, slotId, TAG, this, new HandlerExecutor(mHandler)); in MmTelFeatureListener()
442 mApp, slotId, this, new HandlerExecutor(mHandler), TAG); in RcsFeatureListener()
731 mApp = app; in ImsStateCallbackController()
734 mSubscriptionManager = mApp.getSystemService(SubscriptionManager.class); in ImsStateCallbackController()
735 mTelephonyRegistryManager = mApp.getSystemService(TelephonyRegistryManager.class); in ImsStateCallbackController()
747 mApp.registerReceiver(mReceiver, new IntentFilter( in ImsStateCallbackController()
1139 mApp.unregisterReceiver(mReceiver); in release()
DImsProvisioningController.java191 private final PhoneGlobals mApp; field in ImsProvisioningController
407 mApp, slotId, TAG, this, new HandlerExecutor(mHandler)); in MmTelFeatureListener()
646 mApp, slotId, this, new HandlerExecutor(mHandler), TAG); in RcsFeatureListener()
867 mApp = app; in ImsProvisioningController()
872 mCarrierConfigManager = mApp.getSystemService(CarrierConfigManager.class); in ImsProvisioningController()
873 mSubscriptionManager = mApp.getSystemService(SubscriptionManager.class); in ImsProvisioningController()
874 mTelephonyRegistryManager = mApp.getSystemService(TelephonyRegistryManager.class); in ImsProvisioningController()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetService.java58 private final GalleryApp mApp; field in WidgetService.PhotoRVFactory
63 mApp = app; in PhotoRVFactory()
72 mSource = new MediaSetSource(mApp.getDataManager(), mAlbumPath); in onCreate()
74 mSource = new LocalPhotoSource(mApp.getAndroidContext()); in onCreate()
77 AppWidgetManager.getInstance(mApp.getAndroidContext()) in onCreate()
111 mApp.getAndroidContext().getPackageName(), in getLoadingView()
122 mApp.getAndroidContext().getPackageName(), in getViewAt()
138 AppWidgetManager.getInstance(mApp.getAndroidContext()) in onContentDirty()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java100 private final LauncherAppState mApp; field in LauncherModel
159 mApp = app; in LauncherModel()
194 return new ModelWriter(mApp.getContext(), this, mBgDataModel, verifyChanges, cellPosMapper, in getWriter()
205 Context context = mApp.getContext(); in onAppIconChanged()
281 LauncherPrefs.get(mApp.getContext()).put(WORK_EDU_STEP, 0); in onUserEvent()
359 ItemInstallQueue.INSTANCE.get(mApp.getContext()) in startLoader()
375 mApp, mBgDataModel, mBgAllAppsList, callbacksList); in startLoader()
392 mApp, mBgAllAppsList, mBgDataModel, mModelDelegate, launcherBinder); in startLoader()
436 apps.addPromiseApp(mApp.getContext(), sessionInfo); in onInstallSessionCreated()
446 IconCache iconCache = mApp.getIconCache(); in onSessionFailure()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DNotificationMgrTest.java113 @Mock PhoneGlobals mApp; field in NotificationMgrTest
160 when(mApp.getSharedPreferences(anyString(), anyInt())).thenReturn(mSharedPreferences); in setUp()
162 when(mApp.getPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp()
163 when(mApp.getSystemService(Context.STATUS_BAR_SERVICE)).thenReturn(mStatusBarManager); in setUp()
164 when(mApp.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager); in setUp()
165 when(mApp.getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE)).thenReturn( in setUp()
167 when(mApp.getSystemServiceName(TelecomManager.class)).thenReturn(Context.TELECOM_SERVICE); in setUp()
168 when(mApp.getSystemService(TelecomManager.class)).thenReturn(mTelecomManager); in setUp()
169 when(mApp.getSystemService(Context.TELEPHONY_SERVICE)).thenReturn(mTelephonyManager); in setUp()
170 when(mApp.getSystemServiceName(CarrierConfigManager.class)).thenReturn( in setUp()
[all …]
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/fcm/
DFcmRegistrationService.java45 private FirebaseApp mApp = null; field in FcmRegistrationService
73 if (mApp == null) { in getFirebaseApp()
75 mApp = FirebaseApp.getInstance(); in getFirebaseApp()
78 mApp = FirebaseApp.initializeApp( in getFirebaseApp()
87 return mApp; in getFirebaseApp()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardMoveConfirm.java46 private ApplicationInfo mApp; field in StorageWizardMoveConfirm
59 mApp = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate()
67 getPackageManager().getPackageCandidateVolumes(mApp).contains(mVolume)); in onCreate()
69 final String appName = getPackageManager().getApplicationLabel(mApp).toString(); in onCreate()
112 final String appName = getPackageManager().getApplicationLabel(mApp).toString(); in onNavigateNext()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DTransitionalScanHelperTest.java88 @Mock private ContextMap.App mApp; field in TransitionalScanHelperTest
170 mApp.info = mPiInfo; in continuePiStartScan()
175 mScanHelper.continuePiStartScan(scannerId, mApp); in continuePiStartScan()
188 mApp.info = mPiInfo; in continuePiStartScanCheckUid()
193 mScanHelper.continuePiStartScan(scannerId, mApp); in continuePiStartScanCheckUid()
226 doReturn(mApp).when(mScannerMap).getById(scanClient.scannerId); in onBatchScanReportsInternal_deliverBatchScan()
239 mApp.callback = callback; in onBatchScanReportsInternal_deliverBatchScan()
315 mApp.callback = callback; in onScanResult_remoteException_clientDied()
316 mApp.appScanStats = appScanStats; in onScanResult_remoteException_clientDied()
321 doReturn(mApp).when(mScannerMap).getById(scanClient.scannerId); in onScanResult_remoteException_clientDied()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java105 private LauncherAppState mApp; field in AddItemActivity
132 mApp = LauncherAppState.getInstance(this); in onCreate()
133 mIdp = mApp.getInvariantDeviceProfile(); in onCreate()
284 () -> new WidgetItem(shortcutInfo, mApp.getIconCache(), getPackageManager())); in setupShortcut()
309 widgetInfo, mIdp, mApp.getIconCache(), mApp.getContext())); in setupWidget()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsState.java312 private final AppEntry mApp; field in AppOpsState.AppOpEntry
319 mApp = app; in AppOpEntry()
321 mApp.addOp(this, op); in AppOpEntry()
345 mApp.addOp(this, op); in addOp()
347 if (mApp.getOpSwitch(AppOpsManager.opToSwitch(op.getOp())) == null) { in addOp()
353 return mApp; in getAppEntry()
430 return mApp.getLabel(); in toString()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java154 new WorkspaceItemFactory(mApp, ums, mPmHelper, pinnedShortcuts, numColumns, in loadAndBindItems()
157 state.storage.read(mApp.getContext(), factory, ums.allUsers::get)); in loadAndBindItems()
220 LauncherPrefs prefs = LauncherPrefs.get(mApp.getContext()); in modelLoadComplete()
353 Context context = mApp.getContext(); in recreatePredictors()
382 Context context = mApp.getContext(); in recreateHotseatPredictor()
412 mApp.getModel().enqueueModelUpdateTask(new PredictionUpdateTask(state, targets)); in handleUpdate()
423 mApp.getModel().enqueueModelUpdateTask( in registerWidgetsPredictor()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderCursorTest.java81 private LauncherAppState mApp; field in LoaderCursorTest
95 mApp = LauncherAppState.getInstance(mContext); in setup()
106 mLoaderCursor = new LoaderCursor(mCursor, mApp, ums, mPmHelper, null); in setup()
167 assertTrue(mApp.getIconCache().isDefaultIcon(info.bitmap, info.user)); in loadSimpleShortcut()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiScanModeActivityTest.java93 assertThat(TextUtils.isEmpty(mActivity.mApp)).isTrue(); in refreshAppLabel_noPackageName_shouldNotFatalException()
103 assertThat(mActivity.mApp).isEqualTo(APP_LABEL); in refreshAppLabel_hasPackageName_shouldHasAppLabel()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/
DWidgetPickerActivity.java90 private LauncherAppState mApp; field in WidgetPickerActivity
110 mApp = LauncherAppState.getInstance(this); in onCreate()
111 InvariantDeviceProfile idp = mApp.getInvariantDeviceProfile(); in onCreate()

12