/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/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/modules/Bluetooth/android/app/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() 251 Log.d(TAG, "Metadata currently out of sync for " + mPackageName); in isMetadataSynced() 260 Log.d(TAG, mPackageName + " Only Title and Artist info sync for metadata"); in isMetadataSynced() 276 e("Cannot register null callbacks for " + mPackageName); in registerCallback() 315 d("Controller for " + mPackageName + " maybe is not activated."); in updateMediaController() 329 d("Controller for " + mPackageName + " was updated."); in updateMediaController() 347 Log.e(TAG, 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/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationActionButtonsPreferenceController.java | 118 private String mPackageName; field in ApplicationActionButtonsPreferenceController 128 LOG.d("Stopping package " + mPackageName); 130 .forceStopPackage(mPackageName); 132 mApplicationsState.invalidatePackage(mPackageName, userId); 154 LOG.d("Got broadcast response: Restart status for " + mPackageName + " " + enabled); 161 mPm.setApplicationEnabledSetting(mPackageName, 180 mPm.setApplicationEnabledSetting(mPackageName, 187 Uri packageUri = Uri.parse("package:" + mPackageName); 188 if (mDpm.packageHasActiveAdmins(mPackageName)) { 192 .putExtra(DeviceAdminAddActivity.EXTRA_DEVICE_ADMIN_PACKAGE_NAME, mPackageName); [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).setAppState(mAppState).setPackageName(mPackageName); in onAttach() 92 .setPackageName(mPackageName); in onAttach() 98 mAppEntry = mAppState.getEntry(mPackageName, UserHandle.myUserId()); in retrieveAppEntry() 101 mPackageInfo = mPm.getPackageInfo(mPackageName, in retrieveAppEntry() 105 LOG.e("Exception when retrieving package:" + mPackageName, e); in retrieveAppEntry()
|
/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/services/Car/car-lib/src/android/car/watchdog/ |
D | ResourceOveruseStats.java | 42 private @NonNull String mPackageName; field in ResourceOveruseStats 75 this.mPackageName = packageName; in ResourceOveruseStats() 77 NonNull.class, null, mPackageName); in ResourceOveruseStats() 95 return mPackageName; in getPackageName() 121 "packageName = " + mPackageName + ", " + in toString() 137 dest.writeString(mPackageName); in writeToParcel() 160 this.mPackageName = packageName; in ResourceOveruseStats() 162 NonNull.class, null, mPackageName); in ResourceOveruseStats() 194 private @NonNull String mPackageName; field in ResourceOveruseStats.Builder 214 mPackageName = packageName; in Builder() [all …]
|
D | PackageKillableState.java | 60 private @NonNull String mPackageName; field in PackageKillableState 128 this.mPackageName = packageName; in PackageKillableState() 130 NonNull.class, null, mPackageName); in PackageKillableState() 156 return mPackageName; in getPackageName() 185 "packageName = " + mPackageName + ", " + in toString() 198 dest.writeString(mPackageName); in writeToParcel() 220 this.mPackageName = packageName; in PackageKillableState() 222 NonNull.class, null, mPackageName); in PackageKillableState()
|
/packages/modules/Bluetooth/android/app/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/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | InstallPackageTask.java | 70 private final String mPackageName; field in InstallPackageTask 112 mPackageName = requireNonNull(packageName); in InstallPackageTask() 138 ProvisionLogger.logi("Installing package " + mPackageName + " on user " + userId + " from " in run() 149 if (mDpm.isDeviceOwnerApp(mPackageName)) { in run() 158 installPackage(packageLocation, mPackageName, params, mContext, mSessionCallback); in run() 160 ProvisionLogger.loge("Installing package " + mPackageName + " failed.", e); in run() 223 ProvisionLogger.logd("Package " + mPackageName + " is successfully installed."); in addSuccessStatus() 231 private final String mPackageName; field in InstallPackageTask.PackageAddedReceiver 234 mPackageName = requireNonNull(packageName); in PackageAddedReceiver() 241 if (!mPackageName.equals(extractPackageNameFromDataString(intent.getDataString()))) { in onReceive() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RequestIgnoreBatteryOptimizations.java | 40 private String mPackageName; field in RequestIgnoreBatteryOptimizations 57 mPackageName = data.getSchemeSpecificPart(); in onCreate() 58 if (mPackageName == null) { in onCreate() 66 if (power.isIgnoringBatteryOptimizations(mPackageName)) { in onCreate() 67 debugLog("Not should prompt, already ignoring optimizations: " + mPackageName); in onCreate() 73 Manifest.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, mPackageName) in onCreate() 75 debugLog("Requested package " + mPackageName + " does not hold permission " in onCreate() 83 ai = getPackageManager().getApplicationInfo(mPackageName, 0); in onCreate() 85 debugLog("Requested package doesn't exist: " + mPackageName); in onCreate() 107 mPowerWhitelistManager.addToWhitelist(mPackageName); in onClick()
|
D | BatteryOptimizeUtils.java | 50 private final String mPackageName; field in BatteryOptimizeUtils 79 mPackageName = packageName; in BatteryOptimizeUtils() 84 .checkOpNoThrow(AppOpsManager.OP_RUN_ANY_IN_BACKGROUND, mUid, mPackageName); in BatteryOptimizeUtils() 85 mAllowListed = mPowerAllowListBackend.isAllowlisted(mPackageName); in BatteryOptimizeUtils() 119 Log.w(TAG, "set the same optimization mode for: " + mPackageName); in setAppUsageState() 122 setAppUsageStateInternal(mode, mUid, mPackageName, mBatteryUtils, mPowerAllowListBackend); in setAppUsageState() 129 return mBatteryUtils.getPackageUid(mPackageName) != BatteryUtils.UID_NULL; in isValidPackageName() 137 return isSystemOrDefaultApp(mPowerAllowListBackend, mPackageName); in isSystemOrDefaultApp() 200 return mPackageName == null ? UNKNOWN_PACKAGE : mPackageName; in getPackageName() 245 mAllowListed = mPowerAllowListBackend.isAllowlisted(mPackageName); in refreshState() [all …]
|
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/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/identity/ |
D | CallerIdentity.java | 75 private final String mPackageName; field in CallerIdentity 84 this.mPackageName = Objects.requireNonNull(packageName); in CallerIdentity() 100 return mPackageName; in getPackageName() 115 int length = 10 + mPackageName.length(); in toString() 121 builder.append(mUid).append("/").append(mPackageName); in toString() 124 if (mAttributionTag.startsWith(mPackageName)) { in toString() 125 builder.append(mAttributionTag.substring(mPackageName.length())); in toString() 145 && mPackageName.equals(that.mPackageName) in equals() 151 return Objects.hash(mUid, mPid, mPackageName, mAttributionTag); in hashCode()
|
/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()
|
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/observer/ |
D | SchemaChangeInfo.java | 39 private final String mPackageName; field in SchemaChangeInfo 54 mPackageName = Objects.requireNonNull(packageName); in SchemaChangeInfo() 63 return mPackageName; in getPackageName() 87 return mPackageName.equals(that.mPackageName) in equals() 94 return Objects.hash(mPackageName, mDatabaseName, mChangedSchemaNames); in hashCode() 102 + mPackageName in toString()
|
D | DocumentChangeInfo.java | 43 private final String mPackageName; field in DocumentChangeInfo 65 mPackageName = Objects.requireNonNull(packageName); in DocumentChangeInfo() 76 return mPackageName; in getPackageName() 112 return mPackageName.equals(that.mPackageName) in equals() 121 return Objects.hash(mPackageName, mDatabase, mNamespace, mSchemaName, mChangedDocumentIds); in hashCode() 129 + mPackageName in toString()
|
/packages/modules/Media/apex/framework/java/android/media/ |
D | Session2Token.java | 89 private final String mPackageName; field in Session2Token 117 mPackageName = serviceComponent.getPackageName(); in Session2Token() 129 mPackageName = packageName; in Session2Token() 139 mPackageName = in.readString(); in Session2Token() 159 dest.writeString(mPackageName); in writeToParcel() 173 return Objects.hash(mType, mUid, mPackageName, mServiceName, mSessionLink); in hashCode() 183 && TextUtils.equals(mPackageName, other.mPackageName) in equals() 191 return "Session2Token {pkg=" + mPackageName + " type=" + mType in toString() 207 return mPackageName; in getPackageName()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | WindowDumpParser.java | 78 private final String mPackageName; field in WindowDumpParser.Window 83 mPackageName = packageName; in Window() 89 return mPackageName; in getPackageName() 106 && mPackageName.equals(window.mPackageName) in equals() 112 return Objects.hash(mPackageName, mDisplayId, mActivityRecord); in hashCode() 118 + "mPackageName=" + mPackageName in toString()
|
/packages/modules/Permission/framework-s/java/android/safetycenter/config/ |
D | SafetySource.java | 179 @Nullable private final String mPackageName; field in SafetySource 207 mPackageName = packageName; in SafetySource() 250 return mPackageName; in getPackageName() 428 && Objects.equals(mPackageName, that.mPackageName) in equals() 446 mPackageName, in hashCode() 468 + mPackageName in toString() 503 dest.writeString(mPackageName); in writeToParcel() 521 @Nullable private String mPackageName; field in SafetySource.Builder 560 mPackageName = packageName; in setPackageName() 739 mPackageName, "packageName", isDynamic || isIssueOnly, isStatic); in build() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/device/apps/ |
D | AppManagementState.java | 74 private String mPackageName; field in AppManagementState 101 mPackageName = extras.getString(ARG_PACKAGE_NAME); in onCreate() 107 mEntry = mApplicationsState.getEntry(mPackageName, UserHandle.myUserId()); in onCreate() 202 mApplicationsState.removePackage(mPackageName, userId); in onActivityResult() 212 mApplicationsState.requestSize(mPackageName, userId); in onActivityResult() 242 packageManager.clearPackagePreferredActivities(mPackageName); in clearDefaults() 246 .clearDefaults(mPackageName, UserHandle.myUserId()); in clearDefaults() 254 Log.e(TAG, "Attempt to clear data failed. Clear data is disabled for " + mPackageName); in clearData() 298 mApplicationsState.requestSize(mPackageName, userId); in dataCleared() 327 mApplicationsState.requestSize(mPackageName, userId); in cacheCleared() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | AppAllServicesPreferenceController.java | 48 private String mPackageName; field in AppAllServicesPreferenceController 86 new ComponentName(mPackageName, resolveInfo.activityInfo.name)); in getStorageSummary() 107 mContext.getSystemService(LocationManager.class)).isProviderPackage(mPackageName); in isLocationProvider() 129 mPackageName = packageName; in setPackageName() 146 new ComponentName(mPackageName, resolveInfo.activityInfo.name)); in startAllServicesActivity() 160 if (mPackageName == null) { in getResolveInfo() 164 featuresIntent.setPackage(mPackageName); in getResolveInfo()
|