/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 97 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/ |
D | RequestRoleActivity.java | 53 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 …]
|
D | RequestRoleFragment.java | 75 private String mPackageName; field in RequestRoleFragment 112 mPackageName = arguments.getString(Intent.EXTRA_PACKAGE_NAME); in onCreate() 126 if (currentPackageNames.contains(mPackageName)) { in onCreateDialog() 128 + ", package: " + mPackageName); in onCreateDialog() 135 ApplicationInfo applicationInfo = PackageUtils.getApplicationInfo(mPackageName, context); in onCreateDialog() 137 Log.w(LOG_TAG, "Unknown application: " + mPackageName); in onCreateDialog() 167 mPackageName); in onCreateDialog() 204 if (PackageUtils.getApplicationInfo(mPackageName, context) == null) { in onStart() 205 Log.w(LOG_TAG, "Unknown application: " + mPackageName); in onStart() 213 mPackageRemovalMonitor = new PackageRemovalMonitor(context, mPackageName) { in onStart() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | MediaPlayerWrapper.java | 50 private String mPackageName; field in MediaPlayerWrapper 86 mPackageName = controller.getPackageName(); in MediaPlayerWrapper() 105 return mPackageName; in getPackageName() 147 + mPackageName); in playItemFromQueue() 194 Log.d(TAG, "Metadata currently out of sync for " + mPackageName); in isMetadataSynced() 211 e("Cannot register null callbacks for " + mPackageName); in registerCallback() 250 d("Controller for " + mPackageName + " maybe is not activated."); in updateMediaController() 264 d("Controller for " + mPackageName + " was updated."); in updateMediaController() 282 Log.e(TAG, mPackageName in sendMediaUpdate() 287 Log.v(TAG, "trySendMediaUpdate(): Metadata has been updated for " + mPackageName); in sendMediaUpdate() [all …]
|
D | BrowsedPlayerWrapper.java | 73 private final String mPackageName; field in BrowsedPlayerWrapper 109 mPackageName = packageName; in BrowsedPlayerWrapper() 139 Log.wtf(TAG, "connect: Trying to connect to " + mPackageName in connect() 155 if (DEBUG) Log.d(TAG, "disconnect: Disconnecting from " + mPackageName); in disconnect() 168 if (DEBUG) Log.d(TAG, "Set mCallback, connecting to " + mPackageName); in setCallbackAndConnect() 194 return mPackageName; in getPackageName() 210 if (DEBUG) Log.d(TAG, "playItem: Connected to browsable player " + mPackageName); in playItem() 248 Log.wtf(TAG, "getFolderItems: Trying to connect to " + mPackageName 252 if (DEBUG) Log.d(TAG, "getFolderItems: Connecting to browsable player: " + mPackageName); 254 Log.i(TAG, "getFolderItems: Connected to browsable player: " + mPackageName); [all …]
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceControllerTest.java | 145 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/ |
D | ApplicationDetailsFragment.java | 96 private String mPackageName; field in ApplicationDetailsFragment 135 mPackageName = getArguments().getString(EXTRA_PACKAGE_NAME); in onAttach() 148 R.string.pk_application_details_permissions).setPackageName(mPackageName); in onAttach() 151 .setAppEntry(mAppEntry).setPackageName(mPackageName); in onAttach() 200 mAppEntry = mAppState.getEntry(mPackageName, in retrieveAppEntry() 204 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry() 208 LOG.e("Exception when retrieving package:" + mPackageName, e); in retrieveAppEntry() 217 if (mDpm.packageHasActiveAdmins(mPackageName)) { in updateForceStopButton() 224 Uri.fromParts("package", mPackageName, /* fragment= */ null)); in updateForceStopButton() 225 intent.putExtra(Intent.EXTRA_PACKAGES, new String[]{mPackageName}); in updateForceStopButton() [all …]
|
D | NotificationsPreferenceController.java | 43 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/ |
D | BluetoothMapAccountItem.java | 34 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/SecureElement/src/com/android/se/security/gpac/ |
D | PKG_REF_DO.java | 31 private String mPackageName = null; field in PKG_REF_DO 40 mPackageName = new String(pkg); in PKG_REF_DO() 59 return mPackageName; in getPackageName() 64 return new String("PKG_REF_DO: " + mPackageName); in toString() 89 mPackageName = new String(pkg); in interpret() 100 byte[] pkg = mPackageName.getBytes(); in build() 121 if (mPackageName != null) { in equals() 122 return mPackageName.equals(pkg_ref_do.mPackageName); in equals() 124 return (pkg_ref_do.mPackageName == null); in equals()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/ |
D | AppOpsSettingsTest.java | 67 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/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RequestIgnoreBatteryOptimizations.java | 42 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()
|
D | HighPowerDetail.java | 53 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | RequestIgnoreBatteryOptimizations.java | 42 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()
|
D | HighPowerDetail.java | 53 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/ |
D | AppPreference.java | 38 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/ |
D | AppPreference.java | 38 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/ |
D | AppLaunchSettings.java | 83 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()
|
D | ClearDefaultsPreference.java | 53 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/ |
D | ClearDefaultsPreference.java | 53 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()
|
D | AppLaunchSettings.java | 83 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/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | AppResourceWallpaperInfo.java | 55 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/ |
D | ProjectionStatus.java | 88 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/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | InstantAppButtonsPreferenceController.java | 55 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | InstantAppButtonsPreferenceController.java | 55 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()
|