/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryOptimizeUtils.java | 35 private final String mPackageName; field in BatteryOptimizeUtils 53 mPackageName = packageName; in BatteryOptimizeUtils() 58 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mPackageName); in BatteryOptimizeUtils() 59 mAllowListed = mPowerAllowListBackend.isAllowlisted(mPackageName); in BatteryOptimizeUtils() 79 mBatteryUtils.setForceAppStandby(mUid, mPackageName, AppOpsManager.MODE_IGNORED); in setAppUsageState() 80 mPowerAllowListBackend.removeApp(mPackageName); in setAppUsageState() 83 mBatteryUtils.setForceAppStandby(mUid, mPackageName, AppOpsManager.MODE_ALLOWED); in setAppUsageState() 84 mPowerAllowListBackend.addApp(mPackageName); in setAppUsageState() 87 mBatteryUtils.setForceAppStandby(mUid, mPackageName, AppOpsManager.MODE_ALLOWED); in setAppUsageState() 88 mPowerAllowListBackend.removeApp(mPackageName); in setAppUsageState() [all …]
|
D | RequestIgnoreBatteryOptimizations.java | 38 String mPackageName; field in RequestIgnoreBatteryOptimizations 53 mPackageName = data.getSchemeSpecificPart(); in onCreate() 54 if (mPackageName == null) { in onCreate() 62 if (power.isIgnoringBatteryOptimizations(mPackageName)) { in onCreate() 63 Log.i(TAG, "Not should prompt, already ignoring optimizations: " + mPackageName); in onCreate() 70 ai = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate() 72 Log.w(TAG, "Requested package doesn't exist: " + mPackageName); in onCreate() 78 Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, mPackageName) in onCreate() 80 Log.w(TAG, "Requested package " + mPackageName + " does not hold permission " in onCreate() 107 mPowerWhitelistManager.addToWhitelist(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.isAllowlisted(mPackageName); in onCreate() 94 if (!on && mBackend.isSysAllowlisted(mPackageName)) { in setup() 106 if (!mBackend.isSysAllowlisted(mPackageName)) { in onCreateDialog() 140 boolean oldValue = mBackend.isAllowlisted(mPackageName); in onClick() 142 logSpecialPermissionChange(newValue, mPackageName, getContext()); in onClick() 144 mBatteryUtils.setForceAppStandby(mPackageUid, mPackageName, in onClick() [all …]
|
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/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() 173 mPackageName); in onCreateDialog() 210 if (PackageUtils.getApplicationInfo(mPackageName, context) == null) { in onStart() 211 Log.w(LOG_TAG, "Unknown application: " + mPackageName); in onStart() 219 mPackageRemovalMonitor = new PackageRemovalMonitor(context, mPackageName) { in onStart() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapper.java | 52 private String mPackageName; field in MediaPlayerWrapper 89 mPackageName = controller.getPackageName(); in MediaPlayerWrapper() 108 return mPackageName; in getPackageName() 150 + mPackageName); in playItemFromQueue() 236 Log.d(TAG, "Metadata currently out of sync for " + mPackageName); in isMetadataSynced() 253 e("Cannot register null callbacks for " + mPackageName); in registerCallback() 292 d("Controller for " + mPackageName + " maybe is not activated."); in updateMediaController() 306 d("Controller for " + mPackageName + " was updated."); in updateMediaController() 324 Log.e(TAG, mPackageName in sendMediaUpdate() 329 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 | ApplicationActionButtonsPreferenceController.java | 112 private String mPackageName; field in ApplicationActionButtonsPreferenceController 122 LOG.d("Stopping package " + mPackageName); 124 .forceStopPackage(mPackageName); 126 mApplicationsState.invalidatePackage(mPackageName, userId); 148 LOG.d("Got broadcast response: Restart status for " + mPackageName + " " + enabled); 158 mPm.setApplicationEnabledSetting(mPackageName, 176 mPm.setApplicationEnabledSetting(mPackageName, 183 Uri packageUri = Uri.parse("package:" + mPackageName); 258 mPackageName = packageName; in setPackageName() 264 if (mAppEntry == null || mApplicationsState == null || mPackageName == null) { in checkInitialized() [all …]
|
D | ApplicationDetailsFragment.java | 42 private String mPackageName; field in ApplicationDetailsFragment 68 mPackageName = getArguments().getString(EXTRA_PACKAGE_NAME); in onAttach() 79 .setAppEntry(mAppEntry).setAppState(mAppState).setPackageName(mPackageName); in onAttach() 83 R.string.pk_application_details_permissions).setPackageName(mPackageName); in onAttach() 86 .setAppEntry(mAppEntry).setPackageName(mPackageName); in onAttach() 91 .setPackageName(mPackageName); in onAttach() 97 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry() 100 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry() 104 LOG.e("Exception when retrieving package:" + mPackageName, e); in retrieveAppEntry()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | InstallPackageTask.java | 70 private final String mPackageName; field in InstallPackageTask 108 mPackageName = requireNonNull(mProvisioningParams.inferDeviceAdminPackageName()); in InstallPackageTask() 134 ProvisionLogger.logi("Installing package " + mPackageName + " on user " + userId + " from " in run() 145 if (mDpm.isDeviceOwnerApp(mPackageName)) { in run() 154 installPackage(packageLocation, mPackageName, params, mContext, mSessionCallback); in run() 156 ProvisionLogger.loge("Installing package " + mPackageName + " failed.", e); in run() 210 ProvisionLogger.logd("Package " + mPackageName + " is successfully installed."); in addSuccessStatus() 218 private final String mPackageName; field in InstallPackageTask.PackageAddedReceiver 221 mPackageName = requireNonNull(packageName); in PackageAddedReceiver() 228 if (!mPackageName.equals(extractPackageNameFromDataString(intent.getDataString()))) { in onReceive() [all …]
|
/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/services/Car/car-lib/src/android/car/watchdog/ |
D | ResourceOveruseStats.java | 37 private @NonNull String mPackageName; field in ResourceOveruseStats 70 this.mPackageName = packageName; in ResourceOveruseStats() 72 NonNull.class, null, mPackageName); in ResourceOveruseStats() 86 return mPackageName; in getPackageName() 109 "packageName = " + mPackageName + ", " + in toString() 124 dest.writeString(mPackageName); in writeToParcel() 145 this.mPackageName = packageName; in ResourceOveruseStats() 147 NonNull.class, null, mPackageName); in ResourceOveruseStats() 178 private @NonNull String mPackageName; field in ResourceOveruseStats.Builder 195 mPackageName = packageName; in Builder() [all …]
|
D | PackageKillableState.java | 55 private @NonNull String mPackageName; field in PackageKillableState 122 this.mPackageName = packageName; in PackageKillableState() 124 NonNull.class, null, mPackageName); in PackageKillableState() 149 return mPackageName; in getPackageName() 175 "packageName = " + mPackageName + ", " + in toString() 187 dest.writeString(mPackageName); in writeToParcel() 207 this.mPackageName = packageName; in PackageKillableState() 209 NonNull.class, null, mPackageName); in PackageKillableState()
|
/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/src/com/android/settings/vpn2/ |
D | AppPreference.java | 41 private final String mPackageName; field in AppPreference 48 mPackageName = packageName; in AppPreference() 61 PackageInfo pkgInfo = pm.getPackageInfo(mPackageName, 0 /* flags */); in AppPreference() 64 label = VpnConfig.getVpnLabel(userContext, mPackageName).toString(); in AppPreference() 93 if (mPackageName.equals(dpm.getAlwaysOnVpnPackage())) { in disableIfConfiguredByAdmin() 103 return pm.getPackageInfo(mPackageName, 0 /* flags */); in getPackageInfo() 114 return mPackageName; in getPackageName() 129 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
|
D | AppManagementFragment.java | 75 private String mPackageName; field in AppManagementFragment 228 isEnabled ? mPackageName : null, isLockdown, /* lockdownAllowlist */ null); in setAlwaysOnVpn() 252 if (mPackageName.equals(mDevicePolicyManager.getAlwaysOnVpnPackage())) { in updateRestrictedViews() 261 if (mVpnManager.isAlwaysOnVpnPackageSupportedForUser(mUserId, mPackageName)) { in updateRestrictedViews() 279 return mPackageName.equals(getAlwaysOnVpnPackage()); in isVpnAlwaysOn() 293 mPackageName = args.getString(ARG_PACKAGE_NAME); in loadInfo() 294 if (mPackageName == null) { in loadInfo() 300 mPackageInfo = mPackageManager.getPackageInfo(mPackageName, /* PackageInfoFlags */ 0); in loadInfo() 301 mVpnLabel = VpnConfig.getVpnLabel(getPrefContext(), mPackageName).toString(); in loadInfo() 333 return config != null && !TextUtils.equals(config.user, mPackageName); in isAnotherVpnActive()
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/ |
D | SharedLibrarySpecifier.java | 32 private final String mPackageName; field in SharedLibrarySpecifier 37 mPackageName = builder.mPackageName; in SharedLibrarySpecifier() 47 boolean nameMatches = mPackageName == null in matches() 48 || mPackageName.equals(packageInfo.packageName); in matches() 57 private String mPackageName; field in SharedLibrarySpecifier.Builder 69 mPackageName = packageName; in setPackageName()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ClearDefaultsPreference.java | 57 private String mPackageName; field in ClearDefaultsPreference 96 mPackageName = packageName; in setPackageName() 119 mPm.clearPackagePreferredActivities(mPackageName); in onBindViewHolder() 120 if (AppUtils.isDefaultBrowser(getContext(), mPackageName)) { in onBindViewHolder() 124 mUsbManager.clearDefaults(mPackageName, userId); in onBindViewHolder() 128 mAppWidgetManager.setBindAppWidgetPermission(mPackageName, false); in onBindViewHolder() 143 boolean autoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in updateUI() 144 || AppUtils.isDefaultBrowser(getContext(), mPackageName) in updateUI() 145 || AppUtils.hasUsbDefaults(mUsbManager, mPackageName); in updateUI()
|
/packages/apps/Settings/src/com/android/settings/applications/intentpicker/ |
D | AppLaunchSettings.java | 134 mClearDefaultsPreference.setPackageName(mPackageName); in refreshUi() 150 mPackageName); in onPreferenceChange() 172 mDomainVerificationManager.setDomainVerificationLinkHandlingAllowed(mPackageName, in onSwitchChanged() 199 .setPackageName(mPackageName) in createHeaderPreference() 229 mPackageName); in canUpdateMainSwitchAndCategories() 275 mDomainVerificationManager, mPackageName, DOMAIN_STATE_VERIFIED); in createVerifiedLinksDialog() 302 mDomainVerificationManager, mPackageName, DOMAIN_STATE_SELECTED); in addSelectedLinksPreference() 334 args.putString(APP_PACKAGE_KEY, mPackageName); in showProgressDialogFragment() 379 final boolean isAutoLaunchEnabled = AppUtils.hasPreferredActivities(mPm, mPackageName) in isClearDefaultsEnabled() 380 || AppUtils.isDefaultBrowser(mContext, mPackageName) in isClearDefaultsEnabled() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | AppResourceWallpaperInfo.java | 55 private String mPackageName; field in AppResourceWallpaperInfo 62 mPackageName = packageName; in AppResourceWallpaperInfo() 69 mPackageName = in.readString(); in AppResourceWallpaperInfo() 114 mResources = ctx.getPackageManager().getResourcesForApplication(mPackageName); in getPackageResources() 167 return mPackageName.equals(((AppResourceWallpaperInfo) object).mPackageName) in equals() 177 result = 31 * result + mPackageName.hashCode(); in hashCode() 186 parcel.writeString(mPackageName); in writeToParcel()
|
/packages/modules/Gki/test/src/com/android/gki/tests/ |
D | GkiInstallTest.java | 83 private String mPackageName; field in GkiInstallTest 111 mPackageName = mFileName.substring(0, mFileName.length() - HIGH_SUFFIX.length()); in inferPackageName() 114 mPackageName = mFileName.substring(0, mFileName.length() - LOW_SUFFIX.length()); in inferPackageName() 128 CLog.i("Checking if %s is installed on the device.", mPackageName); in skipTestIfPackageNotInstalled() 129 ApexInfo oldApexInfo = getApexInfo(getDevice(), mPackageName); in skipTestIfPackageNotInstalled() 131 assumeThat(oldApexInfo.name, is(mPackageName)); in skipTestIfPackageNotInstalled() 149 Matcher packageMatcher = packagePattern.matcher(mPackageName); in skipTestIfWrongKernelVersion() 159 String desc = String.format("package %s vs kernel release %s", mPackageName, in skipTestIfWrongKernelVersion() 211 assertThat(result, either(containsString("Downgrade of APEX package " + mPackageName in testInstallAndReboot() 219 ApexInfo newApexInfo = getApexInfo(getDevice(), mPackageName); in testInstallAndReboot()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | ShortcutsChangedTask.java | 41 private final String mPackageName; field in ShortcutsChangedTask 48 mPackageName = packageName; in ShortcutsChangedTask() 63 && mPackageName.equals(si.getIntent().getPackage())) { in execute() 73 .isAppInstalled(mPackageName, mUser)) { in execute() 84 .forPackage(mPackageName, allLauncherKnownIds) in execute() 110 .map(id -> new ShortcutKey(mPackageName, mUser, id)) in execute() 117 dataModel.updateDeepShortcutCounts(mPackageName, mUser, mShortcuts); in execute()
|
/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()
|