Home
last modified time | relevance | path

Searched refs:ResourceOveruseConfiguration (Results 1 – 25 of 51) sorted by relevance

123

/packages/services/Car/cpp/watchdog/server/tests/
DIoOveruseConfigsTest.cpp40 using ::aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration;
80 std::string toString(std::vector<ResourceOveruseConfiguration> configs) { in toString()
93 std::vector<Matcher<const ResourceOveruseConfiguration&>> ResourceOveruseConfigurationsMatchers( in ResourceOveruseConfigurationsMatchers()
94 const std::vector<ResourceOveruseConfiguration>& configs) { in ResourceOveruseConfigurationsMatchers()
95 std::vector<Matcher<const ResourceOveruseConfiguration&>> matchers; in ResourceOveruseConfigurationsMatchers()
103 const std::unordered_map<std::string, ResourceOveruseConfiguration>& configsByFilePath) { in toString()
125 ResourceOveruseConfiguration sampleBuildSystemConfig() { in sampleBuildSystemConfig()
142 ResourceOveruseConfiguration sampleBuildVendorConfig() { in sampleBuildVendorConfig()
160 ResourceOveruseConfiguration sampleBuildThirdPartyConfig() { in sampleBuildThirdPartyConfig()
171 ResourceOveruseConfiguration sampleUpdateSystemConfig() { in sampleUpdateSystemConfig()
[all …]
DOveruseConfigurationTestUtils.cpp30 using ::aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration;
78 ResourceOveruseConfiguration constructResourceOveruseConfig( in constructResourceOveruseConfig()
83 ResourceOveruseConfiguration resourceOveruseConfig; in constructResourceOveruseConfig()
158 Matcher<const ResourceOveruseConfiguration&> ResourceOveruseConfigurationMatcher( in ResourceOveruseConfigurationMatcher()
159 const ResourceOveruseConfiguration& config) { in ResourceOveruseConfigurationMatcher()
171 return AllOf(Field(&ResourceOveruseConfiguration::componentType, config.componentType), in ResourceOveruseConfigurationMatcher()
172 Field(&ResourceOveruseConfiguration::safeToKillPackages, in ResourceOveruseConfigurationMatcher()
174 Field(&ResourceOveruseConfiguration::vendorPackagePrefixes, in ResourceOveruseConfigurationMatcher()
176 Field(&ResourceOveruseConfiguration::packageMetadata, in ResourceOveruseConfigurationMatcher()
178 Field(&ResourceOveruseConfiguration::resourceSpecificConfigurations, in ResourceOveruseConfigurationMatcher()
DOveruseConfigurationXmlHelperTest.cpp32 using ::aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration;
85 ResourceOveruseConfiguration expected = in TEST()
118 ResourceOveruseConfiguration expected = in TEST()
148 ResourceOveruseConfiguration expected = in TEST()
180 ResourceOveruseConfiguration expected = in TEST()
221 ResourceOveruseConfiguration expected = in TEST()
259 ResourceOveruseConfiguration expected = in TEST()
280 ResourceOveruseConfiguration resourceOveruseConfig; in TEST()
DOveruseConfigurationTestUtils.h37 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration
88 testing::Matcher<const aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration&>
90 const aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration& config);
DMockIoOveruseMonitor.h42 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&),
47 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*),
DMockIoOveruseConfigs.h41 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&),
47 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*),
DMockWatchdogInternalHandler.h70 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&),
75 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*),
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DResourceOveruseConfigurationSubject.java22 import android.car.watchdog.ResourceOveruseConfiguration;
37 Iterable<ResourceOveruseConfiguration>> RESOURCE_OVERUSE_CONFIG_SUBJECT_FACTORY =
40 private final Iterable<ResourceOveruseConfiguration> mActual;
44 @Nullable Iterable<ResourceOveruseConfiguration> stats) { in assertThat()
49 Iterable<ResourceOveruseConfiguration>> resourceOveruseConfigurations() { in resourceOveruseConfigurations()
53 public void containsExactly(ResourceOveruseConfiguration... stats) { in containsExactly()
57 public void containsExactlyElementsIn(Iterable<ResourceOveruseConfiguration> expected) { in containsExactlyElementsIn()
64 public static boolean isEquals(ResourceOveruseConfiguration actual, in isEquals()
65 ResourceOveruseConfiguration expected) { in isEquals()
81 @Nullable Iterable<ResourceOveruseConfiguration> iterableSubject) { in ResourceOveruseConfigurationSubject()
DInternalResourceOveruseConfigurationSubject.java23 import android.automotive.watchdog.internal.ResourceOveruseConfiguration;
41 Iterable<ResourceOveruseConfiguration>> RESOURCE_OVERUSE_CONFIG_SUBJECT_FACTORY =
55 private final Iterable<ResourceOveruseConfiguration> mActual;
59 @Nullable Iterable<ResourceOveruseConfiguration> stats) { in assertThat()
64 Iterable<ResourceOveruseConfiguration>> resourceOveruseConfigurations() { in resourceOveruseConfigurations()
68 public void containsExactly(ResourceOveruseConfiguration... stats) { in containsExactly()
72 public void containsExactlyElementsIn(Iterable<ResourceOveruseConfiguration> expected) { in containsExactlyElementsIn()
113 public static boolean isEquals(ResourceOveruseConfiguration actual, in isEquals()
114 ResourceOveruseConfiguration expected) { in isEquals()
131 @Nullable Iterable<ResourceOveruseConfiguration> iterableSubject) { in InternalResourceOveruseConfigurationSubject()
[all …]
DCarWatchdogManagerUnitTest.java22 import static android.car.watchdog.ResourceOveruseConfiguration.COMPONENT_TYPE_SYSTEM;
51 import android.car.watchdog.ResourceOveruseConfiguration;
604 List<ResourceOveruseConfiguration> configs = in testSetResourceOveruseConfigurations()
619 List<ResourceOveruseConfiguration> configs = in testFailsSetResourceOveruseConfigurations()
632 List<ResourceOveruseConfiguration> expectedConfigs = in testGetResourceOveruseConfigurations()
704 ResourceOveruseConfiguration resourceOveruseConfiguration = in testResourceOveruseConfigurationToStringAndDescribeContent()
705 new ResourceOveruseConfiguration.Builder( in testResourceOveruseConfigurationToStringAndDescribeContent()
706 ResourceOveruseConfiguration.COMPONENT_TYPE_SYSTEM, new ArrayList<>(), in testResourceOveruseConfigurationToStringAndDescribeContent()
718 + ResourceOveruseConfiguration.componentTypeToString( in testResourceOveruseConfigurationToStringAndDescribeContent()
719 ResourceOveruseConfiguration.COMPONENT_TYPE_SYSTEM) in testResourceOveruseConfigurationToStringAndDescribeContent()
[all …]
/packages/services/Car/car-lib/src/android/car/watchdog/
DResourceOveruseConfiguration.java44 public final class ResourceOveruseConfiguration implements Parcelable { class
174 /* package-private */ ResourceOveruseConfiguration( in ResourceOveruseConfiguration() method in ResourceOveruseConfiguration
306 /* package-private */ ResourceOveruseConfiguration(@NonNull android.os.Parcel in) { in ResourceOveruseConfiguration() method in ResourceOveruseConfiguration
347 public static final @NonNull Parcelable.Creator<ResourceOveruseConfiguration> CREATOR
348 = new Parcelable.Creator<ResourceOveruseConfiguration>() {
350 public ResourceOveruseConfiguration[] newArray(int size) {
351 return new ResourceOveruseConfiguration[size];
355 public ResourceOveruseConfiguration createFromParcel(@NonNull android.os.Parcel in) {
356 return new ResourceOveruseConfiguration(in);
545 public @NonNull ResourceOveruseConfiguration build() { in build()
[all …]
DICarWatchdogService.aidl22 import android.car.watchdog.ResourceOveruseConfiguration;
56 in List<ResourceOveruseConfiguration> configurations, in int resourceOveruseFlag); in setResourceOveruseConfigurations()
57 List<ResourceOveruseConfiguration> getResourceOveruseConfigurations( in getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/server/src/
DIoOveruseConfigs.h80 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&
84 get(std::vector<aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*
200 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&
204 get(std::vector<aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*
239 const aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration&
243 const aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration&
258 std::optional<aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration> get(
284 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>(
288 ResourceOveruseConfiguration&,
DIoOveruseConfigs.cpp44 using ::aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration;
177 const ResourceOveruseConfiguration& resourceOveruseConfig) { in isValidResourceOveruseConfig()
216 const std::vector<ResourceOveruseConfiguration>& resourceOveruseConfigs) { in isValidResourceOveruseConfigs()
407 const std::vector<ResourceOveruseConfiguration>& resourceOveruseConfigs) { in update()
430 const ResourceOveruseConfiguration& resourceOveruseConfig) { in updateFromAidlConfig()
471 const ResourceOveruseConfiguration& resourceOveruseConfiguration, in update()
583 std::vector<ResourceOveruseConfiguration>* resourceOveruseConfigs) const { in get()
603 std::optional<ResourceOveruseConfiguration> IoOveruseConfigs::get( in get()
609 ResourceOveruseConfiguration resourceOveruseConfiguration; in get()
653 std::vector<ResourceOveruseConfiguration> resourceOveruseConfigs; in writeToDisk()
DOveruseConfigurationXmlHelper.h33 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>
37 const aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration&
DIoOveruseMonitor.h82 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&
86 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*
198 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&
203 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*
DWatchdogInternalHandler.h108 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>&
112 aidl::android::automotive::watchdog::internal::ResourceOveruseConfiguration>*
/packages/services/Car/tests/carservice_unit_test/src/android/car/watchdoglib/
DCarWatchdogDaemonHelperTest.java44 import android.automotive.watchdog.internal.ResourceOveruseConfiguration;
197 ResourceOveruseConfiguration config = new ResourceOveruseConfiguration(); in testIndirectCall_updateResourceOveruseConfigurations()
199 List<ResourceOveruseConfiguration> configs = new ArrayList<>(Collections.singleton(config)); in testIndirectCall_updateResourceOveruseConfigurations()
208 ResourceOveruseConfiguration config = new ResourceOveruseConfiguration(); in testIndirectCall_getResourceOveruseConfigurations()
210 List<ResourceOveruseConfiguration> expected = in testIndirectCall_getResourceOveruseConfigurations()
214 List<ResourceOveruseConfiguration> actual = in testIndirectCall_getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DICarWatchdog.aidl23 import android.automotive.watchdog.internal.ResourceOveruseConfiguration;
118 void updateResourceOveruseConfigurations(in List<ResourceOveruseConfiguration> configs); in updateResourceOveruseConfigurations()
126 List<ResourceOveruseConfiguration> getResourceOveruseConfigurations(); in getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/car-watchdog-lib/src/android/car/watchdoglib/
DCarWatchdogDaemonHelper.java25 import android.automotive.watchdog.internal.ResourceOveruseConfiguration;
265 List<ResourceOveruseConfiguration> configurations) throws RemoteException { in updateResourceOveruseConfigurations()
274 public List<ResourceOveruseConfiguration> getResourceOveruseConfigurations() in getResourceOveruseConfigurations()
276 List<ResourceOveruseConfiguration> configurations = new ArrayList<>(); in getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DICarWatchdog.aidl43 …seConfigurations(in List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> config… in updateResourceOveruseConfigurations()
44 …List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> getResourceOveruseConfigur… in getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DICarWatchdog.aidl43 …seConfigurations(in List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> config… in updateResourceOveruseConfigurations()
44 …List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> getResourceOveruseConfigur… in getResourceOveruseConfigurations()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java91 import android.car.watchdog.ResourceOveruseConfiguration;
284 private List<android.automotive.watchdog.internal.ResourceOveruseConfiguration>
863 List<ResourceOveruseConfiguration> configurations, in setResourceOveruseConfigurations()
872 List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> internalConfigs = in setResourceOveruseConfigurations()
892 public List<ResourceOveruseConfiguration> getResourceOveruseConfigurations( in getResourceOveruseConfigurations()
903 List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> internalConfigs = in getResourceOveruseConfigurations()
911 List<ResourceOveruseConfiguration> configs = new ArrayList<>(); in getResourceOveruseConfigurations()
1286 List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> internalConfigs; in fetchAndSyncResourceOveruseConfigurations()
1717 List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> configs) { in setPendingSetResourceOveruseConfigurationsRequestLocked()
1729 List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> configs; in retryPendingSetResourceOveruseConfigurations()
[all …]
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DICarWatchdog.aidl43 …seConfigurations(in List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> config… in updateResourceOveruseConfigurations()
44 …List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> getResourceOveruseConfigur… in getResourceOveruseConfigurations()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DICarWatchdog.aidl43 …seConfigurations(in List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> config… in updateResourceOveruseConfigurations()
44 …List<android.automotive.watchdog.internal.ResourceOveruseConfiguration> getResourceOveruseConfigur… in getResourceOveruseConfigurations()

123