Home
last modified time | relevance | path

Searched refs:mPackage (Results 1 – 25 of 56) 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.java42 private final String mPackage; field in ComponentName
106 mPackage = pkg; in ComponentName()
120 mPackage = pkg.getPackageName(); in ComponentName()
133 mPackage = pkg.getPackageName(); in ComponentName()
138 return new ComponentName(mPackage, mClass); in clone()
145 return mPackage; in getPackageName()
160 if (mClass.startsWith(mPackage)) { in getShortClassName()
161 int PN = mPackage.length(); in getShortClassName()
220 return mPackage + "/" + mClass; in flattenToString()
235 StringBuilder sb = new StringBuilder(mPackage.length() + mClass.length()); in flattenToShortString()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java88 private String mPackage; field in RemoteViewsTest
94 mPackage = mContext.getPackageName(); in setup()
100 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_originalCanStillBeApplied()
109 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_clones()
121 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails()
122 RemoteViews child = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails()
133 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_repeatedly()
143 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_chained()
152 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in parcelSize_nestedViews()
154 RemoteViews child = new RemoteViews(mPackage, 33); 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/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java66 private String mPackage; field in IndexableProcessor
166 final JavaFile searchIndexableResourcesBase = JavaFile.builder(mPackage, baseClass).build(); in process()
168 final JavaFile searchIndexableResourcesMobile = JavaFile.builder(mPackage, in process()
171 .superclass(ClassName.get(mPackage, baseClass.name)) in process()
176 final JavaFile searchIndexableResourcesTv = JavaFile.builder(mPackage, in process()
179 .superclass(ClassName.get(mPackage, baseClass.name)) in process()
184 final JavaFile searchIndexableResourcesWear = JavaFile.builder(mPackage, in process()
187 .superclass(ClassName.get(mPackage, baseClass.name)) in process()
192 final JavaFile searchIndexableResourcesAuto = JavaFile.builder(mPackage, in process()
195 .superclass(ClassName.get(mPackage, baseClass.name)) in process()
[all …]
/frameworks/base/core/java/android/service/notification/
DAdjustment.java46 private final String mPackage; field in Adjustment
186 mPackage = pkg; in Adjustment()
206 mPackage = pkg; in Adjustment()
219 mPackage = in.readString(); in Adjustment()
221 mPackage = null; in Adjustment()
251 return mPackage; in getPackage()
283 if (mPackage != null) { in writeToParcel()
285 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.java51 private String mPackage; field in ConfirmDialog
105 mPackage = getCallingPackage(); in onCreate()
108 if (mVm.prepareVpn(mPackage, null, UserHandle.myUserId())) { in onCreate()
119 if (alwaysOnVpnPackage != null && !alwaysOnVpnPackage.equals(mPackage)) { in onCreate()
126 getVpnLabel().toString(), mPackage)), in onCreate()
148 return VpnConfig.getVpnLabel(this, mPackage); in getVpnLabel()
177 if (mVm.prepareVpn(null, mPackage, UserHandle.myUserId())) { in onClick()
180 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
57 mPackage = packageName; in ContextHubServiceTransaction()
66 mPackage = packageName; in ContextHubServiceTransaction()
75 mPackage = packageName; in ContextHubServiceTransaction()
185 out.append(mPackage); in toString()
DContextHubClientBroker.java210 private final String mPackage; field in ContextHubClientBroker
368 mPackage = packageName; in ContextHubClientBroker()
378 mWakeLock.setWorkSource(new WorkSource(mUid, mPackage)); in ContextHubClientBroker()
434 mAppOpsManager.startWatchingMode(AppOpsManager.OP_NONE, mPackage, this); in startMonitoringOpChanges()
572 if (packageName.equals(mPackage)) { in onOpChanged()
580 return mPackage; in getPackageName()
650 Log.e(TAG, "Dropping message from " + Long.toHexString(nanoAppId) + ". " + mPackage in sendMessageToClient()
659 Log.e(TAG, "Dropping message from " + Long.toHexString(nanoAppId) + ". " + mPackage in sendMessageToClient()
786 if (mAppOpsManager.noteOp(opCode, mUid, mPackage, mAttributionTag, noteMessage) in notePermissions()
794 + mPackage in notePermissions()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java75 private final PackageInfo mPackage; field in FullBackupEngine.FullBackupRunner
92 mPackage = packageInfo; in FullBackupRunner()
108 String packageName = mPackage.packageName; in run()
111 shouldWriteApk(mPackage.applicationInfo, mIncludeApks, isSharedStorage); in run()
120 mPackage, manifestFile, mFilesDir, writeApk); in run()
129 mPackage, metadataFile, mFilesDir, widgetData); in run()
136 appMetadataBackupWriter.backupApk(mPackage); in run()
137 appMetadataBackupWriter.backupObb(mUserId, mPackage); in run()
160 Slog.e(TAG, "Error running full backup for " + mPackage.packageName, e); in run()
164 "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/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.java167 event.mPackage = getCachedStringRef(packageName); in buildEvent()
184 event.mPackage = getCachedStringRef( in buildEvent()
188 event.mPackage = getCachedStringRef(stringPool.get( in buildEvent()
337 event.mPackage = getCachedStringRef(event.mPackage); in addEvent()
523 event.mPackage = packagesTokenData.getPackageString(packageToken); in deobfuscateEvents()
524 if (event.mPackage == null) { in deobfuscateEvents()
677 event.mPackage, event.mTimeStamp); in obfuscateEventsData()
686 event.mPackage, event.mClass); in obfuscateEventsData()
690 event.mPackage, event.mTaskRootPackage); in obfuscateEventsData()
694 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 …]
/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/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.java504 @Nullable String mPackage; field in AssociationState.SourceKey
509 mPackage = pkg; in SourceKey()
515 mPackage = stats.readCommonString(in, parcelVersion); in SourceKey()
521 stats.writeCommonString(out, mPackage); in writeToParcel()
530 && Objects.equals(s.mPackage, mPackage); in equals()
536 ^ (mPackage == null ? 0 : (mPackage.hashCode() * 33)); in hashCode()
547 sb.append(mPackage); in toString()
610 sTmpSourceKey.mPackage = packageName; in startSource()
791 if (procName.equals(key.mProcess) || procName.equals(key.mPackage)) { in hasProcessOrPackage()
914 if (key.mPackage != null) { in dumpSources()
[all …]
/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/core/java/android/app/usage/
DUsageEvents.java424 public String mPackage; field in UsageEvents.Event
594 return mPackage; in getPackageName()
742 ret.mPackage = INSTANT_APP_PACKAGE_NAME; in getObfuscatedIfInstantApp()
768 mPackage = orig.mPackage; in copyFrom()
971 if (event.mPackage != null) { in writeEventToParcel()
972 packageIndex = findStringIndex(event.mPackage); in writeEventToParcel()
1045 eventOut.mPackage = mStringPool[packageIndex]; in readEventFromParcel()
1047 eventOut.mPackage = null; in readEventFromParcel()
/frameworks/base/core/tests/coretests/src/android/app/usage/
DParcelableUsageEventListTest.java109 event.mPackage = anyString(); in generateUsageEvent()
157 assertEquals(ue1.mPackage, ue2.mPackage); in compareUsageEvent()

123