Home
last modified time | relevance | path

Searched refs:FEATURE_AUTOMOTIVE (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/location/
DLocationShellCommand.java155 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleIsAdasGnssLocationEnabled()
177 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleSetAdasGnssLocationEnabled()
201 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleSetAutomotiveGnssSuspended()
211 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in handleIsAutomotiveGnssSuspended()
381 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in onHelp()
DLocationManagerService.java955 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in validateLocationRequest()
1066 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in validateLastLocationRequest()
1393 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in setAutomotiveGnssSuspended()
1410 if (!mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in isAutomotiveGnssSuspended()
/frameworks/base/services/core/java/com/android/server/location/settings/
DLocationSettings.java19 import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
120 if (mContext.getPackageManager().hasSystemFeature(FEATURE_AUTOMOTIVE)) { in dump()
197 && !mContext.getPackageManager().hasSystemFeature(FEATURE_AUTOMOTIVE)) { in filterSettings()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/settings/
DLocationSettingsTest.java19 import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
70 doReturn(true).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in setUp()
158 doReturn(false).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in testNonAutomotive()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DCriticalNotificationExtractorTest.java56 when(mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0)) in testExtractCritically_nonsupporting()
74 when(mPackageManagerClient.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0)) in testExtractCritically()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DDeviceUtils.java32 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAuto()
/frameworks/base/tests/TrustTests/src/android/trust/test/
DGrantAndRevokeTrustTest.kt99 assumeFalse(packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) in grantCannotActivelyUnlockDevice()
126 assumeFalse(packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) in grantCouldCauseWrongDeviceLockedStateDueToBug()
/frameworks/base/core/java/android/app/
DKeyguardManager.java1063 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
1098 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
1110 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
1122 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
1138 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
1176 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
/frameworks/base/services/core/java/com/android/server/notification/
DCriticalNotificationExtractor.java60 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, 0); in supportsCriticalNotifications()
/frameworks/base/location/java/android/location/
DLastLocationRequest.java229 @RequiresFeature(PackageManager.FEATURE_AUTOMOTIVE)
/frameworks/opt/car/services/builtInServices/tests/src/com/android/server/inputmethod/
DImeSmokeTest.java82 .hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in setUpClass()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableImpl.java20 import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
497 if (FEATURE_AUTOMOTIVE.equals(feature.name)) { in requiresDisplayCompatNotCachedLocked()
501 packageName, FEATURE_AUTOMOTIVE, required); in requiresDisplayCompatNotCachedLocked()
/frameworks/base/services/java/com/android/server/
DHsumBootUserInitializer.java142 .hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE, /* version= */0)); in systemRunning()
/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java134 return !packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) && in shouldShowNotification()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DIdleController.java134 PackageManager.FEATURE_AUTOMOTIVE); in initIdleStateTracker()
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DNotificationTest.java97 assumeFalse(pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/sensorprivacy/
DSensorUseStartedActivity.kt218 return getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DWeakEscrowTokenTests.java181 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)).thenReturn(true); in mockAutoHardware()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableTest.java23 import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
208 features[0].name = FEATURE_AUTOMOTIVE; in hasFeatureAutomotive_requiredTrue_returnsFalse()
221 features[0].name = FEATURE_AUTOMOTIVE; in hasFeatureAutomotive_requiredFalse_returnsFalse()
/frameworks/base/services/core/java/com/android/server/adaptiveauth/
DAdaptiveAuthService.java203 if (getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in reportAuthAttempt()
/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessCheckingService.kt120 if (PackageManager.FEATURE_AUTOMOTIVE in availableFeatures) { in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/adaptiveauth/
DAdaptiveAuthServiceTest.java115 !mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java25 import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
1253 doReturn(true).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in testProviderRequest_AdasGnssBypass()
1286 doReturn(true).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in testProviderRequest_AdasGnssBypass_ProviderDisabled()
1317 doReturn(true).when(mPackageManager).hasSystemFeature(FEATURE_AUTOMOTIVE); in testProviderRequest_AdasGnssBypass_ProviderDisabled_AdasDisabled()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DBatteryControllerTest.java98 PackageManager.FEATURE_AUTOMOTIVE)).thenReturn(false); in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DUserManagerServiceTest.java18 import static android.content.pm.PackageManager.FEATURE_AUTOMOTIVE;
808 doReturn(true).when(mMockPms).hasSystemFeature(eq(FEATURE_AUTOMOTIVE), anyInt()); in testCreatePrivateProfileOnAutoDevices_shouldNotAllowCreation()

123