Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java75 String mPackageName; field in InfoMediaManager
88 mPackageName = packageName; in InfoMediaManager()
137 if (TextUtils.isEmpty(mPackageName)) { in addDeviceToPlayMedia()
155 return getRoutingSessionInfo(mPackageName); in getRoutingSessionInfo()
173 mRouterManager.getRoutingSessions(mPackageName); in isRoutingSessionAvailableForVolumeControl()
187 Log.d(TAG, "No routing session for " + mPackageName); in isRoutingSessionAvailableForVolumeControl()
204 if (TextUtils.isEmpty(mPackageName)) { in removeDeviceFromPlayMedia()
225 if (TextUtils.isEmpty(mPackageName)) { in releaseSession()
237 Log.w(TAG, "releaseSession() Ignoring release session : " + mPackageName); in releaseSession()
249 if (TextUtils.isEmpty(mPackageName)) { in getSelectableMediaDevice()
[all …]
/frameworks/base/core/tests/GameManagerTests/src/android/app/
DGameManagerTests.java42 private String mPackageName; field in GameManagerTests
48 mPackageName = mContext.getPackageName(); in setUp()
51 mGameManager.setGameMode(mPackageName, GameManager.GAME_MODE_UNSUPPORTED); in setUp()
59 mGameManager.setGameMode(mPackageName, GameManager.GAME_MODE_STANDARD); in testPublicApiGameModeGetterSetter()
63 mGameManager.setGameMode(mPackageName, GameManager.GAME_MODE_PERFORMANCE); in testPublicApiGameModeGetterSetter()
71 mGameManager.getGameMode(mPackageName)); in testPrivilegedGameModeGetterSetter()
73 mGameManager.setGameMode(mPackageName, GameManager.GAME_MODE_STANDARD); in testPrivilegedGameModeGetterSetter()
75 mGameManager.getGameMode(mPackageName)); in testPrivilegedGameModeGetterSetter()
77 mGameManager.setGameMode(mPackageName, GameManager.GAME_MODE_PERFORMANCE); in testPrivilegedGameModeGetterSetter()
79 mGameManager.getGameMode(mPackageName)); in testPrivilegedGameModeGetterSetter()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/
DGameManagerServiceTests.java99 private String mPackageName; field in GameManagerServiceTests
186 mPackageName = mMockContext.getPackageName(); in setUp()
189 applicationInfo.packageName = mPackageName; in setUp()
191 pi.packageName = mPackageName; in setUp()
204 when(mMockPackageManager.getPackageUidAsUser(mPackageName, USER_ID_1)).thenReturn( in setUp()
230 gameManagerService.disableCompatScale(mPackageName); in tearDown()
322 mPackageName, PackageManager.GET_META_DATA, USER_ID_1); in mockGameModeOptInAll()
335 mPackageName, PackageManager.GET_META_DATA, USER_ID_1); in mockGameModeOptInPerformance()
346 mPackageName, PackageManager.GET_META_DATA, USER_ID_1); in mockGameModeOptInBattery()
357 mPackageName, PackageManager.GET_META_DATA, USER_ID_1); in mockInterventionAllowDownscaleTrue()
[all …]
/frameworks/base/core/java/android/content/pm/
DVersionedPackage.java31 private final String mPackageName; field in VersionedPackage
47 mPackageName = packageName; in VersionedPackage()
59 mPackageName = packageName; in VersionedPackage()
64 mPackageName = parcel.readString8(); in VersionedPackage()
74 return mPackageName; in getPackageName()
96 return "VersionedPackage[" + mPackageName + "/" + mVersionCode + "]"; in toString()
102 && ((VersionedPackage) o).mPackageName.equals(mPackageName) in equals()
110 return 31 * mPackageName.hashCode() + Long.hashCode(mVersionCode); in hashCode()
120 parcel.writeString8(mPackageName); in writeToParcel()
DModuleInfo.java38 private String mPackageName; field in ModuleInfo
61 mPackageName = orig.mPackageName; in ModuleInfo()
79 mPackageName = packageName; in setPackageName()
85 return mPackageName; in getPackageName()
126 hashCode = 31 * hashCode + Objects.hashCode(mPackageName); in hashCode()
139 && Objects.equals(mPackageName, other.mPackageName) in equals()
147 dest.writeString(mPackageName); in writeToParcel()
154 mPackageName = source.readString(); in ModuleInfo()
/frameworks/base/core/java/android/content/om/
DOverlayIdentifier.java43 private final String mPackageName; field in OverlayIdentifier
58 mPackageName = packageName; in OverlayIdentifier()
68 mPackageName = packageName; in OverlayIdentifier()
74 return mOverlayName == null ? mPackageName : mPackageName + ":" + mOverlayName; in toString()
107 return mPackageName; in getPackageName()
131 && Objects.equals(mPackageName, that.mPackageName) in equals()
142 _hash = 31 * _hash + Objects.hashCode(mPackageName); in hashCode()
154 if (mPackageName != null) flg |= 0x1; in writeToParcel()
157 if (mPackageName != null) dest.writeString(mPackageName); in writeToParcel()
176 this.mPackageName = packageName; in OverlayIdentifier()
/frameworks/base/media/java/android/media/projection/
DMediaProjectionInfo.java27 private final String mPackageName; field in MediaProjectionInfo
31 mPackageName = packageName; in MediaProjectionInfo()
36 mPackageName = in.readString(); in MediaProjectionInfo()
41 return mPackageName; in getPackageName()
52 return Objects.equals(other.mPackageName, mPackageName) in equals()
60 return Objects.hash(mPackageName, mUserHandle); in hashCode()
66 + mPackageName + ", mUserHandle=" in toString()
77 out.writeString(mPackageName); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageFreezer.java32 private final String mPackageName; field in PackageFreezer
48 mPackageName = null; in PackageFreezer()
56 mPackageName = packageName; in PackageFreezer()
60 .getOrDefault(mPackageName, 0 /* defaultValue */) + 1; in PackageFreezer()
61 mPm.mFrozenPackages.put(mPackageName, refCounts); in PackageFreezer()
62 ps = mPm.mSettings.getPackageLPr(mPackageName); in PackageFreezer()
86 .getOrDefault(mPackageName, 0 /* defaultValue */) - 1; in close()
88 mPm.mFrozenPackages.put(mPackageName, refCounts); in close()
90 mPm.mFrozenPackages.remove(mPackageName); in close()
/frameworks/base/core/java/android/service/ambientcontext/
DAmbientContextDetectionServiceStatus.java45 @NonNull private final String mPackageName; field in AmbientContextDetectionServiceStatus
52 this.mPackageName = packageName; in AmbientContextDetectionServiceStatus()
66 return mPackageName; in getPackageName()
72 + "packageName = " + mPackageName + " }"; in toString()
80 dest.writeString(mPackageName); in writeToParcel()
98 this.mPackageName = packageName; in AmbientContextDetectionServiceStatus()
100 NonNull.class, null, mPackageName); in AmbientContextDetectionServiceStatus()
123 private @NonNull String mPackageName; field in AmbientContextDetectionServiceStatus.Builder
128 mPackageName = packageName; in Builder()
151 mPackageName); in build()
DAmbientContextDetectionResult.java47 @NonNull private final String mPackageName; field in AmbientContextDetectionResult
54 this.mPackageName = packageName; in AmbientContextDetectionResult()
55 AnnotationValidations.validate(NonNull.class, null, mPackageName); in AmbientContextDetectionResult()
70 return mPackageName; in getPackageName()
76 + "events = " + mEvents + ", " + "packageName = " + mPackageName + " }"; in toString()
84 dest.writeString(mPackageName); in writeToParcel()
104 this.mPackageName = packageName; in AmbientContextDetectionResult()
106 NonNull.class, null, mPackageName); in AmbientContextDetectionResult()
128 private @NonNull String mPackageName; field in AmbientContextDetectionResult.Builder
133 mPackageName = packageName; in Builder()
[all …]
/frameworks/base/core/java/android/app/prediction/
DAppTarget.java38 private final String mPackageName; field in AppTarget
56 mPackageName = Objects.requireNonNull(packageName); in AppTarget()
72 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
82 mPackageName = packageName; in AppTarget()
92 mPackageName = parcel.readString(); in AppTarget()
95 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
123 return mPackageName; in getPackageName()
162 && mPackageName.equals(other.mPackageName) in equals()
179 dest.writeString(mPackageName); in writeToParcel()
196 private String mPackageName; field in AppTarget.Builder
[all …]
DAppPredictionContext.java40 private final String mPackageName; field in AppPredictionContext
48 mPackageName = packageName; in AppPredictionContext()
55 mPackageName = parcel.readString(); in AppPredictionContext()
79 return mPackageName; in getPackageName()
98 && mPackageName.equals(other.mPackageName); in equals()
110 dest.writeString(mPackageName); in writeToParcel()
133 private final String mPackageName; field in AppPredictionContext.Builder
148 mPackageName = context.getPackageName(); in Builder()
184 return new AppPredictionContext(mUiSurface, mPredictedTargetCount, mPackageName, in build()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/
DLegacyPermissionManagerServiceTest.java58 private String mPackageName; field in LegacyPermissionManagerServiceTest
74 mPackageName = mContext.getPackageName(); in setUp()
86 mPackageName, CHECK_DEVICE_IDENTIFIER_MESSAGE, null, in checkDeviceIdentifierAccess_callingAppUidMismatch_throwsException()
98 mPackageName, CHECK_DEVICE_IDENTIFIER_MESSAGE, null, in checkDeviceIdentifierAccess_callingAppPidMismatch_throwsException()
109 mPackageName, CHECK_DEVICE_IDENTIFIER_MESSAGE, null, APP_PID, in checkDeviceIdentifierAccess_callingAppIdWithoutAccess_returnsDenied()
120 mPackageName, CHECK_DEVICE_IDENTIFIER_MESSAGE, null, SYSTEM_PID, in checkDeviceIdentifierAccess_systemUid_returnsGranted()
135 mPackageName, CHECK_DEVICE_IDENTIFIER_MESSAGE, null, APP_PID, in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted()
147 eq(APP_UID), eq(mPackageName), any(), any())).thenReturn( in checkDeviceIdentifierAccess_hasAppOp_returnsGranted()
151 mPackageName, CHECK_DEVICE_IDENTIFIER_MESSAGE, null, APP_PID, in checkDeviceIdentifierAccess_hasAppOp_returnsGranted()
162 when(mDevicePolicyManager.hasDeviceIdentifierAccess(mPackageName, APP_PID, in checkDeviceIdentifierAccess_hasDpmAccess_returnsGranted()
[all …]
/frameworks/base/core/java/android/app/smartspace/
DSmartspaceConfig.java57 private String mPackageName; field in SmartspaceConfig
76 mPackageName = packageName; in SmartspaceConfig()
83 mPackageName = parcel.readString(); in SmartspaceConfig()
90 return mPackageName; in getPackageName()
120 dest.writeString(mPackageName); in writeToParcel()
131 && Objects.equals(mPackageName, that.mPackageName) in equals()
137 return Objects.hash(mSmartspaceTargetCount, mUiSurface, mPackageName, mExtras); in hashCode()
167 private final String mPackageName; field in SmartspaceConfig.Builder
178 mPackageName = context.getPackageName(); in Builder()
206 return new SmartspaceConfig(mUiSurface, mSmartspaceTargetCount, mPackageName, mExtras); in build()
/frameworks/base/core/java/android/content/pm/verify/domain/
DDomainOwner.java39 private final String mPackageName; field in DomainOwner
75 this.mPackageName = packageName; in DomainOwner()
77 NonNull.class, null, mPackageName); in DomainOwner()
88 return mPackageName; in getPackageName()
108 "packageName = " + mPackageName + ", " + in toString()
126 && java.util.Objects.equals(mPackageName, that.mPackageName) in equals()
137 _hash = 31 * _hash + java.util.Objects.hashCode(mPackageName); in hashCode()
151 dest.writeString(mPackageName); in writeToParcel()
169 this.mPackageName = packageName; in DomainOwner()
171 NonNull.class, null, mPackageName); in DomainOwner()
/frameworks/base/core/java/android/service/games/
DGameStartedEvent.java56 private final String mPackageName; field in GameStartedEvent
60 this.mPackageName = packageName; in GameStartedEvent()
71 dest.writeString(mPackageName); in writeToParcel()
87 return mPackageName; in getPackageName()
96 + mPackageName in toString()
112 && Objects.equals(mPackageName, that.mPackageName); in equals()
117 return Objects.hash(mTaskId, mPackageName); in hashCode()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAbsoluteVolumeBehaviorTest.java56 private String mPackageName; field in AbsoluteVolumeBehaviorTest
71 mPackageName = mContext.getOpPackageName(); in setUp()
93 mMockDispatcher, mPackageName, DEVICE_SPEAKER_OUT, volumes, true); in registerDispatcher_setsVolumeBehaviorToAbsolute()
110 mMockDispatcher, mPackageName, DEVICE_SPEAKER_OUT, volumes, true); in registerDispatcher_setsVolume()
125 mMockDispatcher, mPackageName, DEVICE_SPEAKER_OUT, volumes, true); in unregisterDispatcher_deviceBecomesVariableVolume_listenerNoLongerTriggered()
129 mMockDispatcher, mPackageName, DEVICE_SPEAKER_OUT, volumes, true); in unregisterDispatcher_deviceBecomesVariableVolume_listenerNoLongerTriggered()
135 mAudioService.setStreamVolume(AudioManager.STREAM_MUSIC, 15, 0, mPackageName); in unregisterDispatcher_deviceBecomesVariableVolume_listenerNoLongerTriggered()
148 mMockDispatcher, mPackageName, DEVICE_SPEAKER_OUT, volumes, true); in setDeviceVolumeBehavior_unregistersDispatcher()
152 AudioManager.DEVICE_VOLUME_BEHAVIOR_FULL, mPackageName); in setDeviceVolumeBehavior_unregistersDispatcher()
155 mAudioService.setStreamVolume(AudioManager.STREAM_MUSIC, 15, 0, mPackageName); in setDeviceVolumeBehavior_unregistersDispatcher()
[all …]
/frameworks/base/core/java/android/security/keymaster/
DKeyAttestationPackageInfo.java30 private final String mPackageName; field in KeyAttestationPackageInfo
40 String mPackageName, long mPackageVersionCode, Signature[] mPackageSignatures) { in KeyAttestationPackageInfo() argument
42 this.mPackageName = mPackageName; in KeyAttestationPackageInfo()
50 return mPackageName; in getPackageName()
72 dest.writeString(mPackageName); in writeToParcel()
91 mPackageName = source.readString(); in KeyAttestationPackageInfo()
/frameworks/base/core/java/android/net/vcn/
DVcnConfig.java50 @NonNull private final String mPackageName; field in VcnConfig
62 mPackageName = packageName; in VcnConfig()
77 mPackageName = in.getString(PACKAGE_NAME_KEY); in VcnConfig()
91 Objects.requireNonNull(mPackageName, "packageName was null"); in validate()
103 return mPackageName; in getProvisioningPackageName()
130 result.putString(PACKAGE_NAME_KEY, mPackageName); in toPersistableBundle()
144 return Objects.hash(mPackageName, mGatewayConnectionConfigs, mIsTestModeProfile); in hashCode()
154 return mPackageName.equals(rhs.mPackageName) in equals()
187 @NonNull private final String mPackageName; field in VcnConfig.Builder
197 mPackageName = context.getOpPackageName(); in Builder()
[all …]
/frameworks/base/core/java/android/app/backup/
DRestoreDescription.java35 private final String mPackageName; field in RestoreDescription
59 return "RestoreDescription{" + mPackageName + " : " in toString()
68 mPackageName = packageName; in RestoreDescription()
73 return mPackageName; in getPackageName()
90 out.writeString(mPackageName); in writeToParcel()
98 return (NO_MORE_PACKAGES_SENTINEL.equals(unparceled.mPackageName))
109 mPackageName = in.readString(); in RestoreDescription()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyManager.java50 private final String mPackageName; field in TertiaryKeyManager
62 mPackageName = packageName; in TertiaryKeyManager()
112 Slog.d(TAG, "Generating new tertiary key for " + mPackageName); in init()
116 mTertiaryKeyRotationScheduler.recordKeyRotation(mPackageName); in init()
117 mKeyStore.save(mPackageName, key.get()); in init()
122 mTertiaryKeyRotationScheduler.recordBackup(mPackageName); in init()
128 if (mTertiaryKeyRotationScheduler.isKeyRotationDue(mPackageName)) { in getExistingKeyIfNotRotated()
129 Slog.i(TAG, "Tertiary key rotation was required for " + mPackageName); in getExistingKeyIfNotRotated()
133 return mKeyStore.load(mPackageName); in getExistingKeyIfNotRotated()
/frameworks/base/core/java/android/view/textclassifier/
DTextClassificationContext.java34 private String mPackageName; field in TextClassificationContext
43 mPackageName = Objects.requireNonNull(packageName); in TextClassificationContext()
53 return mPackageName; in getPackageName()
98 mPackageName, mWidgetType, mWidgetVersion, mSystemTcMetadata); in toString()
106 private final String mPackageName; field in TextClassificationContext.Builder
120 mPackageName = Objects.requireNonNull(packageName); in Builder()
141 return new TextClassificationContext(mPackageName, mWidgetType, mWidgetVersion); in build()
152 parcel.writeString(mPackageName); in writeToParcel()
159 mPackageName = in.readString(); in TextClassificationContext()
/frameworks/base/location/java/android/location/util/identity/
DCallerIdentity.java131 private final String mPackageName; field in CallerIdentity
141 this.mPackageName = Objects.requireNonNull(packageName); in CallerIdentity()
163 return mPackageName; in getPackageName()
190 return new WorkSource(mUid, mPackageName); in addToWorkSource()
192 workSource.add(mUid, mPackageName); in addToWorkSource()
199 int length = 10 + mPackageName.length(); in toString()
205 builder.append(mUid).append("/").append(mPackageName); in toString()
208 if (mAttributionTag.startsWith(mPackageName)) { in toString()
209 builder.append(mAttributionTag.substring(mPackageName.length())); in toString()
232 && mPackageName.equals(that.mPackageName) in equals()
[all …]
/frameworks/base/core/java/android/security/attestationverification/
DAttestationProfile.java67 private final String mPackageName; field in AttestationProfile
84 mPackageName = packageName; in AttestationProfile()
134 return "AttestationProfile(package=" + mPackageName + ", name=" + mProfileName + ")"; in toString()
185 return mPackageName; in getPackageName()
213 && java.util.Objects.equals(mPackageName, that.mPackageName) in equals()
225 _hash = 31 * _hash + java.util.Objects.hashCode(mPackageName); in hashCode()
237 if (mPackageName != null) flg |= 0x2; in writeToParcel()
241 if (mPackageName != null) dest.writeString(mPackageName); in writeToParcel()
264 this.mPackageName = packageName; in AttestationProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java282 packageToUsersMap.put(mBarSecondary2User1.mPackageName, in testSyncData()
285 packageToCodePaths.put(mBarBaseUser0.mPackageName, in testSyncData()
291 assertNull(mPackageDexUsage.getPackageUseInfo(mFooBaseUser0.mPackageName)); in testSyncData()
299 new String[] {mFooBaseUser0.mPackageName})); in testSyncDataKeepPackages()
303 new String[] {"another.package", mFooBaseUser0.mPackageName})); in testSyncDataKeepPackages()
309 packageToUsersMap.put(mBarBaseUser0.mPackageName, in testSyncDataKeepPackages()
312 packageToCodePaths.put(mBarBaseUser0.mPackageName, in testSyncDataKeepPackages()
317 keepData.add(mFooBaseUser0.mPackageName); in testSyncDataKeepPackages()
324 new String[] {mFooBaseUser0.mPackageName})); in testSyncDataKeepPackages()
326 mBarBaseUser0.updateUsedBy(mFooBaseUser0.mPackageName)); in testSyncDataKeepPackages()
[all …]

12345678910>>...12