Home
last modified time | relevance | path

Searched refs:vendorPackagePrefixes (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/cpp/watchdog/server/src/
DPackageInfoResolver.cpp59 const std::vector<std::string>& vendorPackagePrefixes) { in getComponentTypeForNativeUid() argument
60 for (const auto& prefix : vendorPackagePrefixes) { in getComponentTypeForNativeUid()
78 uid_t uid, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfoForNativeUid() argument
90 getComponentTypeForNativeUid(uid, packageName, vendorPackagePrefixes); in getPackageInfoForNativeUid()
133 const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument
137 std::copy(vendorPackagePrefixes.begin(), vendorPackagePrefixes.end(), in setPackageConfigurations()
DOveruseConfigurationXmlHelper.cpp162 std::vector<std::string> vendorPackagePrefixes; in readVendorPackagePrefixes() local
175 vendorPackagePrefixes.push_back(std::string(packagePrefix)); in readVendorPackagePrefixes()
178 return vendorPackagePrefixes; in readVendorPackagePrefixes()
467 Result<void> writeVendorPackagePrefixes(const std::vector<std::string>& vendorPackagePrefixes, in writeVendorPackagePrefixes() argument
469 if (vendorPackagePrefixes.empty()) { in writeVendorPackagePrefixes()
477 for (const auto& packagePrefix : vendorPackagePrefixes) { in writeVendorPackagePrefixes()
706 configuration.vendorPackagePrefixes = *result; in parseXmlFile()
749 writeVendorPackagePrefixes(configuration.vendorPackagePrefixes, rootElement); in writeXmlFile()
DIoOveruseConfigs.cpp481 for (const auto& prefix : resourceOveruseConfiguration.vendorPackagePrefixes) { in update()
486 } else if (!resourceOveruseConfiguration.vendorPackagePrefixes.empty()) { in update()
510 &vendorPackagePrefixes = mVendorPackagePrefixes](const std::string& packageName) { in update()
514 for (const auto& prefix : vendorPackagePrefixes) { in update()
519 vendorPackagePrefixes.insert(packageName); in update()
615 resourceOveruseConfiguration.vendorPackagePrefixes = toStringVector(mVendorPackagePrefixes); in get()
DPackageInfoResolver.h69 const std::unordered_set<std::string>& vendorPackagePrefixes,
125 const std::unordered_set<std::string>& vendorPackagePrefixes,
DWatchdogServiceHelper.h69 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes,
116 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes,
DWatchdogServiceHelper.cpp232 const std::vector<int32_t>& uids, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfosForUids() argument
245 return service->getPackageInfosForUids(uids, vendorPackagePrefixes, packageInfos); in getPackageInfosForUids()
DIoOveruseConfigs.h94 virtual const std::unordered_set<std::string>& vendorPackagePrefixes() = 0;
220 const std::unordered_set<std::string>& vendorPackagePrefixes() override { in vendorPackagePrefixes() function
/packages/services/Car/car-lib/src/android/car/watchdog/
DResourceOveruseConfiguration.java177 @NonNull List<String> vendorPackagePrefixes, in ResourceOveruseConfiguration() argument
195 this.mVendorPackagePrefixes = vendorPackagePrefixes; in ResourceOveruseConfiguration()
314 List<String> vendorPackagePrefixes = new java.util.ArrayList<>(); in ResourceOveruseConfiguration() local
315 in.readStringList(vendorPackagePrefixes); in ResourceOveruseConfiguration()
335 this.mVendorPackagePrefixes = vendorPackagePrefixes; in ResourceOveruseConfiguration()
410 @NonNull List<String> vendorPackagePrefixes, in Builder() argument
427 mVendorPackagePrefixes = vendorPackagePrefixes; in Builder()
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java168 List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument
169 setVendorPackagePrefixes(vendorPackagePrefixes); in getPackageInfosForUids()
325 void setVendorPackagePrefixes(List<String> vendorPackagePrefixes) { in setVendorPackagePrefixes() argument
327 if (mVendorPackagePrefixes.equals(vendorPackagePrefixes)) { in setVendorPackagePrefixes()
330 mVendorPackagePrefixes = vendorPackagePrefixes; in setVendorPackagePrefixes()
DCarWatchdogService.java908 int[] uids, List<String> vendorPackagePrefixes) { in getPackageInfosForUids() argument
918 return service.mPackageInfoHandler.getPackageInfosForUids(uids, vendorPackagePrefixes); in getPackageInfosForUids()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DInternalResourceOveruseConfigurationSubject.java121 && ImmutableSet.copyOf(actual.vendorPackagePrefixes).equals( in isEquals()
122 ImmutableSet.copyOf(expected.vendorPackagePrefixes)) in isEquals()
159 .append(config.vendorPackagePrefixes.stream().map(Object::toString) in toStringBuilder()
/packages/services/Car/cpp/watchdog/server/tests/
DOveruseConfigurationTestUtils.cpp86 resourceOveruseConfig.vendorPackagePrefixes = vendorPrefixes; in constructResourceOveruseConfig()
174 Field(&ResourceOveruseConfiguration::vendorPackagePrefixes, in ResourceOveruseConfigurationMatcher()
175 UnorderedElementsAreArray(config.vendorPackagePrefixes)), in ResourceOveruseConfigurationMatcher()
DIoOveruseConfigsTest.cpp317 latestVendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F()
389 latestVendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F()
435 vendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F()
538 EXPECT_THAT(ioOveruseConfigs.vendorPackagePrefixes(), IsEmpty()); in TEST_F()
1028 EXPECT_THAT(ioOveruseConfigs->vendorPackagePrefixes(), in TEST_F()
1034 sampleVendorConfig.vendorPackagePrefixes.push_back("shared:vendorSharedPackage"); in TEST_F()
1052 EXPECT_THAT(ioOveruseConfigs->vendorPackagePrefixes(), in TEST_F()
1094 vendorResourceConfig.vendorPackagePrefixes.push_back("vendorPkgB"); in TEST_F()
DPackageInfoResolverTest.cpp95 void setPackageConfigurations(const std::unordered_set<std::string>& vendorPackagePrefixes, in setPackageConfigurations() argument
97 mPackageInfoResolver->setPackageConfigurations(vendorPackagePrefixes, in setPackageConfigurations()
DMockIoOveruseConfigs.h52 MOCK_METHOD((const std::unordered_set<std::string>&), vendorPackagePrefixes, (), (override));
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DResourceOveruseConfiguration.aidl38 @utf8InCpp List<String> vendorPackagePrefixes;
DICarWatchdogServiceForSystem.aidl39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DResourceOveruseConfiguration.aidl38 @utf8InCpp List<String> vendorPackagePrefixes;
DICarWatchdogServiceForSystem.aidl39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DResourceOveruseConfiguration.aidl38 @utf8InCpp List<String> vendorPackagePrefixes;
DICarWatchdogServiceForSystem.aidl39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DResourceOveruseConfiguration.aidl38 @utf8InCpp List<String> vendorPackagePrefixes;
DICarWatchdogServiceForSystem.aidl39 …ckageInfo> getPackageInfosForUids(in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DResourceOveruseConfiguration.aidl43 @utf8InCpp List<String> vendorPackagePrefixes;
DICarWatchdogServiceForSystem.aidl58 in int[] uids, in @utf8InCpp List<String> vendorPackagePrefixes); in getPackageInfosForUids() argument

12