Home
last modified time | relevance | path

Searched refs:mPackage (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/libs/services/src/content/
DComponentName.cpp23 :mPackage(), in ComponentName()
28 :mPackage(that.mPackage), in ComponentName()
33 :mPackage(pkg), in ComponentName()
41 if (mPackage < that.mPackage) { in operator <()
43 } else if (mPackage > that.mPackage) { in operator <()
58 err = in->readUtf8FromUtf16(&mPackage); in readFromParcel()
74 err = out->writeUtf8AsUtf16(mPackage); in writeToParcel()
/frameworks/base/core/java/android/content/
DComponentName.java41 private final String mPackage; field in ComponentName
105 mPackage = pkg; in ComponentName()
119 mPackage = pkg.getPackageName(); in ComponentName()
132 mPackage = pkg.getPackageName(); in ComponentName()
137 return new ComponentName(mPackage, mClass); in clone()
144 return mPackage; in getPackageName()
159 if (mClass.startsWith(mPackage)) { in getShortClassName()
160 int PN = mPackage.length(); in getShortClassName()
219 return mPackage + "/" + mClass; in flattenToString()
234 StringBuilder sb = new StringBuilder(mPackage.length() + mClass.length()); in flattenToShortString()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java84 private String mPackage; field in RemoteViewsTest
90 mPackage = mContext.getPackageName(); in setup()
96 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_doesNotCopyBitmap()
109 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_originalCanStillBeApplied()
118 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_clones()
130 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails()
131 RemoteViews child = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails()
141 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_repeatedly()
151 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_chained()
160 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in parcelSize_nestedViews()
[all …]
DAppWidgetHostViewTest.java58 private String mPackage; field in AppWidgetHostViewTest
67 mPackage = mContext.getPackageName(); in setup()
75 mViews = new RemoteViews(mPackage, R.layout.remote_views_test); in setup()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryFilter.java27 private String mPackage; field in NotificationHistoryFilter
34 return mPackage; in getPackage()
80 private String mPackage = null; field in NotificationHistoryFilter.Builder
93 mPackage = aPackage; in setPackage()
119 filter.mPackage = mPackage; in build()
/frameworks/base/core/java/android/service/notification/
DAdjustment.java45 private final String mPackage; field in Adjustment
163 mPackage = pkg; in Adjustment()
183 mPackage = pkg; in Adjustment()
196 mPackage = in.readString(); in Adjustment()
198 mPackage = null; in Adjustment()
228 return mPackage; in getPackage()
260 if (mPackage != null) { in writeToParcel()
262 dest.writeString(mPackage); in writeToParcel()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DPerformClearTask.java35 private final PackageInfo mPackage; field in PerformClearTask
44 mPackage = packageInfo; in PerformClearTask()
57 File stateFile = new File(stateDir, mPackage.packageName); in run()
63 transport.clearBackupData(mPackage); in run()
65 Slog.e(TAG, "Transport threw clearing data for " + mPackage + ": " + e.getMessage()); in run()
/frameworks/base/core/java/android/content/pm/
DShortcutQueryWrapper.java40 mPackage = query.mPackage; in ShortcutQueryWrapper()
53 return mPackage; in getPackage()
111 if (mPackage != null) flg |= 0x2; in writeToParcel()
117 if (mPackage != null) dest.writeString(mPackage); in writeToParcel()
153 this.mPackage = pkg; in ShortcutQueryWrapper()
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
DConfirmDialog.java49 private String mPackage; field in ConfirmDialog
102 mPackage = getCallingPackage(); in onCreate()
105 if (mVm.prepareVpn(mPackage, null, UserHandle.myUserId())) { in onCreate()
116 if (alwaysOnVpnPackage != null && !alwaysOnVpnPackage.equals(mPackage)) { in onCreate()
123 getVpnLabel().toString(), mPackage)), in onCreate()
140 return VpnConfig.getVpnLabel(this, mPackage); in getVpnLabel()
169 if (mVm.prepareVpn(null, mPackage, UserHandle.myUserId())) { in onClick()
172 mVm.setVpnPackageAuthorization(mPackage, UserHandle.myUserId(), mVpnType); in onClick()
/frameworks/base/services/core/java/com/android/server/location/contexthub/
DContextHubServiceTransaction.java41 private final String mPackage; field in ContextHubServiceTransaction
52 mPackage = packageName; in ContextHubServiceTransaction()
60 mPackage = packageName; in ContextHubServiceTransaction()
155 out += "package = " + mPackage + ")"; in toString()
DContextHubClientBroker.java185 private final String mPackage; field in ContextHubClientBroker
336 mPackage = packageName; in ContextHubClientBroker()
369 mAppOpsManager.startWatchingMode(AppOpsManager.OP_NONE, mPackage, this); in startMonitoringOpChanges()
448 if (packageName.equals(mPackage)) { in onOpChanged()
456 return mPackage; in getPackageName()
508 Log.e(TAG, "Dropping message from " + Long.toHexString(nanoAppId) + ". " + mPackage in sendMessageToClient()
517 Log.e(TAG, "Dropping message from " + Long.toHexString(nanoAppId) + ". " + mPackage in sendMessageToClient()
637 if (mAppOpsManager.noteOp(opCode, mUid, mPackage, mAttributionTag, noteMessage) in notePermissions()
642 Log.e(TAG, "SecurityException: noteOp for pkg " + mPackage + " opcode " in notePermissions()
683 mAttachedContextHubInfo.getId(), mQueryPermsCallback, mPackage); in checkNanoappPermsAsync()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java73 private final PackageInfo mPackage; field in FullBackupEngine.FullBackupRunner
90 mPackage = packageInfo; in FullBackupRunner()
106 String packageName = mPackage.packageName; in run()
109 shouldWriteApk(mPackage.applicationInfo, mIncludeApks, isSharedStorage); in run()
118 mPackage, manifestFile, mFilesDir, writeApk); in run()
127 mPackage, metadataFile, mFilesDir, widgetData); in run()
134 appMetadataBackupWriter.backupApk(mPackage); in run()
135 appMetadataBackupWriter.backupObb(mUserId, mPackage); in run()
158 Slog.e(TAG, "Error running full backup for " + mPackage.packageName, e); in run()
162 "Remote agent vanished during full backup of " + mPackage.packageName, in run()
/frameworks/base/test-runner/src/android/test/
DSingleLaunchActivityTestCase.java38 String mPackage; field in SingleLaunchActivityTestCase
52 mPackage = pkg; in SingleLaunchActivityTestCase()
73 sActivity = launchActivity(mPackage, mActivityClass, null); in setUp()
/frameworks/base/core/java/android/app/
DNotificationHistory.java45 private String mPackage; field in NotificationHistory.HistoricalNotification
59 return mPackage; in getPackage()
95 return mPackage + "|" + mUid + "|" + mPostedTimeMs; in getKey()
146 private String mPackage; field in NotificationHistory.HistoricalNotification.Builder
160 mPackage = aPackage; in setPackage()
211 n.mPackage = mPackage; in build()
464 if (notification.mPackage != null) { in writeNotificationToParcel()
465 packageIndex = findStringIndex(notification.mPackage); in writeNotificationToParcel()
515 notificationOut.mPackage = mStringPool[packageIndex]; in readNotificationFromParcel()
517 notificationOut.mPackage = null; in readNotificationFromParcel()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbBackupEngine.java193 private final PackageInfo mPackage; field in KeyValueAdbBackupEngine.KeyValueAdbBackupDataCopier
200 mPackage = pack; in KeyValueAdbBackupDataCopier()
213 Slog.d(TAG, "Writing manifest for " + mPackage.packageName); in run()
217 mPackage, in run()
226 Slog.d(TAG, "Writing key-value package payload" + mPackage.packageName); in run()
228 FullBackup.backupToTar(mPackage.packageName, FullBackup.KEY_VALUE_DATA_TOKEN, null, in run()
249 Slog.e(TAG, "Error running full backup for " + mPackage.packageName + ". " + e); in run()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowPerformUnifiedRestoreTask.java53 @Nullable private PackageInfo mPackage; field in ShadowPerformUnifiedRestoreTask
73 mPackage = targetPackage; in __constructor__()
87 return mPackage; in getPackage()
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java164 event.mPackage = getCachedStringRef(packageName); in buildEvent()
181 event.mPackage = getCachedStringRef( in buildEvent()
185 event.mPackage = getCachedStringRef(stringPool.get( in buildEvent()
334 event.mPackage = getCachedStringRef(event.mPackage); in addEvent()
520 event.mPackage = packagesTokenData.getPackageString(packageToken); in deobfuscateEvents()
521 if (event.mPackage == null) { in deobfuscateEvents()
657 event.mPackage, event.mTimeStamp); in obfuscateEventsData()
666 event.mPackage, event.mClass); in obfuscateEventsData()
670 event.mPackage, event.mTaskRootPackage); in obfuscateEventsData()
674 event.mPackage, event.mTaskRootClass); in obfuscateEventsData()
[all …]
DUserUsageStatsService.java184 shutdownEvent.mPackage = Event.DEVICE_EVENT_PACKAGE_NAME; in init()
187 startupEvent.mPackage = Event.DEVICE_EVENT_PACKAGE_NAME; in init()
304 Slog.d(TAG, mLogPrefix + "Got usage event for " + event.mPackage in reportEvent()
346 if (event.mPackage != null && !event.mPackage.equals(mLastBackgroundedPackage)) { in reportEvent()
350 if (event.mPackage != null) { in reportEvent()
351 mLastBackgroundedPackage = event.mPackage; in reportEvent()
361 stats.updateChooserCounts(event.mPackage, event.mContentType, event.mAction); in reportEvent()
365 stats.updateChooserCounts(event.mPackage, annotation, event.mAction); in reportEvent()
382 stats.update(event.mPackage, event.getClassName(), in reportEvent()
385 stats.incrementAppLaunchCount(event.mPackage); in reportEvent()
[all …]
DStorageStatsService.java123 private final PackageManager mPackage; field in StorageStatsService
143 mPackage = Preconditions.checkNotNull(context.getPackageManager()); in StorageStatsService()
337 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryStatsForPackage()
354 if (defeatNullable(mPackage.getPackagesForUid(appInfo.uid)).length == 1) { in queryStatsForPackage()
410 final String[] packageNames = defeatNullable(mPackage.getPackagesForUid(uid)); in queryStatsForUid()
416 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageNames[i], in queryStatsForUid()
521 for (ApplicationInfo app : mPackage.getInstalledApplicationsAsUser( in getAppIds()
769 appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryCratesForPackage()
802 final String[] packageNames = defeatNullable(mPackage.getPackagesForUid(uid)); in queryCratesForUid()
811 final ApplicationInfo appInfo = mPackage.getApplicationInfoAsUser(packageName, in queryCratesForUid()
/frameworks/base/libs/services/include/android/content/
DComponentName.h39 const string& getPackageName() const { return mPackage; } in getPackageName()
46 string mPackage;
/frameworks/base/core/java/com/android/internal/app/procstats/
DServiceState.java44 private final String mPackage; field in ServiceState
76 mPackage = pkg; in ServiceState()
84 return mPackage; in getPackage()
137 + mPackage + " service=" + mName + " proc=" + mProc); in applyNewOwner()
143 + mPackage + " service=" + mName + " proc=" + mProc); in applyNewOwner()
149 + mPackage + " service=" + mName + " proc=" + mProc); in applyNewOwner()
155 + mPackage + " service=" + mName + " proc=" + mProc); in applyNewOwner()
172 + " cleared while started: pkg=" + mPackage + " service=" in clearCurrentOwner()
180 + " cleared while bound: pkg=" + mPackage + " service=" in clearCurrentOwner()
188 + " cleared while exec: pkg=" + mPackage + " service=" in clearCurrentOwner()
[all …]
DAssociationState.java503 @Nullable String mPackage; field in AssociationState.SourceKey
508 mPackage = pkg; in SourceKey()
514 mPackage = stats.readCommonString(in, parcelVersion); in SourceKey()
520 stats.writeCommonString(out, mPackage); in writeToParcel()
529 && Objects.equals(s.mPackage, mPackage); in equals()
535 ^ (mPackage == null ? 0 : (mPackage.hashCode() * 33)); in hashCode()
546 sb.append(mPackage); in toString()
609 sTmpSourceKey.mPackage = packageName; in startSource()
790 if (procName.equals(key.mProcess) || procName.equals(key.mPackage)) { in hasProcessOrPackage()
913 if (key.mPackage != null) { in dumpSources()
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageEvents.java377 public String mPackage; field in UsageEvents.Event
531 return mPackage; in getPackageName()
664 ret.mPackage = INSTANT_APP_PACKAGE_NAME; in getObfuscatedIfInstantApp()
690 mPackage = orig.mPackage; in copyFrom()
855 if (event.mPackage != null) { in writeEventToParcel()
856 packageIndex = findStringIndex(event.mPackage); in writeEventToParcel()
921 eventOut.mPackage = mStringPool[packageIndex]; in readEventFromParcel()
923 eventOut.mPackage = null; in readEventFromParcel()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/
DUserUsageStatsServiceTest.java102 event.mPackage = TEST_PACKAGE_NAME; in testReportEvent_eventAppearsInQueries()
129 event.mPackage = TEST_PACKAGE_NAME; in testReportEvent_packageUsedEventNotTracked()
154 event1.mPackage = TEST_PACKAGE_NAME; in testQueryEarliestEventsForPackage()
157 event2.mPackage = TEST_PACKAGE_NAME; in testQueryEarliestEventsForPackage()
188 event1.mPackage = TEST_PACKAGE_NAME; in testQueryEarliestEventsForPackage_Caching()
193 event2.mPackage = TEST_PACKAGE_NAME; in testQueryEarliestEventsForPackage_Caching()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioServiceEvents.java35 final String mPackage; field in AudioServiceEvents.PhoneStateEvent
45 mPackage = callingPackage; in PhoneStateEvent()
56 mPackage = callingPackage; in PhoneStateEvent()
70 .append(") from package=").append(mPackage) in eventToString()
77 .append(" for package=").append(mPackage) in eventToString()
96 .set(MediaMetrics.Property.CALLING_PACKAGE, mPackage) in logMetricEvent()
102 .set(MediaMetrics.Property.CALLING_PACKAGE, mPackage) in logMetricEvent()

123