Home
last modified time | relevance | path

Searched refs:ComponentType (Results 1 – 25 of 28) sorted by relevance

12

/aosp12/packages/services/Car/cpp/watchdog/server/tests/
H A DIoOveruseConfigsTest.cpp35 using ::android::automotive::watchdog::internal::ComponentType;
130 return constructResourceOveruseConfig(ComponentType::SYSTEM, in sampleBuildSystemConfig()
148 return constructResourceOveruseConfig(ComponentType::VENDOR, in sampleBuildVendorConfig()
160 toPerStateIoOveruseThreshold(ComponentType::THIRD_PARTY, in sampleBuildThirdPartyConfig()
198 return constructResourceOveruseConfig(ComponentType::VENDOR, in sampleUpdateVendorConfig()
582 ComponentType::VENDOR, in TEST_F()
650 resConfig.componentType = ComponentType::THIRD_PARTY; in TEST_F()
668 resConfig.componentType = ComponentType::THIRD_PARTY; in TEST_F()
731 constructResourceOveruseConfig(ComponentType::VENDOR, in TEST_F()
1009 packageInfo.componentType = ComponentType::SYSTEM; in TEST_F()
[all …]
H A DOveruseConfigurationXmlHelperTest.cpp31 using ::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()
149 constructResourceOveruseConfig(ComponentType::THIRD_PARTY, in TEST()
170 /*componentLevel=*/toPerStateIoOveruseThreshold(ComponentType::SYSTEM, in TEST()
181 constructResourceOveruseConfig(ComponentType::SYSTEM, in TEST()
224 constructResourceOveruseConfig(ComponentType::VENDOR, in TEST()
264 constructResourceOveruseConfig(ComponentType::THIRD_PARTY, in TEST()
[all …]
H A DPackageInfoResolverTest.cpp33 using ::android::automotive::watchdog::internal::ComponentType;
152 constructPackageInfo("system.package.B", 7700, UidType::NATIVE, ComponentType::SYSTEM, in TEST()
155 constructPackageInfo("vendor.package.A", 5100, UidType::NATIVE, ComponentType::VENDOR, in TEST()
158 constructPackageInfo("vendor.package.B", 6700, UidType::NATIVE, ComponentType::VENDOR, in TEST()
161 constructPackageInfo("vendor.pkg.C", 9997, UidType::NATIVE, ComponentType::VENDOR, in TEST()
198 ComponentType::SYSTEM, ApplicationCategoryType::OTHERS, in TEST()
201 constructPackageInfo("system.package.B", 7700, UidType::NATIVE, ComponentType::SYSTEM, in TEST()
205 ComponentType::VENDOR, ApplicationCategoryType::OTHERS)}, in TEST()
207 constructPackageInfo("vendor.pkg", 16700, UidType::NATIVE, ComponentType::VENDOR, in TEST()
211 ComponentType::VENDOR, ApplicationCategoryType::OTHERS)}, in TEST()
[all …]
H A DPackageInfoTestUtils.cpp24 using ::android::automotive::watchdog::internal::ComponentType;
29 ComponentType componentType, in constructPackageInfo()
42 PackageInfo constructAppPackageInfo(const char* packageName, const ComponentType componentType, in constructAppPackageInfo()
H A DPackageInfoTestUtils.h37 android::automotive::watchdog::internal::ComponentType componentType =
38 android::automotive::watchdog::internal::ComponentType::UNKNOWN,
45 const android::automotive::watchdog::internal::ComponentType componentType,
H A DOveruseConfigurationTestUtils.h39 const android::automotive::watchdog::internal::ComponentType type,
66 const android::automotive::watchdog::internal::ComponentType type,
70 const android::automotive::watchdog::internal::ComponentType type, const int64_t fgBytes,
H A DOveruseConfigurationTestUtils.cpp24 using ::android::automotive::watchdog::internal::ComponentType;
78 const ComponentType type, const std::vector<std::string>&& safeToKill, in constructResourceOveruseConfig()
130 PerStateIoOveruseThreshold toPerStateIoOveruseThreshold(const ComponentType type, in toPerStateIoOveruseThreshold()
135 PerStateIoOveruseThreshold toPerStateIoOveruseThreshold(const ComponentType type, in toPerStateIoOveruseThreshold()
H A DWatchdogServiceHelperTest.cpp36 using aawi::ComponentType;
333 constructPackageInfo("vendor.package.A", 120000, UidType::NATIVE, ComponentType::VENDOR, in TEST_F()
336 ComponentType::THIRD_PARTY, ApplicationCategoryType::OTHERS), in TEST_F()
/aosp12/packages/services/Car/service/src/com/android/car/watchdog/
H A DPackageInfoHandler.java21 import android.automotive.watchdog.internal.ComponentType;
186 int componentType = ComponentType.UNKNOWN; in getComponentType()
256 return ComponentType.VENDOR; in getSharedComponentType()
265 return ComponentType.SYSTEM; in getSharedComponentType()
267 return ComponentType.THIRD_PARTY; in getSharedComponentType()
269 return ComponentType.UNKNOWN; in getSharedComponentType()
282 return ComponentType.UNKNOWN; in getUserPackageComponentType()
305 return ComponentType.VENDOR; in getComponentType()
318 return ComponentType.SYSTEM; in getComponentType()
320 return ComponentType.THIRD_PARTY; in getComponentType()
[all …]
H A DOveruseConfigurationCache.java131 case ComponentType.SYSTEM: in set()
134 case ComponentType.VENDOR: in set()
170 case ComponentType.SYSTEM: in fetchThreshold()
176 case ComponentType.VENDOR: in fetchThreshold()
211 case ComponentType.SYSTEM: in isSafeToKill()
216 case ComponentType.VENDOR: in isSafeToKill()
259 case ComponentType.SYSTEM: in setIoThresholdsLocked()
263 case ComponentType.VENDOR: in setIoThresholdsLocked()
323 case ComponentType.SYSTEM: in toComponentTypeString()
325 case ComponentType.VENDOR: in toComponentTypeString()
[all …]
H A DWatchdogPerfHandler.java68 import android.automotive.watchdog.internal.ComponentType;
1709 @ComponentType int componentType = mPackageInfoHandler.getComponentType( in constructCarWatchdogIoOveruseStatsLocked()
2107 case ComponentType.SYSTEM: in toComponentTypeStr()
2109 case ComponentType.VENDOR: in toComponentTypeStr()
2111 case ComponentType.THIRD_PARTY: in toComponentTypeStr()
2275 if (componentType == ComponentType.SYSTEM) { in checkIoOveruseConfig()
2447 if (myComponentType != ComponentType.THIRD_PARTY && !isSafeToKill) { in syncAndFetchKillableState()
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DIoOveruseConfigs.cpp166 case ComponentType::SYSTEM: in getComponentFilter()
168 case ComponentType::VENDOR: in getComponentFilter()
170 case ComponentType::THIRD_PARTY: in getComponentFilter()
435 case ComponentType::SYSTEM: in updateFromAidlConfig()
439 case ComponentType::VENDOR: in updateFromAidlConfig()
658 case ComponentType::SYSTEM: in writeToDisk()
665 case ComponentType::VENDOR: in writeToDisk()
688 case ComponentType::SYSTEM: in fetchThreshold()
699 case ComponentType::VENDOR: in fetchThreshold()
729 case ComponentType::SYSTEM: in isSafeToKill()
[all …]
H A DPackageInfoResolver.cpp39 using ::android::automotive::watchdog::internal::ComponentType;
56 ComponentType getComponentTypeForNativeUid(uid_t uid, std::string_view packageName, in getComponentTypeForNativeUid()
60 return ComponentType::VENDOR; in getComponentTypeForNativeUid()
66 return ComponentType::VENDOR; in getComponentTypeForNativeUid()
72 return ComponentType::SYSTEM; in getComponentTypeForNativeUid()
H A DOveruseConfigurationXmlHelper.cpp44 using ::android::automotive::watchdog::internal::ComponentType;
113 Result<ComponentType> readComponentType(const XMLElement* rootElement) { in readComponentType()
127 new std::string(toString(ComponentType::SYSTEM)); in readComponentType()
129 new std::string(toString(ComponentType::VENDOR)); in readComponentType()
131 new std::string(toString(ComponentType::THIRD_PARTY)); in readComponentType()
133 return ComponentType::SYSTEM; in readComponentType()
135 return ComponentType::VENDOR; in readComponentType()
137 return ComponentType::THIRD_PARTY; in readComponentType()
267 Result<PerStateIoOveruseThreshold> readComponentLevelThresholds(ComponentType componentType, in readComponentLevelThresholds()
403 Result<IoOveruseConfiguration> readIoOveruseConfiguration(ComponentType componentType, in readIoOveruseConfiguration()
[all …]
H A DWatchdogInternalHandler.cpp36 using aawi::ComponentType;
/aosp12/packages/services/Car/car-lib/src/android/car/watchdog/
H A DResourceOveruseConfiguration.java74 private @ComponentType int mComponentType;
141 public @interface ComponentType {} annotation in ResourceOveruseConfiguration
145 public static String componentTypeToString(@ComponentType int value) { in componentTypeToString()
168 @ComponentType int componentType, in ResourceOveruseConfiguration()
203 public @ComponentType int getComponentType() { in getComponentType()
350 private @ComponentType int mComponentType;
382 @ComponentType int componentType, in Builder()
413 public @NonNull Builder setComponentType(@ComponentType int value) { in setComponentType()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
H A DCarWatchdogServiceUnitTest.java81 import android.automotive.watchdog.internal.ComponentType;
1876 sampleIoOveruseConfigurationBuilder(ComponentType.SYSTEM) in testFailsSetResourceOveruseConfigurationsOnIoOveruseInvalidSystemWideThreshold()
3282 UidType.APPLICATION, ComponentType.THIRD_PARTY, in testGetPackageInfosForUids()
3285 UidType.APPLICATION, ComponentType.VENDOR, in testGetPackageInfosForUids()
3321 UidType.APPLICATION, ComponentType.THIRD_PARTY, in testGetPackageInfosWithSharedUids()
3410 UidType.APPLICATION, ComponentType.UNKNOWN, in testGetPackageInfosForUidsWithMissingApplicationInfos()
3414 UidType.APPLICATION, ComponentType.UNKNOWN, in testGetPackageInfosForUidsWithMissingApplicationInfos()
3485 ComponentType.THIRD_PARTY), in testOveruseConfigurationCacheFetchThreshold()
3518 "system_package.A", ComponentType.SYSTEM, null)).isFalse(); in testOveruseConfigurationCacheIsSafeToKill()
3521 "vendor_package.A", ComponentType.VENDOR, null)).isFalse(); in testOveruseConfigurationCacheIsSafeToKill()
[all …]
/aosp12/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
H A DResourceOveruseConfiguration.aidl19 import android.automotive.watchdog.internal.ComponentType;
30 ComponentType componentType;
H A DPackageInfo.aidl20 import android.automotive.watchdog.internal.ComponentType;
46 ComponentType componentType;
H A DComponentType.aidl24 enum ComponentType { enum
H A DICarWatchdog.aidl19 import android.automotive.watchdog.internal.ComponentType;
/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DMediaButtonReceiverHolder.java58 public @interface ComponentType {} annotation in MediaButtonReceiverHolder
71 @ComponentType
137 ComponentName componentName, @ComponentType int componentType) { in MediaButtonReceiverHolder()
269 @ComponentType
288 @ComponentType
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
H A DCarWatchdogDaemonHelperTest.java31 import android.automotive.watchdog.internal.ComponentType;
165 config.componentType = ComponentType.SYSTEM; in testIndirectCall_updateResourceOveruseConfigurations()
176 config.componentType = ComponentType.SYSTEM; in testIndirectCall_getResourceOveruseConfigurations()
/aosp12/hardware/interfaces/audio/policy/1.0/xml/pfw_schemas/api/
H A Dcurrent.txt68 public class ComponentType {
69 ctor public ComponentType();
103 method public audio.policy.configurable.V1_0.ComponentType getComponentType_optional();
107 method public void setComponentType_optional(audio.policy.configurable.V1_0.ComponentType);
/aosp12/libnativehelper/include_platform_header_only/nativehelper/detail/
H A Dsignature_checker.h1081 using ComponentType = decltype(Func<void>{}());
1083 return ConstexprArray<ComponentType, /*size*/0u>{};

12