Home
last modified time | relevance | path

Searched refs:mPackageName (Results 1 – 25 of 164) sorted by relevance

1234567

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java97 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
100 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp()
120 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
124 stat2.mPackageName = "pkg.class2"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
128 stat3.mPackageName = "pkg.class3"; in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
131 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
133 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
135 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps()
155 stat1.mPackageName = "pkg.class"; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
159 stat2.mPackageName = "com.android.settings"; in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DRequestRoleActivity.java53 private String mPackageName; field in RequestRoleActivity
63 mPackageName = getCallingPackage(); in onCreate()
86 if (TextUtils.isEmpty(mPackageName)) { in onCreate()
87 Log.w(LOG_TAG, "Package name cannot be null or empty: " + mPackageName); in onCreate()
136 if (PackageUtils.getApplicationInfo(mPackageName, this) == null) { in onCreate()
137 Log.w(LOG_TAG, "Unknown application: " + mPackageName); in onCreate()
146 if (currentPackageNames.contains(mPackageName)) { in onCreate()
148 + ", package: " + mPackageName); in onCreate()
156 if (!role.isPackageQualified(mPackageName, this)) { in onCreate()
158 + ", package: " + mPackageName); in onCreate()
[all …]
DRequestRoleFragment.java75 private String mPackageName; field in RequestRoleFragment
110 mPackageName = arguments.getString(Intent.EXTRA_PACKAGE_NAME); in onCreate()
124 if (currentPackageNames.contains(mPackageName)) { in onCreateDialog()
126 + ", package: " + mPackageName); in onCreateDialog()
133 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(mPackageName, context); in onCreateDialog()
135 Log.w(LOG_TAG, "Unknown application: " + mPackageName); in onCreateDialog()
159 if (UserDeniedManager.getInstance(context).isDeniedOnce(mRoleName, mPackageName)) { in onCreateDialog()
197 if (PackageUtils.getApplicationInfo(mPackageName, context) == null) { in onStart()
198 Log.w(LOG_TAG, "Unknown application: " + mPackageName); in onStart()
206 mPackageRemovalMonitor = new PackageRemovalMonitor(context, mPackageName) { in onStart()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerWrapper.java47 private String mPackageName; field in MediaPlayerWrapper
100 newWrapper.mPackageName = controller.getPackageName(); in wrap()
117 return mPackageName; in getPackageName()
158 + mPackageName); in playItemFromQueue()
205 Log.d(TAG, "Metadata currently out of sync for " + mPackageName); in isMetadataSynced()
222 e("Cannot register null callbacks for " + mPackageName); in registerCallback()
261 d("Controller for " + mPackageName + " maybe is not activated."); in updateMediaController()
275 d("Controller for " + mPackageName + " was updated."); in updateMediaController()
293 Log.e(TAG, mPackageName in sendMediaUpdate()
298 Log.v(TAG, "trySendMediaUpdate(): Metadata has been updated for " + mPackageName); in sendMediaUpdate()
[all …]
DBrowsedPlayerWrapper.java62 private String mPackageName; field in BrowsedPlayerWrapper
96 mPackageName = packageName; in BrowsedPlayerWrapper()
114 Log.wtfStack(TAG, "connect: Trying to connect to " + mPackageName in connect()
118 Log.w(TAG, "connect: Already trying to connect to " + mPackageName); in connect()
122 if (DEBUG) Log.d(TAG, "connect: Connecting to browsable player: " + mPackageName); in connect()
131 if (DEBUG) Log.d(TAG, "disconnect: Disconnecting from " + mPackageName); in disconnect()
137 return mPackageName; in getPackageName()
147 if (DEBUG) Log.d(TAG, "playItem: Connected to browsable player " + mPackageName); in playItem()
175 Log.wtfStack(TAG, "connect: Trying to connect to " + mPackageName in getFolderItems()
179 Log.w(TAG, "connect: Already trying to connect to " + mPackageName); in getFolderItems()
[all …]
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/
DRecentAppsPreferenceControllerTest.java145 stat1.mPackageName = "pkg.class"; in display_showRecents()
149 stat2.mPackageName = "com.android.tv.settings"; in display_showRecents()
153 stat3.mPackageName = "pkg.class2"; in display_showRecents()
157 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())) in display_showRecents()
159 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())) in display_showRecents()
161 when(mAppState.getEntry(stat3.mPackageName, UserHandle.myUserId())) in display_showRecents()
182 stat1.mPackageName = "com.foo.bar"; in display_showRecentsWithInstantApp()
188 stat2.mPackageName = "com.foo.barinstant"; in display_showRecentsWithInstantApp()
196 when(mAppState.getEntry(stat1.mPackageName, UserHandle.myUserId())).thenReturn(stat1Entry); in display_showRecentsWithInstantApp()
197 when(mAppState.getEntry(stat2.mPackageName, UserHandle.myUserId())).thenReturn(stat2Entry); in display_showRecentsWithInstantApp()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java97 private String mPackageName; field in ApplicationDetailsFragment
137 mPackageName = getArguments().getString(EXTRA_PACKAGE_NAME); in onAttach()
150 R.string.pk_application_details_permissions).setPackageName(mPackageName); in onAttach()
204 mAppEntry = mAppState.getEntry(mPackageName, in retrieveAppEntry()
208 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry()
212 LOG.e("Exception when retrieving package:" + mPackageName, e); in retrieveAppEntry()
221 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton()
228 Uri.fromParts("package", mPackageName, /* fragment= */ null)); in updateForceStopButton()
229 intent.putExtra(Intent.EXTRA_PACKAGES, new String[]{mPackageName}); in updateForceStopButton()
232 LOG.d("Sending broadcast to query restart status for " + mPackageName); in updateForceStopButton()
[all …]
DNotificationsPreferenceController.java43 private String mPackageName; field in NotificationsPreferenceController
60 mPackageName = packageInfo.packageName; in setPackageInfo()
79 if (mNotificationManager.onlyHasDefaultChannel(mPackageName, mUid)) { in handlePreferenceChanged()
82 mPackageName, in handlePreferenceChanged()
88 .updateNotificationChannelForPackage(mPackageName, mUid, defaultChannel); in handlePreferenceChanged()
90 mNotificationManager.setNotificationsEnabledForPackage(mPackageName, mUid, enabled); in handlePreferenceChanged()
100 return mNotificationManager.areNotificationsEnabledForPackage(mPackageName, mUid); in isNotificationsEnabled()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAccountItem.java34 private final String mPackageName; field in BluetoothMapAccountItem
48 this.mPackageName = packageName; in BluetoothMapAccountItem()
111 if (!other.mPackageName.equals(this.mPackageName)) { in compareTo()
114 "Wrong packageName : " + this.mPackageName + " vs " + other.mPackageName); in compareTo()
146 result = prime * result + ((mPackageName == null) ? 0 : mPackageName.hashCode()); in hashCode()
178 if (mPackageName == null) { in equals()
179 if (other.mPackageName != null) { in equals()
182 } else if (!mPackageName.equals(other.mPackageName)) { in equals()
220 return mPackageName; in getPackageName()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppOpsSettingsTest.java67 private String mPackageName; field in AppOpsSettingsTest
81 mPackageName = InstrumentationRegistry.getContext().getPackageName(); in setUp()
93 final int uid = mPackageManager.getPackageUidAsUser(mPackageName, user.id); in resetAppOpModeForAllProfiles()
94 mAppOpsManager.setMode(mAppOpCode, uid, mPackageName, MODE_DEFAULT); in resetAppOpModeForAllProfiles()
132 final String testAppLabel = getApplicationLabel(mPackageName); in testAppList()
162 final String testAppLabel = getApplicationLabel(mPackageName); in testAppDetailScreenForAppOp()
168 mPackageManager.getPackageUidAsUser(mPackageName, userId), mPackageName, appOpMode); in testAppDetailScreenForAppOp()
169 mContext.startActivityAsUser(createManageSingleAppIntent(mPackageName), in testAppDetailScreenForAppOp()
186 final int packageUid = mPackageManager.getPackageUid(mPackageName, 0); in testSwitchToggle()
189 mAppOpsManager.setMode(mAppOpCode, packageUid, mPackageName, fromAppOp); in testSwitchToggle()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DRequestIgnoreBatteryOptimizations.java42 String mPackageName; field in RequestIgnoreBatteryOptimizations
58 mPackageName = data.getSchemeSpecificPart(); in onCreate()
59 if (mPackageName == null) { in onCreate()
67 if (power.isIgnoringBatteryOptimizations(mPackageName)) { in onCreate()
68 Log.i(TAG, "Not should prompt, already ignoring optimizations: " + mPackageName); in onCreate()
75 ai = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate()
77 Log.w(TAG, "Requested package doesn't exist: " + mPackageName); in onCreate()
83 Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, mPackageName) in onCreate()
85 Log.w(TAG, "Requested package " + mPackageName + " does not hold permission " in onCreate()
106 mDeviceIdleService.addPowerSaveWhitelistApp(mPackageName); in onClick()
DHighPowerDetail.java53 String mPackageName; field in HighPowerDetail
75 mPackageName = getArguments().getString(AppInfoBase.ARG_PACKAGE_NAME); in onCreate()
79 mLabel = pm.getApplicationInfo(mPackageName, 0).loadLabel(pm); in onCreate()
81 mLabel = mPackageName; in onCreate()
84 mIsEnabled = mDefaultOn || mBackend.isWhitelisted(mPackageName); in onCreate()
94 if (!on && mBackend.isSysWhitelisted(mPackageName)) { in setup()
106 if (!mBackend.isSysWhitelisted(mPackageName)) { in onCreateDialog()
140 boolean oldValue = mBackend.isWhitelisted(mPackageName); in onClick()
142 logSpecialPermissionChange(newValue, mPackageName, getContext()); in onClick()
144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRequestIgnoreBatteryOptimizations.java42 String mPackageName; field in RequestIgnoreBatteryOptimizations
58 mPackageName = data.getSchemeSpecificPart(); in onCreate()
59 if (mPackageName == null) { in onCreate()
67 if (power.isIgnoringBatteryOptimizations(mPackageName)) { in onCreate()
68 Log.i(TAG, "Not should prompt, already ignoring optimizations: " + mPackageName); in onCreate()
75 ai = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate()
77 Log.w(TAG, "Requested package doesn't exist: " + mPackageName); in onCreate()
83 Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, mPackageName) in onCreate()
85 Log.w(TAG, "Requested package " + mPackageName + " does not hold permission " in onCreate()
106 mDeviceIdleService.addPowerSaveWhitelistApp(mPackageName); in onClick()
DHighPowerDetail.java53 String mPackageName; field in HighPowerDetail
75 mPackageName = getArguments().getString(AppInfoBase.ARG_PACKAGE_NAME); in onCreate()
79 mLabel = pm.getApplicationInfo(mPackageName, 0).loadLabel(pm); in onCreate()
81 mLabel = mPackageName; in onCreate()
84 mIsEnabled = mDefaultOn || mBackend.isWhitelisted(mPackageName); in onCreate()
94 if (!on && mBackend.isSysWhitelisted(mPackageName)) { in setup()
106 if (!mBackend.isSysWhitelisted(mPackageName)) { in onCreateDialog()
140 boolean oldValue = mBackend.isWhitelisted(mPackageName); in onClick()
142 logSpecialPermissionChange(newValue, mPackageName, getContext()); in onClick()
144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick()
[all …]
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java38 private final String mPackageName; field in AppPreference
45 mPackageName = packageName; in AppPreference()
57 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference()
60 label = VpnConfig.getVpnLabel(userContext, mPackageName).toString(); in AppPreference()
80 return pm.getPackageInfo(mPackageName, 0 /* flags */); in getPackageInfo()
91 return mPackageName; in getPackageName()
106 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppPreference.java38 private final String mPackageName; field in AppPreference
45 mPackageName = packageName; in AppPreference()
57 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference()
60 label = VpnConfig.getVpnLabel(userContext, mPackageName).toString(); in AppPreference()
80 return pm.getPackageInfo(mPackageName, 0 /* flags */); in getPackageInfo()
91 return mPackageName; in getPackageName()
106 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
/packages/apps/Settings/src/com/android/settings/applications/
DAppLaunchSettings.java83 mIsBrowser = isBrowserApp(mPackageName); in onCreate()
88 … List<IntentFilterVerificationInfo> iviList = mPm.getIntentFilterVerifications(mPackageName); in onCreate()
89 List<IntentFilter> filters = mPm.getAllIntentFilters(mPackageName); in onCreate()
90 CharSequence[] entries = getEntries(mPackageName, iviList, filters); in onCreate()
144 … final int state = mPm.getIntentVerificationStatusAsUser(mPackageName, UserHandle.myUserId()); in buildStateDropDown()
177 final int priorState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState()
183 boolean success = mPm.updateIntentVerificationStatusAsUser(mPackageName, newState, userId); in updateAppLinkState()
186 final int updatedState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState()
202 mClearDefaultsPreference.setPackageName(mPackageName); in refreshUi()
DClearDefaultsPreference.java53 private String mPackageName; field in ClearDefaultsPreference
83 mPackageName = packageName; in setPackageName()
100 mPm.clearPackagePreferredActivities(mPackageName); in onBindViewHolder()
101 if (isDefaultBrowser(mPackageName)) { in onBindViewHolder()
105 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder()
109 mAppWidgetManager.setBindAppWidgetPermission(mPackageName, false); in onBindViewHolder()
124 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in updateUI()
125 || isDefaultBrowser(mPackageName) in updateUI()
126 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DClearDefaultsPreference.java53 private String mPackageName; field in ClearDefaultsPreference
83 mPackageName = packageName; in setPackageName()
100 mPm.clearPackagePreferredActivities(mPackageName); in onBindViewHolder()
101 if (isDefaultBrowser(mPackageName)) { in onBindViewHolder()
105 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder()
109 mAppWidgetManager.setBindAppWidgetPermission(mPackageName, false); in onBindViewHolder()
124 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in updateUI()
125 || isDefaultBrowser(mPackageName) in updateUI()
126 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
DAppLaunchSettings.java83 mIsBrowser = isBrowserApp(mPackageName); in onCreate()
88 … List<IntentFilterVerificationInfo> iviList = mPm.getIntentFilterVerifications(mPackageName); in onCreate()
89 List<IntentFilter> filters = mPm.getAllIntentFilters(mPackageName); in onCreate()
90 CharSequence[] entries = getEntries(mPackageName, iviList, filters); in onCreate()
144 … final int state = mPm.getIntentVerificationStatusAsUser(mPackageName, UserHandle.myUserId()); in buildStateDropDown()
177 final int priorState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState()
183 boolean success = mPm.updateIntentVerificationStatusAsUser(mPackageName, newState, userId); in updateAppLinkState()
186 final int updatedState = mPm.getIntentVerificationStatusAsUser(mPackageName, userId); in updateAppLinkState()
202 mClearDefaultsPreference.setPackageName(mPackageName); in refreshUi()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSource.java59 private final String mPackageName; field in MediaSource
70 mPackageName = packageName; in MediaSource()
72 extractComponentInfo(mPackageName, mBrowseServiceClassName); in MediaSource()
131 return mPackageName; in getPackageName()
141 return new ComponentName(mPackageName, mBrowseServiceClassName); in getBrowseServiceComponentName()
172 return isCustom(mPackageName); in isCustom()
236 return Objects.equals(mPackageName, that.mPackageName) in equals()
242 return Objects.hash(mPackageName, mBrowseServiceClassName); in hashCode()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DAppResourceWallpaperInfo.java55 private String mPackageName; field in AppResourceWallpaperInfo
62 mPackageName = packageName; in AppResourceWallpaperInfo()
68 mPackageName = in.readString(); in AppResourceWallpaperInfo()
113 mResources = ctx.getPackageManager().getResourcesForApplication(mPackageName); in getPackageResources()
166 return mPackageName.equals(((AppResourceWallpaperInfo) object).mPackageName) in equals()
176 result = 31 * result + mPackageName.hashCode(); in hashCode()
184 parcel.writeString(mPackageName); in writeToParcel()
/packages/services/Car/car-lib/src/android/car/projection/
DProjectionStatus.java88 private final String mPackageName; field in ProjectionStatus
108 mPackageName = builder.mPackageName; in ProjectionStatus()
116 mPackageName = source.readString(); in ProjectionStatus()
131 dest.writeString(mPackageName); in writeToParcel()
147 return mPackageName; in getPackageName()
187 private final String mPackageName; field in ProjectionStatus.Builder
199 mPackageName = packageName; in Builder()
253 + "mPackageName='" + mPackageName + '\'' in toString()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DInstantAppButtonsPreferenceController.java55 private final String mPackageName; field in InstantAppButtonsPreferenceController
64 mPackageName = packageName; in InstantAppButtonsPreferenceController()
95 final Intent appStoreIntent = AppStoreUtil.getAppStoreLink(mContext, mPackageName); in onOptionsItemSelected()
108 if (AppStoreUtil.getAppStoreLink(mContext, mPackageName) == null) { in onPrepareOptionsMenu()
122 intent.setPackage(mPackageName); in initButtons()
128 final Intent appStoreIntent = AppStoreUtil.getAppStoreLink(mContext, mPackageName); in initButtons()
140 InstantAppButtonDialogFragment.newInstance(mPackageName); in showDialog()
149 intent.setPackage(mPackageName); in getDefaultLaunchUri()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DInstantAppButtonsPreferenceController.java55 private final String mPackageName; field in InstantAppButtonsPreferenceController
64 mPackageName = packageName; in InstantAppButtonsPreferenceController()
95 final Intent appStoreIntent = AppStoreUtil.getAppStoreLink(mContext, mPackageName); in onOptionsItemSelected()
108 if (AppStoreUtil.getAppStoreLink(mContext, mPackageName) == null) { in onPrepareOptionsMenu()
122 intent.setPackage(mPackageName); in initButtons()
128 final Intent appStoreIntent = AppStoreUtil.getAppStoreLink(mContext, mPackageName); in initButtons()
140 InstantAppButtonDialogFragment.newInstance(mPackageName); in showDialog()
149 intent.setPackage(mPackageName); in getDefaultLaunchUri()

1234567