Home
last modified time | relevance | path

Searched refs:userContext (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/
DAppSearchManagerService.java234 Context userContext = mContext.createContextAsUser(userHandle, /*flags=*/ 0); in handlePackageRemoved() local
237 userContext, userHandle, AppSearchConfig.getInstance(EXECUTOR)); in handlePackageRemoved()
258 Context userContext = mContext.createContextAsUser(userHandle, /*flags=*/ 0); in onUserUnlocking() local
261 userContext, userHandle, AppSearchConfig.getInstance(EXECUTOR)); in onUserUnlocking()
262 List<PackageInfo> installedPackageInfos = userContext in onUserUnlocking()
342 Context userContext = mContext.createContextAsUser(callingUser, /*flags=*/ 0); in setSchema() local
344 verifyCallingPackage(userContext, callingUser, callingUid, packageName); in setSchema()
345 verifyNotInstantApp(userContext, packageName); in setSchema()
424 Context userContext = mContext.createContextAsUser(callingUser, /*flags=*/ 0); in getSchema() local
426 verifyCallingPackage(userContext, callingUser, callingUid, packageName); in getSchema()
[all …]
DAppSearchUserInstanceManager.java100 @NonNull Context userContext, in getOrCreateUserInstance()
104 Objects.requireNonNull(userContext); in getOrCreateUserInstance()
111 instance = createUserInstance(userContext, userHandle, config); in getOrCreateUserInstance()
176 @NonNull Context userContext, in createUserInstance()
184 PlatformLogger logger = new PlatformLogger(userContext, config); in createUserInstance()
197 VisibilityStoreImpl.create(appSearchImpl, userContext); in createUserInstance()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimpleRecorder.h103 void *userContext = nullptr) {
116 AAudioStreamBuilder_setDataCallback(builder, dataCallback, userContext);
119 AAudioStreamBuilder_setErrorCallback(builder, errorCallback, userContext);
147 void *userContext) { in open() argument
159 AAudioStreamBuilder_setDataCallback(builder, dataProc, userContext); in open()
162 AAudioStreamBuilder_setErrorCallback(builder, errorProc, userContext); in open()
DAAudioSimplePlayer.h97 void *userContext = nullptr) {
110 AAudioStreamBuilder_setDataCallback(builder, dataCallback, userContext);
113 AAudioStreamBuilder_setErrorCallback(builder, errorCallback, userContext);
135 void *userContext) { in open() argument
152 AAudioStreamBuilder_setDataCallback(builder, dataProc, userContext); in open()
155 AAudioStreamBuilder_setErrorCallback(builder, errorProc, userContext); in open()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordDialog.java111 Context userContext = mUserContextProvider.getUserContext(); in requestScreenCapture() local
116 PendingIntent startIntent = PendingIntent.getForegroundService(userContext, in requestScreenCapture()
119 userContext, RESULT_OK, in requestScreenCapture()
122 PendingIntent stopIntent = PendingIntent.getService(userContext, in requestScreenCapture()
124 RecordingService.getStopIntent(userContext), in requestScreenCapture()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DBatterySaverTileTest.kt53 private lateinit var userContext: Context variable in com.android.systemui.qs.tiles.BatterySaverTileTest
74 `when`(qsHost.userContext).thenReturn(userContext) in setUp()
75 `when`(userContext.userId).thenReturn(USER) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserTrackerImplTest.kt99 tracker.userContext in <lambda>()
138 assertThat(tracker.userContext.userId).isEqualTo(testID) in <lambda>()
139 assertThat(tracker.userContext.user).isEqualTo(UserHandle.of(testID)) in <lambda>()
158 assertThat(tracker.userContext.userId).isEqualTo(newID) in <lambda>()
159 assertThat(tracker.userContext.user).isEqualTo(UserHandle.of(newID)) in <lambda>()
281 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
284 lastUserContext = userContext in <lambda>()
/frameworks/native/include/android/
Dbitmap.h201 typedef bool (*AndroidBitmap_CompressWriteFunc)(void* userContext,
231 void* userContext,
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp187 CompressWriter(void* userContext, AndroidBitmap_CompressWriteFunc fn) in CompressWriter() argument
188 : mUserContext(userContext), mFn(fn), mBytesWritten(0) {} in CompressWriter()
209 AndroidBitmapCompressFormat inFormat, int32_t quality, void* userContext, in ABitmap_compress() argument
292 CompressWriter stream(userContext, fn); in ABitmap_compress()
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java62 Context userContext; in getProfileOrDeviceOwner() local
64 userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user); in getProfileOrDeviceOwner()
69 ComponentName adminComponent = userContext.getSystemService( in getProfileOrDeviceOwner()
/frameworks/base/native/graphics/jni/
Dbitmap.cpp102 void* userContext, in AndroidBitmap_compress() argument
112 (AndroidBitmapCompressFormat) format, quality, userContext, fn); in AndroidBitmap_compress()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java169 final Context userContext; in buildNotification() local
171 userContext = mInjector.createContextAsUser(userHandle); in buildNotification()
211 PendingIntent notifyIntent = mInjector.pendingIntentGetActivityAsUser(userContext, 0, in buildNotification()
215 return new Notification.Builder(userContext, SystemNotificationChannels.SECURITY) in buildNotification()
/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/visibilitystore/
DVisibilityStoreImpl.java94 @NonNull AppSearchImpl appSearchImpl, @NonNull Context userContext) in create() argument
96 return new VisibilityStoreImpl(appSearchImpl, userContext); in create()
99 private VisibilityStoreImpl(@NonNull AppSearchImpl appSearchImpl, @NonNull Context userContext) in VisibilityStoreImpl() argument
102 mUserContext = Objects.requireNonNull(userContext); in VisibilityStoreImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DUserTrackerImpl.kt79 override var userContext: Context by SynchronizedDelegate(context) variable in com.android.systemui.settings.UserTrackerImpl
83 get() = userContext.contentResolver
139 userContext = ctx in setUserIdInternal()
DUserContextProvider.kt25 val userContext: Context constant
DUserTracker.kt71 fun onUserChanged(newUser: Int, userContext: Context) {} in addCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java111 Context userContext, in CustomTile() argument
119 mUserContext = userContext; in CustomTile()
493 public static CustomTile create(Builder builder, String spec, Context userContext) { in create() argument
496 .setUserContext(userContext) in create()
542 Builder setUserContext(@NonNull Context userContext) { in setUserContext() argument
543 mUserContext = userContext; in setUserContext()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt127 val userContext = mock(Context::class.java) in testCorrectUser() constant
128 `when`(userContext.packageManager).thenReturn(packageManager) in testCorrectUser()
129 `when`(userContext.userId).thenReturn(10) in testCorrectUser()
131 val tile = CustomTile.create(customTileBuilder, TILE_SPEC, userContext) in testCorrectUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsControllerImpl.kt102 BackupManager(userStructure.userContext) in <lambda>()
118 BackupManager(userStructure.userContext) in <lambda>()
191 val prefs = userStructure.userContext.getSharedPreferences( in <lambda>()
579 val userContext = context.createContextAsUser(user, 0) constant
582 userContext.filesDir,
587 userContext.filesDir,
/frameworks/base/packages/SystemUI/src/com/android/systemui/toast/
DSystemUIToast.java256 final Context userContext; in getBadgedIcon() local
258 userContext = context.createPackageContextAsUser("android", in getBadgedIcon()
273 final PackageManager packageManager = userContext.getPackageManager(); in getBadgedIcon()
/frameworks/base/media/java/android/media/
DRingtoneManager.java756 public static void disableSyncFromParent(Context userContext) { in disableSyncFromParent() argument
760 audioService.disableRingtoneSync(userContext.getUserId()); in disableSyncFromParent()
772 public static void enableSyncFromParent(Context userContext) { in enableSyncFromParent() argument
773 Settings.Secure.putIntForUser(userContext.getContentResolver(), in enableSyncFromParent()
774 Settings.Secure.SYNC_PARENT_SOUNDS, 1 /* true */, userContext.getUserId()); in enableSyncFromParent()
/frameworks/base/core/java/android/app/
DSearchableInfo.java527 Context userContext = null; in getActivityMetaData() local
529 userContext = context.createPackageContextAsUser("system", 0, in getActivityMetaData()
537 activityInfo.loadXmlMetaData(userContext.getPackageManager(), MD_LABEL_SEARCHABLE); in getActivityMetaData()
543 SearchableInfo searchable = getActivityMetaData(userContext, xml, cName); in getActivityMetaData()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java452 final Context userContext; in loadDrawableAsUser() local
454 userContext = context; in loadDrawableAsUser()
460 userContext = context.createContextAsUser(UserHandle.of(userId), flags); in loadDrawableAsUser()
463 final PackageManager pm = userContext.getPackageManager(); in loadDrawableAsUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DReduceBrightColorsController.java79 public void onUserChanged(int newUser, Context userContext) { in ReduceBrightColorsController()
/frameworks/base/libs/hwui/apex/include/android/graphics/
Dbitmap.h66 AndroidBitmapCompressFormat format, int32_t quality, void* userContext,

12