Home
last modified time | relevance | path

Searched refs:SYSTEM (Results 1 – 25 of 82) sorted by relevance

1234

/packages/services/Car/cpp/watchdog/server/tests/
DIoOveruseConfigsTest.cpp134 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in sampleBuildSystemConfig()
140 return constructResourceOveruseConfig(ComponentType::SYSTEM, in sampleBuildSystemConfig()
180 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in sampleUpdateSystemConfig()
187 return constructResourceOveruseConfig(ComponentType::SYSTEM, /*safeToKill=*/{"systemPackageA"}, in sampleUpdateSystemConfig()
458 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, 300, 400, 600), in TEST_F()
466 constructResourceOveruseConfig(ComponentType::SYSTEM, /*safeToKill=*/{"systemPackageC"}, in TEST_F()
503 constructResourceOveruseConfig(ComponentType::SYSTEM, /*safeToKill=*/{"systemPackageC"}, in TEST_F()
527 auto packageInfo = constructPackageInfo("systemPackage", ComponentType::SYSTEM); in TEST_F()
563 .update({constructResourceOveruseConfig(ComponentType::SYSTEM, {}, {}, {}, in TEST_F()
629 toPerStateIoOveruseThreshold(ComponentType::SYSTEM, 100, 200, 300); in TEST_F()
[all …]
DOveruseConfigurationXmlHelperTest.cpp75 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in TEST()
86 constructResourceOveruseConfig(ComponentType::SYSTEM, in TEST()
170 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in TEST()
181 constructResourceOveruseConfig(ComponentType::SYSTEM, in TEST()
DPackageInfoResolverTest.cpp165 constructPackageInfo("system.package.B", 7700, UidType::NATIVE, ComponentType::SYSTEM, in TEST()
209 ComponentType::SYSTEM, ApplicationCategoryType::OTHERS, in TEST()
212 constructPackageInfo("system.package.B", 7700, UidType::NATIVE, ComponentType::SYSTEM, in TEST()
244 constructPackageInfo("vendor.package", 1003456, UidType::NATIVE, ComponentType::SYSTEM, in TEST()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java61 private static final int SYSTEM = 3; field in GraphicsDriverAppPreferenceControllerTest
235 assertThat(preference.getEntry()).isEqualTo(mValueList[SYSTEM]); in createPreference_configSystem_shouldSetSystemAttributes()
236 assertThat(preference.getValue()).isEqualTo(mValueList[SYSTEM]); in createPreference_configSystem_shouldSetSystemAttributes()
237 assertThat(preference.getSummary()).isEqualTo(mValueList[SYSTEM]); in createPreference_configSystem_shouldSetSystemAttributes()
299 mController.onPreferenceChange(preference, mValueList[SYSTEM]); in onPreferenceChange_selectSystem_shouldUpdateAttributesAndSettingsGlobal()
301 assertThat(preference.getEntry()).isEqualTo(mValueList[SYSTEM]); in onPreferenceChange_selectSystem_shouldUpdateAttributesAndSettingsGlobal()
302 assertThat(preference.getValue()).isEqualTo(mValueList[SYSTEM]); in onPreferenceChange_selectSystem_shouldUpdateAttributesAndSettingsGlobal()
303 assertThat(preference.getSummary()).isEqualTo(mValueList[SYSTEM]); in onPreferenceChange_selectSystem_shouldUpdateAttributesAndSettingsGlobal()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java38 import static com.android.server.connectivity.PermissionMonitor.SYSTEM;
529 doReturn(SYSTEM).when(mPermissionMonitor).highestPermissionForUid(any(), in testUserAndPackageAddRemove()
535 doReturn(SYSTEM).when(mPermissionMonitor).highestPermissionForUid(eq(SYSTEM), anyString()); in testUserAndPackageAddRemove()
544 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1}, new int[]{SYSTEM_UID}); in testUserAndPackageAddRemove()
547 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1, MOCK_USER2}, in testUserAndPackageAddRemove()
557 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1, MOCK_USER2}, in testUserAndPackageAddRemove()
562 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1, MOCK_USER2}, in testUserAndPackageAddRemove()
566 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1, MOCK_USER2}, in testUserAndPackageAddRemove()
966 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1}, new int[]{MOCK_UID1}); in testUidsAllowedOnRestrictedNetworksChanged()
974 netdMonitor.expectPermission(SYSTEM, new UserHandle[]{MOCK_USER1}, new int[]{MOCK_UID2}); in testUidsAllowedOnRestrictedNetworksChanged()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DSoundSettingsTest.java118 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testCallVibrate()
120 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testCallVibrate()
128 SettingsType.SYSTEM, PAGE, "Dial pad tones", in testOtherSoundsDialPadTones()
136 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSoundsScreenLocking()
152 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSoundsTouch()
160 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSoundsVibrateOnTap()
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java148 case ComponentType.SYSTEM: in getPackageInfo()
163 packageInfo.componentType = ComponentType.SYSTEM; in getPackageInfo()
203 return ComponentType.SYSTEM; in getComponentType()
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseConfigs.cpp175 case ComponentType::SYSTEM: in getComponentFilter()
434 case ComponentType::SYSTEM: in updateFromAidlConfig()
585 systemConfig->componentType = ComponentType::SYSTEM; in get()
655 case ComponentType::SYSTEM: in writeToDisk()
685 case ComponentType::SYSTEM: in fetchThreshold()
726 case ComponentType::SYSTEM: in isSafeToKill()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DResultPayload.java116 @IntDef({SettingsSource.UNKNOWN, SettingsSource.SYSTEM, SettingsSource.SECURE,
121 int SYSTEM = 1; field
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DRemoteBugreportActivity.java86 UserHandle.SYSTEM, android.Manifest.permission.DUMP); in onCreate()
97 UserHandle.SYSTEM, android.Manifest.permission.DUMP); in onCreate()
/packages/apps/Settings/src/com/android/settings/
DRemoteBugreportActivity.java87 UserHandle.SYSTEM, android.Manifest.permission.DUMP); in onCreate()
98 UserHandle.SYSTEM, android.Manifest.permission.DUMP); in onCreate()
DTrustedCredentialsSettings.java100 SYSTEM("system", enumConstant
132 case SYSTEM: { in getAliases()
142 case SYSTEM: in deleted()
222 addTab(Tab.SYSTEM); in onCreateView()
911 return mTab == Tab.SYSTEM; in isSystemCert()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DUserHalHelperTest.java127 assertConvertFlags(UserFlags.SYSTEM, user); in testConvertFlags()
162 assertGetFlags(UserFlags.SYSTEM, user); in testGetFlags_ok()
183 assertThat(UserHalHelper.isSystem(UserFlags.SYSTEM)).isTrue(); in testIsSystem()
184 assertThat(UserHalHelper.isSystem(UserFlags.SYSTEM | 666)).isTrue(); in testIsSystem()
192 assertThat(UserHalHelper.isGuest(UserFlags.SYSTEM)).isFalse(); in testIsGuest()
234 assertThat(UserHalHelper.toUserInfoFlags(UserFlags.SYSTEM)).isEqualTo(0); in testToUserInfoFlags()
1040 request.newUserInfo.flags = UserFlags.SYSTEM; in testCreateUserRequestToVehiclePropValue_newUserFlagsMismatch()
1059 user11.flags = UserFlags.SYSTEM; in testCreateUserRequestToVehiclePropValue_ok()
1091 11, UserFlags.SYSTEM, // existing user 2 in testCreateUserRequestToVehiclePropValue_ok()
1304 currentUser.flags = UserFlags.SYSTEM; in testCheckValidUsersInfo_currentUserFlagsMismatch()
/packages/modules/Connectivity/tests/common/java/android/net/
DUidRangeTest.java20 import static android.os.UserHandle.SYSTEM;
104 final UidRange uidRangeOfPrimaryUser = UidRange.createForUser(SYSTEM); in testCreateForUser()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java869 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in testFailsSetResourceOveruseConfigurationsOnInvalidArgs()
870 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM).build()) in testFailsSetResourceOveruseConfigurationsOnInvalidArgs()
880 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in testFailsSetResourceOveruseConfigurationsOnDuplicateComponents()
881 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM).build()).build(); in testFailsSetResourceOveruseConfigurationsOnDuplicateComponents()
892 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, null).build()); in testFailsSetResourceOveruseConfigurationsOnNullIoOveruseConfiguration()
1117 UidType.NATIVE, ComponentType.SYSTEM, ApplicationCategoryType.OTHERS), in testGetPackageInfosForUids()
1120 UidType.NATIVE, ComponentType.SYSTEM, ApplicationCategoryType.OTHERS), in testGetPackageInfosForUids()
1445 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in sampleResourceOveruseConfigurations()
1446 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM).build()).build(), in sampleResourceOveruseConfigurations()
1457 sampleInternalResourceOveruseConfiguration(ComponentType.SYSTEM, in sampleInternalResourceOveruseConfigurations()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDefaultUsbConfigurationPreferenceControllerTest.java92 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in updateState_usbDataSignalingDisabled_shouldDisablePreference()
115 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
DUsbAudioRoutingPreferenceControllerTest.java113 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in updateState_usbDataSignalingDisabled_shouldDisablePreference()
171 TEST_COMPONENT_NAME, null, UserHandle.SYSTEM))); in onDeveloperOptionsSwitchEnabled_usbDisabled_shouldDisablePreference()
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DNotificationEntryTest.java81 UserHandle.SYSTEM, 0); in generateSbn()
90 UserHandle.SYSTEM, 0); in generateSbn()
95 UserHandle.SYSTEM, 0); in generateSbn()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java196 boolean systemUser = UserHandle.SYSTEM.equals(user); in startOrBindServicesForUser()
211 startOrBindServicesForUser(UserHandle.SYSTEM); in startOrBindServicesIfNeeded()
366 || UserHandle.SYSTEM.equals(mUser)) { in tryToRebind()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java83 protected static final Boolean SYSTEM = Boolean.TRUE; field in PermissionMonitor
423 if (currentPermission == SYSTEM) { in highestPermissionForUid()
508 if (permission == SYSTEM) { in highestUidNetworkPermission()
547 if (permission == SYSTEM) { in onPackageRemoved()
679 uids.removeIf(uid -> mApps.getOrDefault(UserHandle.getAppId(uid), NETWORK) == SYSTEM); in removeBypassingUids()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/common/
DPolicyComplianceUtilsTest.java76 UserHandle.SYSTEM); in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsTrue()
87 UserHandle.SYSTEM); in isPolicyComplianceActivityResolvableForSystemUser_activityExists_returnsFalse()
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java165 config.componentType = ComponentType.SYSTEM; in testIndirectCall_updateResourceOveruseConfigurations()
176 config.componentType = ComponentType.SYSTEM; in testIndirectCall_getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DComponentType.aidl34 SYSTEM, enumConstant
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageAsyncLoaderTest.java151 when(mSource.getExternalStorageStats(any(), eq(UserHandle.SYSTEM))) in testMultipleUsers()
204 when(mSource.getExternalStorageStats(anyString(), eq(UserHandle.SYSTEM))) in testPackageIsNotDoubleCounted()
/packages/modules/Permission/service/java/com/android/permission/compat/
DUserHandleCompat.java34 public static final int USER_SYSTEM = UserHandle.SYSTEM.getIdentifier();

1234