/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/visibilitystore/ |
D | VisibilityDocumentV1.java | 171 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()
|
D | VisibilityToDocumentConverter.java | 456 @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/ |
D | UidStatsCollector.cpp | 34 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()
|
D | PackageInfoResolver.cpp | 86 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()
|
D | IoOveruseConfigs.cpp | 689 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()
|
D | IoOveruseMonitor.cpp | 330 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/ |
D | SchemaVisibilityConfig.java | 186 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()
|
D | InternalVisibilityConfig.java | 74 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()
|
D | SetSchemaRequest.java | 502 @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()
|
D | GetSchemaResponse.java | 391 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/ |
D | UidStatsCollectorTest.cpp | 452 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()
|
D | PackageInfoTestUtils.cpp | 33 packageInfo.packageIdentifier.name = packageName; in constructPackageInfo() 34 packageInfo.packageIdentifier.uid = uid; in constructPackageInfo()
|
D | PackageInfoTestUtils.h | 59 return ::testing::Value(actual.packageIdentifier, 60 PackageIdentifierEq(expected.packageIdentifier)) &&
|
D | MockIoOveruseConfigs.h | 81 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/ |
D | AppSearchDaoWriter.java | 91 for (PackageIdentifier packageIdentifier : mPackageIdentifiers) { in writeData() 93 doc.getClass().getSimpleName(), true, packageIdentifier); in writeData() local
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 221 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/ |
D | UidResourceUsageStats.aidl | 36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
|
D | PackageInfo.aidl | 36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/3/android/automotive/watchdog/internal/ |
D | UidResourceUsageStats.aidl | 36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
|
D | PackageInfo.aidl | 36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
|
/packages/services/Car/cpp/watchdog/aidl/android/automotive/watchdog/internal/ |
D | UidResourceUsageStats.aidl | 31 PackageIdentifier packageIdentifier;
|
D | PackageInfo.aidl | 31 PackageIdentifier packageIdentifier;
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/1/android/automotive/watchdog/internal/ |
D | PackageInfo.aidl | 36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
|
/packages/services/Car/cpp/watchdog/aidl/aidl_api/android.automotive.watchdog.internal/2/android/automotive/watchdog/internal/ |
D | PackageInfo.aidl | 36 android.automotive.watchdog.internal.PackageIdentifier packageIdentifier;
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/appsearch/ |
D | AppSearchDao.java | 235 for (PackageIdentifier packageIdentifier : packageIdentifiers) { in writeData() 237 getClass().getSimpleName(), true, packageIdentifier); in writeData() local
|