/packages/services/Car/cpp/watchdog/server/tests/ |
D | IoOveruseConfigsTest.cpp | 35 using ::aidl::android::automotive::watchdog::internal::ComponentType; 127 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in sampleBuildSystemConfig() 133 return constructResourceOveruseConfig(ComponentType::SYSTEM, in sampleBuildSystemConfig() 144 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::VENDOR, in sampleBuildVendorConfig() 151 return constructResourceOveruseConfig(ComponentType::VENDOR, in sampleBuildVendorConfig() 163 toPerStateIoOveruseThreshold(ComponentType::THIRD_PARTY, in sampleBuildThirdPartyConfig() 166 return constructResourceOveruseConfig(ComponentType::THIRD_PARTY, /*safeToKill=*/{}, in sampleBuildThirdPartyConfig() 173 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in sampleUpdateSystemConfig() 180 return constructResourceOveruseConfig(ComponentType::SYSTEM, /*safeToKill=*/{"systemPackageA"}, in sampleUpdateSystemConfig() 192 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::VENDOR, in sampleUpdateVendorConfig() [all …]
|
D | OveruseConfigurationXmlHelperTest.cpp | 31 using ::aidl::android::automotive::watchdog::internal::ComponentType; 75 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in TEST() 86 constructResourceOveruseConfig(ComponentType::SYSTEM, in TEST() 104 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::VENDOR, in TEST() 119 constructResourceOveruseConfig(ComponentType::VENDOR, in TEST() 142 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::THIRD_PARTY, in TEST() 149 constructResourceOveruseConfig(ComponentType::THIRD_PARTY, in TEST() 170 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in TEST() 181 constructResourceOveruseConfig(ComponentType::SYSTEM, in TEST() 207 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::VENDOR, in TEST() [all …]
|
D | PackageInfoResolverTest.cpp | 35 using ::aidl::android::automotive::watchdog::internal::ComponentType; 178 constructPackageInfo("system.package.B", 7700, UidType::NATIVE, ComponentType::SYSTEM, in TEST_F() 181 constructPackageInfo("vendor.package.A", 5100, UidType::NATIVE, ComponentType::VENDOR, in TEST_F() 184 constructPackageInfo("vendor.package.B", 6700, UidType::NATIVE, ComponentType::VENDOR, in TEST_F() 187 constructPackageInfo("vendor.pkg.C", 9997, UidType::NATIVE, ComponentType::VENDOR, in TEST_F() 222 ComponentType::SYSTEM, ApplicationCategoryType::OTHERS, in TEST_F() 225 constructPackageInfo("system.package.B", 7700, UidType::NATIVE, ComponentType::SYSTEM, in TEST_F() 229 ComponentType::VENDOR, ApplicationCategoryType::OTHERS)}, in TEST_F() 231 constructPackageInfo("vendor.pkg", 16700, UidType::NATIVE, ComponentType::VENDOR, in TEST_F() 235 ComponentType::VENDOR, ApplicationCategoryType::OTHERS)}, in TEST_F() [all …]
|
D | PackageInfoTestUtils.cpp | 24 using ::aidl::android::automotive::watchdog::internal::ComponentType; 29 ComponentType componentType, in constructPackageInfo() 42 PackageInfo constructAppPackageInfo(const char* packageName, const ComponentType componentType, in constructAppPackageInfo()
|
D | PackageInfoTestUtils.h | 37 aidl::android::automotive::watchdog::internal::ComponentType componentType = 38 aidl::android::automotive::watchdog::internal::ComponentType::UNKNOWN, 45 const aidl::android::automotive::watchdog::internal::ComponentType componentType,
|
D | OveruseConfigurationTestUtils.cpp | 25 using ::aidl::android::automotive::watchdog::internal::ComponentType; 79 const ComponentType type, const std::vector<std::string>&& safeToKill, in constructResourceOveruseConfig() 131 PerStateIoOveruseThreshold toPerStateIoOveruseThreshold(const ComponentType type, in toPerStateIoOveruseThreshold() 136 PerStateIoOveruseThreshold toPerStateIoOveruseThreshold(const ComponentType type, in toPerStateIoOveruseThreshold()
|
D | OveruseConfigurationTestUtils.h | 39 const aidl::android::automotive::watchdog::internal::ComponentType type, 73 const aidl::android::automotive::watchdog::internal::ComponentType type, 78 const aidl::android::automotive::watchdog::internal::ComponentType type,
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 21 import android.automotive.watchdog.internal.ComponentType; 180 public @ComponentType int getComponentType(int uid, String genericPackageName) { in getComponentType() 188 int componentType = ComponentType.UNKNOWN; in getComponentType() 204 if (componentType != ComponentType.UNKNOWN) { in getComponentType() 250 public @ComponentType int getSharedComponentType( in getSharedComponentType() 257 if (seenComponents.get(ComponentType.VENDOR)) { in getSharedComponentType() 258 return ComponentType.VENDOR; in getSharedComponentType() 259 } else if (seenComponents.get(ComponentType.SYSTEM)) { in getSharedComponentType() 263 return ComponentType.VENDOR; in getSharedComponentType() 267 return ComponentType.SYSTEM; in getSharedComponentType() [all …]
|
D | OveruseConfigurationCache.java | 24 import android.automotive.watchdog.internal.ComponentType; 244 case ComponentType.SYSTEM: in set() 247 case ComponentType.VENDOR: in set() 279 @ComponentType int componentType) { in fetchThreshold() 283 case ComponentType.SYSTEM: in fetchThreshold() 289 case ComponentType.VENDOR: in fetchThreshold() 311 public boolean isSafeToKill(String genericPackageName, @ComponentType int componentType, in isSafeToKill() 328 case ComponentType.SYSTEM: in isSafeToKill() 333 case ComponentType.VENDOR: in isSafeToKill() 376 case ComponentType.SYSTEM: in setIoThresholdsLocked() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | IoOveruseConfigs.cpp | 38 using ::aidl::android::automotive::watchdog::internal::ComponentType; 127 Result<void> isValidIoOveruseConfiguration(const ComponentType componentType, in isValidIoOveruseConfiguration() 163 Result<int32_t> getComponentFilter(const ComponentType componentType) { in getComponentFilter() 165 case ComponentType::SYSTEM: in getComponentFilter() 167 case ComponentType::VENDOR: in getComponentFilter() 169 case ComponentType::THIRD_PARTY: in getComponentFilter() 217 std::unordered_set<ComponentType> seenComponentTypes; in isValidResourceOveruseConfigs() 332 mVendorConfig.mGeneric.name = toString(ComponentType::VENDOR); 340 mThirdPartyConfig.mGeneric.name = toString(ComponentType::THIRD_PARTY); 434 case ComponentType::SYSTEM: in updateFromAidlConfig() [all …]
|
D | OveruseConfigurationXmlHelper.cpp | 44 using ::aidl::android::automotive::watchdog::internal::ComponentType; 112 Result<ComponentType> readComponentType(const XMLElement* rootElement) { in readComponentType() 126 new std::string(toString(ComponentType::SYSTEM)); in readComponentType() 128 new std::string(toString(ComponentType::VENDOR)); in readComponentType() 130 new std::string(toString(ComponentType::THIRD_PARTY)); in readComponentType() 132 return ComponentType::SYSTEM; in readComponentType() 134 return ComponentType::VENDOR; in readComponentType() 136 return ComponentType::THIRD_PARTY; in readComponentType() 266 Result<PerStateIoOveruseThreshold> readComponentLevelThresholds(ComponentType componentType, in readComponentLevelThresholds() 402 Result<IoOveruseConfiguration> readIoOveruseConfiguration(ComponentType componentType, in readIoOveruseConfiguration() [all …]
|
D | PackageInfoResolver.cpp | 40 using ::aidl::android::automotive::watchdog::internal::ComponentType; 58 ComponentType getComponentTypeForNativeUid(uid_t uid, std::string_view packageName, in getComponentTypeForNativeUid() 62 return ComponentType::VENDOR; in getComponentTypeForNativeUid() 68 return ComponentType::VENDOR; in getComponentTypeForNativeUid() 74 return ComponentType::SYSTEM; in getComponentTypeForNativeUid()
|
/packages/services/Car/car-lib/src/android/car/watchdog/ |
D | ResourceOveruseConfiguration.java | 48 @ComponentType 54 @ComponentType 60 @ComponentType 80 private @ComponentType int mComponentType; 148 public @interface ComponentType {} annotation in ResourceOveruseConfiguration 152 public static String componentTypeToString(@ComponentType int value) { in componentTypeToString() 175 @ComponentType int componentType, in ResourceOveruseConfiguration() 210 public @ComponentType int getComponentType() { in getComponentType() 367 private @ComponentType int mComponentType; 408 @ComponentType int componentType, in Builder() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogServiceUnitTest.java | 80 import android.automotive.watchdog.internal.ComponentType; 800 UidType.NATIVE, ComponentType.SYSTEM, ApplicationCategoryType.OTHERS), in testGetPackageInfosForUids() 802 UidType.NATIVE, ComponentType.VENDOR, ApplicationCategoryType.OTHERS), in testGetPackageInfosForUids() 804 UidType.APPLICATION, ComponentType.THIRD_PARTY, in testGetPackageInfosForUids() 807 UidType.APPLICATION, ComponentType.VENDOR, in testGetPackageInfosForUids() 836 UidType.NATIVE, ComponentType.SYSTEM, ApplicationCategoryType.OTHERS), in testGetPackageInfosWithSharedUids() 840 ComponentType.VENDOR, ApplicationCategoryType.OTHERS), in testGetPackageInfosWithSharedUids() 843 UidType.APPLICATION, ComponentType.THIRD_PARTY, in testGetPackageInfosWithSharedUids() 878 UidType.APPLICATION, ComponentType.VENDOR, ApplicationCategoryType.OTHERS), in testGetPackageInfosForUidsWithVendorPackagePrefixes() 882 ComponentType.VENDOR, ApplicationCategoryType.OTHERS), in testGetPackageInfosForUidsWithVendorPackagePrefixes() [all …]
|
D | WatchdogPerfHandlerUnitTest.java | 83 import android.automotive.watchdog.internal.ComponentType; 946 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in testFailsSetResourceOveruseConfigurationsOnInvalidArgs() 947 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM).build()) in testFailsSetResourceOveruseConfigurationsOnInvalidArgs() 958 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in testFailsSetResourceOveruseConfigurationsOnDuplicateComponents() 959 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM).build()).build(); in testFailsSetResourceOveruseConfigurationsOnDuplicateComponents() 972 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in testFailsSetResourceOveruseConfigurationsOnZeroComponentLevelIoOveruseThresholds() 973 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM) in testFailsSetResourceOveruseConfigurationsOnZeroComponentLevelIoOveruseThresholds() 992 ComponentType.SYSTEM, /* ioOveruseConfig= */ null).build()); in testFailsSetResourceOveruseConfigurationsOnNullIoOveruseConfiguration() 1004 sampleResourceOveruseConfigurationBuilder(ComponentType.SYSTEM, in testFailsSetResourceOveruseConfigurationsOnEmptyIoOveruseSystemWideThresholds() 1005 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM) in testFailsSetResourceOveruseConfigurationsOnEmptyIoOveruseSystemWideThresholds() [all …]
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | ResourceOveruseConfiguration.aidl | 19 import android.automotive.watchdog.internal.ComponentType; 30 ComponentType componentType;
|
D | PackageInfo.aidl | 20 import android.automotive.watchdog.internal.ComponentType; 46 ComponentType componentType;
|
D | ComponentType.aidl | 24 enum ComponentType { enum
|
/packages/services/Car/service/proto/android/car/watchdog/ |
D | watchdogservice_dump.proto | 94 optional ComponentType component_type = 1; 99 optional ComponentType package_type = 1; 165 enum ComponentType { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/ |
D | ComponentType.aidl | 36 enum ComponentType { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/ |
D | ComponentType.aidl | 36 enum ComponentType { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/ |
D | ComponentType.aidl | 36 enum ComponentType { enum
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/ |
D | ComponentType.aidl | 36 enum ComponentType { enum
|
D | ResourceOveruseConfiguration.aidl | 36 android.automotive.watchdog.internal.ComponentType componentType;
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/ |
D | CarWatchdogDaemonHelperTest.java | 36 import android.automotive.watchdog.internal.ComponentType; 198 config.componentType = ComponentType.SYSTEM; in testIndirectCall_updateResourceOveruseConfigurations() 209 config.componentType = ComponentType.SYSTEM; in testIndirectCall_getResourceOveruseConfigurations()
|