Home
last modified time | relevance | path

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

1234567

/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/core/java/android/content/pm/
DModuleInfo.java38 private String mPackageName; field in ModuleInfo
55 mPackageName = orig.mPackageName; in ModuleInfo()
72 mPackageName = packageName; in setPackageName()
78 return mPackageName; in getPackageName()
108 hashCode = 31 * hashCode + Objects.hashCode(mPackageName); in hashCode()
120 && Objects.equals(mPackageName, other.mPackageName) in equals()
127 dest.writeString(mPackageName); in writeToParcel()
133 mPackageName = source.readString(); in ModuleInfo()
DVersionedPackage.java30 private final String mPackageName; field in VersionedPackage
46 mPackageName = packageName; in VersionedPackage()
58 mPackageName = packageName; in VersionedPackage()
63 mPackageName = parcel.readString(); in VersionedPackage()
73 return mPackageName; in getPackageName()
95 return "VersionedPackage[" + mPackageName + "/" + mVersionCode + "]"; in toString()
105 parcel.writeString(mPackageName); in writeToParcel()
DInstantAppInfo.java39 private final String mPackageName; field in InstantAppInfo
48 mPackageName = null; in InstantAppInfo()
57 mPackageName = packageName; in InstantAppInfo()
64 mPackageName = parcel.readString(); in InstantAppInfo()
86 return mPackageName; in getPackageName()
108 return packageManager.getInstantAppIcon(mPackageName); in loadIcon()
132 parcel.writeString(mPackageName); in writeToParcel()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaInserterTest.java48 private String mPackageName; field in MediaInserterTest
91 mPackageName = getInstrumentation().getContext().getPackageName(); in setUp()
145 verify(mMockProvider, never()).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsLessThanBufferSize()
150 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsEqualToBufferSize()
157 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsEqualToBufferSize()
162 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsMoreThanBufferSize()
169 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsMoreThanBufferSize()
179 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testFlushAllWithSomeContents()
187 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testFlushAllWithSomeContents()
192 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsAfterFlushAll()
[all …]
/frameworks/base/core/java/android/app/prediction/
DAppTarget.java40 private final String mPackageName; field in AppTarget
58 mPackageName = Preconditions.checkNotNull(packageName); in AppTarget()
74 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
84 mPackageName = packageName; in AppTarget()
94 mPackageName = parcel.readString(); in AppTarget()
97 mPackageName = mShortcutInfo.getPackage(); in AppTarget()
125 return mPackageName; in getPackageName()
164 && mPackageName.equals(other.mPackageName) in equals()
181 dest.writeString(mPackageName); in writeToParcel()
199 private String mPackageName; field in AppTarget.Builder
[all …]
DAppPredictionContext.java42 private final String mPackageName; field in AppPredictionContext
50 mPackageName = packageName; in AppPredictionContext()
57 mPackageName = parcel.readString(); in AppPredictionContext()
81 return mPackageName; in getPackageName()
100 && mPackageName.equals(other.mPackageName); in equals()
112 dest.writeString(mPackageName); in writeToParcel()
136 private final String mPackageName; field in AppPredictionContext.Builder
152 mPackageName = context.getPackageName(); in Builder()
188 return new AppPredictionContext(mUiSurface, mPredictedTargetCount, mPackageName, in build()
/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/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java58 protected String mPackageName; field in WapPushTest
459 mPackageName = this.getClass().getPackage().getName(); in WapPushTest()
501 mPackageName, mClassName, in utAddPackage() local
511 mPackageName, mClassName, in utAddPackage() local
537 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1() local
540 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1() local
543 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1() local
546 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1() local
566 mPackageName, mClassName, in testAddPackage0()
582 Integer.toString(mContentTypeValue), mPackageName, mClassName, 0, in testAddPackage2() local
[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/core/java/android/view/textclassifier/
DTextClassificationContext.java37 private final String mPackageName; field in TextClassificationContext
47 mPackageName = Preconditions.checkNotNull(packageName); in TextClassificationContext()
57 return mPackageName; in getPackageName()
101 mPackageName, mWidgetType, mWidgetVersion, mUserId); in toString()
109 private final String mPackageName; field in TextClassificationContext.Builder
123 mPackageName = Preconditions.checkNotNull(packageName); in Builder()
144 return new TextClassificationContext(mPackageName, mWidgetType, mWidgetVersion); in build()
155 parcel.writeString(mPackageName); in writeToParcel()
162 mPackageName = in.readString(); in TextClassificationContext()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageItem.java40 private final String mPackageName; field in ShortcutPackageItem
51 mPackageName = Preconditions.checkStringNotEmpty(packageName); in ShortcutPackageItem()
82 return mPackageName; in getPackageName()
103 if (!s.isPackageInstalled(mPackageName, mPackageUserId)) { in attemptToRestoreIfNeededAndSave()
106 mPackageName, mPackageUserId)); in attemptToRestoreIfNeededAndSave()
114 s.wtf("Attempted to restore package " + mPackageName + "/u" + mPackageUserId in attemptToRestoreIfNeededAndSave()
118 final PackageInfo pi = s.getPackageInfoWithSignatures(mPackageName, mPackageUserId); in attemptToRestoreIfNeededAndSave()
125 mPackageName, mPackageUserId, currentVersionCode, in attemptToRestoreIfNeededAndSave()
147 result.put(KEY_NAME, mPackageName); in dumpCheckin()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexoptOptionsTests.java38 private final static String mPackageName = "test.android.com"; field in DexoptOptionsTests
45 DexoptOptions opt = new DexoptOptions(mPackageName, mCompilerFilter, /*flags*/ 0); in testCreateDexoptOptionsEmpty()
46 assertEquals(mPackageName, opt.getPackageName()); in testCreateDexoptOptionsEmpty()
72 DexoptOptions opt = new DexoptOptions(mPackageName, mCompilerFilter, flags); in testCreateDexoptOptionsFull()
73 assertEquals(mPackageName, opt.getPackageName()); in testCreateDexoptOptionsFull()
103 DexoptOptions opt = new DexoptOptions(mPackageName, reason, flags); in testCreateDexoptOptionsReason()
104 assertEquals(mPackageName, opt.getPackageName()); in testCreateDexoptOptionsReason()
121 DexoptOptions opt = new DexoptOptions(mPackageName, -1, mCompilerFilter, mSplitName, flags); in testCreateDexoptOptionsSplit()
122 assertEquals(mPackageName, opt.getPackageName()); in testCreateDexoptOptionsSplit()
139 new DexoptOptions(mPackageName, mCompilerFilter, invalidFlags); in testCreateDexoptInvalid()
DPackageDexUsageTests.java274 packageToUsersMap.put(mBarSecondary2User1.mPackageName, in testSyncData()
277 packageToCodePaths.put(mBarBaseUser0.mPackageName, in testSyncData()
283 assertNull(mPackageDexUsage.getPackageUseInfo(mFooBaseUser0.mPackageName)); in testSyncData()
293 assertTrue(mPackageDexUsage.removePackage(mBarSecondary1User0.mPackageName)); in testRemovePackage()
295 assertNull(mPackageDexUsage.getPackageUseInfo(mBarSecondary1User0.mPackageName)); in testRemovePackage()
304 assertTrue(mPackageDexUsage.removePackage(mBarSecondary1User0.mPackageName)); in testRemoveNonexistentPackage()
307 assertFalse(mPackageDexUsage.removePackage(mBarSecondary1User0.mPackageName)); in testRemoveNonexistentPackage()
317 assertTrue(mPackageDexUsage.removeUserPackage(mBarSecondary1User0.mPackageName, in testRemoveUserPackage()
330 assertTrue(mPackageDexUsage.removeDexFile(mBarSecondary1User0.mPackageName, in testRemoveDexFile()
340 assertTrue(mPackageDexUsage.clearUsedByOtherApps(mFooSplit2UsedByOtherApps0.mPackageName)); in testClearUsedByOtherApps()
[all …]
/frameworks/base/telephony/java/android/telephony/
DUiccAccessRule.java84 if (accessRule.mPackageName != null) { in encodeRules()
86 output.writeUTF(accessRule.mPackageName); in encodeRules()
131 private final @Nullable String mPackageName; field in UiccAccessRule
137 this.mPackageName = packageName; in UiccAccessRule()
143 mPackageName = in.readString(); in UiccAccessRule()
150 dest.writeString(mPackageName); in writeToParcel()
161 return mPackageName; in getPackageName()
219 (TextUtils.isEmpty(this.mPackageName) || this.mPackageName.equals(packageName)); in matches()
233 && Objects.equals(mPackageName, that.mPackageName) in equals()
241 result = 31 * result + Objects.hashCode(mPackageName); in hashCode()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/usage/
DUsageStatsTest.java59 left.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
61 right.mPackageName = "com.test"; in testEarlierBeginTimeTakesPriorityOnAdd()
71 left.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
73 right.mPackageName = "com.test"; in testLaterEndTimeTakesPriorityOnAdd()
83 left.mPackageName = "com.test"; in testLastUsedTimeIsOverriddenByLaterStats()
86 right.mPackageName = "com.test"; in testLastUsedTimeIsOverriddenByLaterStats()
97 left.mPackageName = "com.test"; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
100 right.mPackageName = "com.test"; in testLastUsedTimeIsNotOverriddenByLaterStatsIfUseIsEarlier()
111 left.mPackageName = "com.test"; in testForegroundTimeIsSummed()
114 right.mPackageName = "com.test"; in testForegroundTimeIsSummed()
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/
DExternalResources.java71 private final String mPackageName; field in ExternalResources.Resources
86 return mPackageName; in getResourcePackageName()
118 ResName.qualifyResName(name, mPackageName, defaultType), in putValue()
124 ResName.qualifyResName(name, mPackageName, defaultType), in putValue()
135 ResName.qualifyResName(name, mPackageName, "integer"), in putInteger()
151 ResName.qualifyResName(name, mPackageName, "color"), in putColor()
167 ResName.qualifyResName(name, mPackageName, "drawable"), in putDrawable()
173 ResName.qualifyResName(name, mPackageName, "bool"), in putBoolean()
184 ResName.qualifyResName(name, mPackageName, "dimen"), in putDimension()
202 ResName.qualifyResName(name, mPackageName, "string"), in putText()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DHarmfulAppWarningActivity.java43 private String mPackageName; field in HarmfulAppWarningActivity
52 mPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in onCreate()
56 if (mPackageName == null || mTarget == null || mHarmfulAppWarning == null) { in onCreate()
63 applicationInfo = getPackageManager().getApplicationInfo(mPackageName, 0 /*flags*/); in onCreate()
99 getPackageManager().deletePackage(mPackageName, null /*observer*/, 0 /*flags*/); in onClick()
100 EventLogTags.writeHarmfulAppWarningUninstall(mPackageName); in onClick()
104 getPackageManager().setHarmfulAppWarning(mPackageName, null /*warning*/); in onClick()
113 EventLogTags.writeHarmfulAppWarningLaunchAnyway(mPackageName); in onClick()
/frameworks/base/media/apex/java/android/media/
DSession2Token.java88 private final String mPackageName; field in Session2Token
116 mPackageName = serviceComponent.getPackageName(); in Session2Token()
128 mPackageName = packageName; in Session2Token()
138 mPackageName = in.readString(); in Session2Token()
158 dest.writeString(mPackageName); in writeToParcel()
172 return Objects.hash(mType, mUid, mPackageName, mServiceName, mSessionLink); in hashCode()
182 && TextUtils.equals(mPackageName, other.mPackageName) in equals()
190 return "Session2Token {pkg=" + mPackageName + " type=" + mType in toString()
206 return mPackageName; in getPackageName()
/frameworks/base/location/java/android/location/
DGeocoderParams.java38 private String mPackageName; field in GeocoderParams
51 mPackageName = context.getPackageName(); in GeocoderParams()
67 return mPackageName; in getClientPackage()
78 gp.mPackageName = in.readString();
95 parcel.writeString(mPackageName); in writeToParcel()
/frameworks/base/media/java/android/media/
DAudioFocusInfo.java39 private final @NonNull String mPackageName; field in AudioFocusInfo
65 mPackageName = packageName == null ? "" : packageName; in AudioFocusInfo()
100 return mPackageName; in getPackageName()
145 dest.writeString(mPackageName); in writeToParcel()
155 return Objects.hash(mAttributes, mClientUid, mClientId, mPackageName, mGainRequest, mFlags); in hashCode()
176 if (!mPackageName.equals(other.mPackageName)) { in equals()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaProjectionPermissionActivity.java55 private String mPackageName; field in MediaProjectionPermissionActivity
65 mPackageName = getCallingPackage(); in onCreate()
69 if (mPackageName == null) { in onCreate()
77 aInfo = packageManager.getApplicationInfo(mPackageName, 0); in onCreate()
86 if (mService.hasProjectionPermission(mUid, mPackageName)) { in onCreate()
87 setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName)); in onCreate()
101 if (Utils.isHeadlessRemoteDisplayProvider(packageManager, mPackageName)) { in onCreate()
125 label = mPackageName; in onCreate()
179 setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName)); in onClick()
/frameworks/base/core/java/android/service/watchdog/
DExplicitHealthCheckService.java188 private final String mPackageName; field in ExplicitHealthCheckService.PackageConfig
199 mPackageName = Preconditions.checkNotNull(packageName); in PackageConfig()
209 mPackageName = parcel.readString(); in PackageConfig()
219 return mPackageName; in getPackageName()
235 return "PackageConfig{" + mPackageName + ", " + mHealthCheckTimeoutMillis + "}"; in toString()
250 && Objects.equals(otherInfo.getPackageName(), mPackageName); in equals()
255 return Objects.hash(mPackageName, mHealthCheckTimeoutMillis); in hashCode()
265 parcel.writeString(mPackageName); in writeToParcel()
/frameworks/base/nfc-extras/java/com/android/nfc_extras/
DNfcAdapterExtras.java73 final String mPackageName; field in NfcAdapterExtras
115 mPackageName = adapter.getContext().getPackageName(); in NfcAdapterExtras()
180 int route = sService.getCardEmulationRoute(mPackageName); in getCardEmulationRoute()
202 sService.setCardEmulationRoute(mPackageName, route.route); in setCardEmulationRoute()
232 sService.authenticate(mPackageName, token); in authenticate()
248 return sService.getDriverName(mPackageName); in getDriverName()
/frameworks/base/core/java/android/app/usage/
DAppStandbyInfo.java29 public String mPackageName; field in AppStandbyInfo
33 mPackageName = in.readString(); in AppStandbyInfo()
38 mPackageName = packageName; in AppStandbyInfo()
49 dest.writeString(mPackageName); in writeToParcel()

1234567