Home
last modified time | relevance | path

Searched refs:packageIdentifier (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/
DVisibilityDocumentV1.java171 Builder addVisibleToPackage(@NonNull PackageIdentifier packageIdentifier) { in addVisibleToPackage() argument
172 Objects.requireNonNull(packageIdentifier); in addVisibleToPackage()
173 mPackageIdentifiers.add(packageIdentifier); in addVisibleToPackage()
208 for (PackageIdentifier packageIdentifier : mPackageIdentifiers) { in build()
209 packageNames[i] = packageIdentifier.getPackageName(); in build()
210 sha256Certs[i] = packageIdentifier.getSha256Certificate(); in build()
DVisibilityToDocumentConverter.java456 @NonNull PackageIdentifier packageIdentifier) { in convertPackageIdentifierToProto()
458 .setPackageName(packageIdentifier.getPackageName()) in convertPackageIdentifierToProto()
459 .setPackageSha256Cert(ByteString.copyFrom(packageIdentifier.getSha256Certificate())) in convertPackageIdentifierToProto()
/packages/services/Car/cpp/watchdog/server/src/
DUidStatsCollector.cpp34 return !packageInfo.packageIdentifier.name.empty(); in hasPackageInfo()
38 return static_cast<uid_t>(packageInfo.packageIdentifier.uid); in uid()
43 return packageInfo.packageIdentifier.name; in genericPackageName()
45 return std::to_string(packageInfo.packageIdentifier.uid); in genericPackageName()
102 curUidStats.packageInfo.packageIdentifier.uid = uid; in process()
DPackageInfoResolver.cpp86 packageInfo.packageIdentifier.name = packageName; in getPackageInfoForNativeUid()
87 packageInfo.packageIdentifier.uid = uid; in getPackageInfoForNativeUid()
162 if (StartsWith(result->packageIdentifier.name, kSharedPackagePrefix)) { in updatePackageInfos()
186 const auto& id = packageInfo.packageIdentifier; in updatePackageInfos()
268 mUidToPackageInfoMapping.at(uid).packageIdentifier.name; in resolvePackageName()
DIoOveruseConfigs.cpp689 packageInfo.packageIdentifier.name); in fetchThreshold()
700 packageInfo.packageIdentifier.name); in fetchThreshold()
717 packageInfo.packageIdentifier.toString().c_str()); in fetchThreshold()
729 if (mSystemConfig.mSafeToKillPackages.find(packageInfo.packageIdentifier.name) != in isSafeToKill()
736 if (mVendorConfig.mSafeToKillPackages.find(packageInfo.packageIdentifier.name) != in isSafeToKill()
DIoOveruseMonitor.cpp330 stats.uid = curUidStats.packageInfo.packageIdentifier.uid; in onPeriodicCollection()
675 uniquePackageIdStr(packageInfo->packageIdentifier)); in getIoOveruseStats()
709 if (uniquePackageNames.find(usage.packageInfo.packageIdentifier.name) != in resetIoOveruseStats()
721 if (multiuser_get_user_id(it->second.packageInfo.packageIdentifier.uid) == userId) { in removeStatsForUser()
806 return uniquePackageIdStr(packageInfo.packageIdentifier); in id()
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSchemaVisibilityConfig.java186 public Builder addAllowedPackage(@NonNull PackageIdentifier packageIdentifier) { in addAllowedPackage() argument
187 Objects.requireNonNull(packageIdentifier); in addAllowedPackage()
189 mAllowedPackages.add(packageIdentifier.getPackageIdentifierParcel()); in addAllowedPackage()
260 @Nullable PackageIdentifier packageIdentifier) { in setPubliclyVisibleTargetPackage()
262 if (packageIdentifier == null) { in setPubliclyVisibleTargetPackage()
265 mPubliclyVisibleTargetPackage = packageIdentifier.getPackageIdentifierParcel(); in setPubliclyVisibleTargetPackage()
DInternalVisibilityConfig.java74 for (PackageIdentifier packageIdentifier : visibleToPackages) { in toInternalVisibilityConfigs()
75 builder.addVisibleToPackage(packageIdentifier); in toInternalVisibilityConfigs()
265 public Builder addVisibleToPackage(@NonNull PackageIdentifier packageIdentifier) { in addVisibleToPackage() argument
267 mVisibilityConfigBuilder.addAllowedPackage(packageIdentifier); in addVisibleToPackage()
321 @Nullable PackageIdentifier packageIdentifier) { in setPubliclyVisibleTargetPackage()
323 mVisibilityConfigBuilder.setPubliclyVisibleTargetPackage(packageIdentifier); in setPubliclyVisibleTargetPackage()
DSetSchemaRequest.java502 @NonNull PackageIdentifier packageIdentifier) { in setSchemaTypeVisibilityForPackage() argument
504 Objects.requireNonNull(packageIdentifier); in setSchemaTypeVisibilityForPackage()
512 packageIdentifiers.add(packageIdentifier); in setSchemaTypeVisibilityForPackage()
519 packageIdentifiers.remove(packageIdentifier); in setSchemaTypeVisibilityForPackage()
557 @NonNull String schema, @Nullable PackageIdentifier packageIdentifier) { in setPubliclyVisibleSchema() argument
562 if (packageIdentifier == null || packageIdentifier.getPackageName().isEmpty()) { in setPubliclyVisibleSchema()
567 mPubliclyVisibleSchemas.put(schema, packageIdentifier); in setPubliclyVisibleSchema()
DGetSchemaResponse.java391 for (PackageIdentifier packageIdentifier : packageIdentifiers) { in setSchemaTypeVisibleToPackages()
392 visibilityConfigBuilder.addVisibleToPackage(packageIdentifier); in setSchemaTypeVisibleToPackages()
462 @NonNull String schemaType, @NonNull PackageIdentifier packageIdentifier) { in setPubliclyVisibleSchema() argument
464 Objects.requireNonNull(packageIdentifier); in setPubliclyVisibleSchema()
468 visibilityConfigBuilder.setPubliclyVisibleTargetPackage(packageIdentifier); in setPubliclyVisibleSchema()
/packages/services/Car/cpp/watchdog/server/tests/
DUidStatsCollectorTest.cpp452 if (stats.packageInfo.packageIdentifier.uid == 1001234) { in TEST_F()
455 } else if (stats.packageInfo.packageIdentifier.uid == 1005678) { in TEST_F()
458 FAIL() << "Unexpected uid " << stats.packageInfo.packageIdentifier.uid; in TEST_F()
481 if (stats.packageInfo.packageIdentifier.uid == 1001234) { in TEST_F()
484 } else if (stats.packageInfo.packageIdentifier.uid == 1005678) { in TEST_F()
488 FAIL() << "Unexpected uid " << stats.packageInfo.packageIdentifier.uid; in TEST_F()
510 EXPECT_EQ(stats.uid(), static_cast<uid_t>(stats.packageInfo.packageIdentifier.uid)); in TEST_F()
DPackageInfoTestUtils.cpp33 packageInfo.packageIdentifier.name = packageName; in constructPackageInfo()
34 packageInfo.packageIdentifier.uid = uid; in constructPackageInfo()
DPackageInfoTestUtils.h59 return ::testing::Value(actual.packageIdentifier,
60 PackageIdentifierEq(expected.packageIdentifier)) &&
DMockIoOveruseConfigs.h81 const std::string packageName = packageInfo.packageIdentifier.name; in injectPackageConfigs()
93 const std::string packageName = packageInfo.packageIdentifier.name; in injectPackageConfigs()
/packages/modules/AdServices/adservices/tests/cts/hosttests/app/src/com/android/adservices/cts/
DAppSearchDaoWriter.java91 for (PackageIdentifier packageIdentifier : mPackageIdentifiers) { in writeData()
93 doc.getClass().getSimpleName(), true, packageIdentifier); in writeData() local
/packages/services/Car/service/src/com/android/car/watchdog/
DPackageInfoHandler.java221 packageInfo.packageIdentifier = new PackageIdentifier(); in getPackageInfo()
222 packageInfo.packageIdentifier.uid = uid; in getPackageInfo()
223 packageInfo.packageIdentifier.name = genericPackageName; in getPackageInfo()
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/current/android/automotive/watchdog/internal/
DUidResourceUsageStats.aidl36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
DPackageInfo.aidl36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/
DUidResourceUsageStats.aidl36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
DPackageInfo.aidl36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/
DUidResourceUsageStats.aidl31 PackageIdentifier packageIdentifier;
DPackageInfo.aidl31 PackageIdentifier packageIdentifier;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/
DPackageInfo.aidl36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/
DPackageInfo.aidl36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/
DAppSearchDao.java235 for (PackageIdentifier packageIdentifier : packageIdentifiers) { in writeData()
237 getClass().getSimpleName(), true, packageIdentifier); in writeData() local

12