Home
last modified time | relevance | path

Searched refs:isPrivileged (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DSELinuxMMAC.java413 final boolean isPrivileged = in getSeInfo()
414 (sharedUser != null) ? sharedUser.isPrivileged() | packageState.isPrivileged() in getSeInfo()
415 : packageState.isPrivileged(); in getSeInfo()
416 return getSeInfo(packageState, pkg, isPrivileged, targetSdkVersion); in getSeInfo()
434 boolean isPrivileged, int targetSdkVersion) { in getSeInfo() argument
455 if (isPrivileged) { in getSeInfo()
DSharedUserSetting.java238 public boolean isPrivileged() {
287 final boolean isPrivileged = isPrivileged() | ps.isPrivileged();
288 ps.getPkgState().setOverrideSeInfo(SELinuxMMAC.getSeInfo(ps, ps.getPkg(), isPrivileged,
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DAndroidPackageLegacyUtils.java93 public static boolean isPrivileged(@NonNull AndroidPackage pkg) { in isPrivileged() method in AndroidPackageLegacyUtils
94 return ((AndroidPackageHidden) pkg).isPrivileged(); in isPrivileged()
DAndroidPackageHidden.java70 boolean isPrivileged(); in isPrivileged() method
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceBroker.java303 IBinder cb, int uid, boolean on, boolean isPrivileged, String eventSource) { in setSpeakerphoneOn() argument
310 on, BtHelper.SCO_MODE_UNDEFINED, eventSource, isPrivileged)); in setSpeakerphoneOn()
329 boolean isPrivileged, String eventSource) { in setCommunicationDevice() argument
348 device != null, BtHelper.SCO_MODE_UNDEFINED, eventSource, isPrivileged); in setCommunicationDevice()
380 int scoAudioMode, boolean isPrivileged, String eventSource) { in setCommunicationRouteForClient() argument
388 + " device: " + device + " isPrivileged: " + isPrivileged in setCommunicationRouteForClient()
400 prevPrivileged = client.isPrivileged(); in setCommunicationRouteForClient()
404 client = addCommunicationRouteClient(cb, uid, device, isPrivileged); in setCommunicationRouteForClient()
543 crc.isPrivileged()); in onCheckCommunicationDeviceRemoval()
1260 boolean isPrivileged, @NonNull String eventSource) { in startBluetoothScoForClient() argument
[all …]
DRecordingActivityMonitor.java318 void registerRecordingCallback(IRecordingConfigDispatcher rcdb, boolean isPrivileged) { in registerRecordingCallback() argument
323 final RecMonitorClient rmc = new RecMonitorClient(rcdb, isPrivileged); in registerRecordingCallback()
325 if (!isPrivileged) { in registerRecordingCallback()
355 List<AudioRecordingConfiguration> getActiveRecordingConfigurations(boolean isPrivileged) { in getActiveRecordingConfigurations() argument
366 if (!isPrivileged) { in getActiveRecordingConfigurations()
532 RecMonitorClient(IRecordingConfigDispatcher rcdb, boolean isPrivileged) { in RecMonitorClient() argument
534 mIsPrivileged = isPrivileged; in RecMonitorClient()
DPlaybackActivityMonitor.java665 pw.print(" " + (pmc.isPrivileged() ? "(S)" : "(P)") in dump()
776 if (pmc.isPrivileged()) { in dispatchPlaybackChange()
1030 void registerPlaybackCallback(IPlaybackConfigDispatcher pcdb, boolean isPrivileged) { in registerPlaybackCallback() argument
1034 final PlayMonitorClient pmc = new PlayMonitorClient(pcdb, isPrivileged); in registerPlaybackCallback()
1055 List<AudioPlaybackConfiguration> getActivePlaybackConfigurations(boolean isPrivileged) { in getActivePlaybackConfigurations() argument
1057 if (isPrivileged) { in getActivePlaybackConfigurations()
1107 PlayMonitorClient(IPlaybackConfigDispatcher pcdb, boolean isPrivileged) { in PlayMonitorClient() argument
1109 mIsPrivileged = isPrivileged; in PlayMonitorClient()
1156 synchronized boolean isPrivileged() { in isPrivileged() method in PlaybackActivityMonitor.PlayMonitorClient
DSystemServerAdapter.java63 public boolean isPrivileged() { in isPrivileged() method in SystemServerAdapter
DAudioService.java1395 if (mSystemServer.isPrivileged()) { in AudioService()
2863 if (!mSystemServer.isPrivileged()) { in readPersistedSettings()
2949 if (!mSystemServer.isPrivileged()) { in readUserRestrictions()
4987 if (!mSystemServer.isPrivileged()) { in sendBroadcastToAll()
5336 final boolean isPrivileged = in getStreamMinVolume()
5341 return (mStreamStates[streamType].getMinIndex(isPrivileged) + 5) / 10; in getStreamMinVolume()
5902 SetModeDeathHandler(IBinder cb, int pid, int uid, boolean isPrivileged, in SetModeDeathHandler() argument
5909 mIsPrivileged = isPrivileged; in SetModeDeathHandler()
5958 public boolean isPrivileged() { in isPrivileged() method in AudioService.SetModeDeathHandler
6022 if (h.isPrivileged()) { in getAudioModeOwnerHandler()
[all …]
DAudioDeviceInventory.java1355 @NonNull IStrategyPreferredDevicesDispatcher dispatcher, boolean isPrivileged) { in registerStrategyPreferredDevicesDispatcher() argument
1356 mPrefDevDispatchers.register(dispatcher, isPrivileged); in registerStrategyPreferredDevicesDispatcher()
1365 @NonNull IStrategyNonDefaultDevicesDispatcher dispatcher, boolean isPrivileged) { in registerStrategyNonDefaultDevicesDispatcher() argument
1366 mNonDefDevDispatchers.register(dispatcher, isPrivileged); in registerStrategyNonDefaultDevicesDispatcher()
1447 @NonNull ICapturePresetDevicesRoleDispatcher dispatcher, boolean isPrivileged) {
1448 mDevRoleCapturePresetDispatchers.register(dispatcher, isPrivileged);
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DNoOpSystemServerAdapter.java29 public boolean isPrivileged() { in isPrivileged() method in NoOpSystemServerAdapter
/frameworks/base/services/core/java/com/android/server/speech/
DSpeechRecognitionManagerServiceImpl.java316 final boolean isPrivileged; in createService()
318 isPrivileged = false; in createService()
322 isPrivileged = checkPrivilege(serviceComponent); in createService()
331 isPrivileged); in createService()
DRemoteSpeechRecognitionService.java75 boolean isPrivileged) { in RemoteSpeechRecognitionService() argument
78 getBindingFlags(isPrivileged), in RemoteSpeechRecognitionService()
90 private static int getBindingFlags(boolean isPrivileged) { in getBindingFlags() argument
92 if (isPrivileged) { in getBindingFlags()
/frameworks/base/services/core/java/com/android/server/pm/pkg/
DSharedUserApi.java68 boolean isPrivileged(); in isPrivileged() method
DPackageState.java176 boolean isPrivileged(); in isPrivileged() method
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DBasePermissionPolicyTest.kt179 isPrivileged: Boolean = false, in <lambda>()
190 whenever(this.isPrivileged).thenReturn(isPrivileged) in <lambda>()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java232 boolean isPrivileged = (app.flags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) != 0; in isAppBackupAllowed()
234 if (UserHandle.isCore(app.uid) || isPrivileged) { in isAppBackupAllowed()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermission.kt104 inline val isPrivileged: Boolean in <lambda>() constant in com.android.server.permission.access.permission.Permission
DAppIdPermissionPolicy.kt910 !permission.isPrivileged || in <lambda>()
1315 if (!(packageState.isSystem && packageState.isPrivileged)) { in <lambda>()
1472 if ((permission.isPrivileged || permission.isOem) && packageState.isSystem) { in <lambda>()
1585 permission.isPrivileged -> { in <lambda>()
1586 if (packageState.isPrivileged) { in <lambda>()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DAppInfoUtils.java86 … | flag(AndroidPackageLegacyUtils.isPrivileged(pkg), ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) in appInfoPrivateFlags()
/frameworks/base/tests/vcn/java/com/android/server/
DVcnManagementServiceTest.java298 private void setupMockedCarrierPrivilege(boolean isPrivileged) { in setupMockedCarrierPrivilege() argument
299 setupMockedCarrierPrivilege(isPrivileged, TEST_PACKAGE_NAME); in setupMockedCarrierPrivilege()
302 private void setupMockedCarrierPrivilege(boolean isPrivileged, String pkg) { in setupMockedCarrierPrivilege() argument
310 isPrivileged in setupMockedCarrierPrivilege()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java2555 if (permission.isPrivileged()
2764 && (!bp.isPrivileged() || CollectionUtils.contains(
2768 || (((bp.isPrivileged() && CollectionUtils.contains(
2775 && (!bp.isPrivileged() || CollectionUtils.contains(
2779 || (((bp.isPrivileged() && CollectionUtils.contains(
3264 if (!(packageSetting.isSystem() && packageSetting.isPrivileged())) {
3383 final boolean isPrivilegedPermission = bp.isPrivileged();
3394 && ((isPrivilegedPermission && disabledPs.isPrivileged())
3407 allowed = (isPrivilegedPermission && pkgSetting.isPrivileged())
DPermission.java286 public boolean isPrivileged() { in isPrivileged() method in Permission
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java996 boolean isPrivileged) { in MediaProjection() argument
1002 mIsPrivileged = isPrivileged; in MediaProjection()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsServiceTest.java189 when(packageStateInternalMock.isPrivileged()).thenReturn(false); in mockGetPackageStateInternal()

12