Home
last modified time | relevance | path

Searched refs:package_name (Results 1 – 25 of 54) sorted by relevance

123

/system/extras/simpleperf/
Dcmd_api_test.cpp31 static bool WaitUntilAppExit(const std::string& package_name) { in WaitUntilAppExit() argument
41 if (s.find(package_name) == std::string::npos) { in WaitUntilAppExit()
62 static void RecordApp(const std::string& package_name, const std::string& apk_path) { in RecordApp() argument
65 ASSERT_TRUE(app_helper.InstallApk(apk_path, package_name)); in RecordApp()
68 ASSERT_TRUE(CreateCommandInstance("api-prepare")->Run({"--app", package_name, "--days", "1"})); in RecordApp()
71 ASSERT_TRUE(app_helper.StartApp("am start " + package_name + "/.MainActivity")); in RecordApp()
75 ASSERT_TRUE(WaitUntilAppExit(package_name)); in RecordApp()
81 CreateCommandInstance("api-collect")->Run({"--app", package_name, "-o", tmpfile.path})); in RecordApp()
/system/extras/simpleperf/scripts/test/
Dapi_profiler_test.py26 def run_api_test(self, package_name, apk_name, expected_reports, min_android_version: int): argument
33 adb.run(['uninstall', package_name])
38 self.run_cmd(['api_profiler.py', 'prepare', '-p', package_name, '-d', '1'])
42 adb.check_run(['shell', 'am', 'start', '-n', package_name + '/.MainActivity'])
46 result = adb.run(['shell', 'pidof', package_name])
52 self.run_cmd(['api_profiler.py', 'collect', '-p', package_name, '-o', 'simpleperf_data'])
62 adb.check_run(['uninstall', package_name])
Djava_app_test.py47 self.adb.check_run(['shell', 'am', 'force-stop', self.package_name])
49 self.package_name + '/.MultiProcessActivity'])
59 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
62 "--app", self.package_name, "-r", "--duration 10000", "--disable_adb_root"]
74 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
77 '--app', self.package_name, '-r', '--duration 10000', '--disable_adb_root']
82 self.adb.check_run(['shell', 'am', 'force-stop', self.package_name])
89 self.run_cmd(['app_profiler.py', '--app', self.package_name, '-a', self.activity_name,
100 self.adb.check_run(['shell', 'am', 'start', '-n', self.package_name + '/.MainActivity'])
153 self.run_cmd(['app_profiler.py', '--app', self.package_name,
[all …]
Dapp_test.py33 def prepare(cls, example_name, package_name, activity_name, abi=None, adb_root=False, argument
43 cls.package_name = package_name
62 cls.adb.check_run(["uninstall", cls.package_name])
92 args = ['app_profiler.py', '--app', self.package_name, '-r', record_arg, '-o', 'perf.data']
210 self.run_cmd([INFERNO_SCRIPT, "-p", self.package_name, "-t", "3"] + append_args)
212 self.run_cmd([INFERNO_SCRIPT, "-p", self.package_name, "-f", "1000", "-du", "-t", "1"] +
214 self.run_cmd([INFERNO_SCRIPT, "-p", self.package_name, "-e", "100000 cpu-cycles",
240 def install_apk(self, apk_path, package_name): argument
241 self.adb.run(['uninstall', package_name])
243 self.installed_packages.append(package_name)
[all …]
/system/tools/xsdc/tests/resources/simple_type/
DAndroid.bp9 package_name: "simple.type",
18 package_name: "simple.type",
28 package_name: "simple.type",
38 package_name: "simple.type",
49 package_name: "simple.type",
59 package_name: "simple.type",
/system/server_configurable_flags/aconfigd/
Dstorage_files_manager.cpp102 auto has_flag = (**storage_files).HasFlag(entry.package_name(), entry.flag_name()); in UpdateStorageFiles()
103 RETURN_IF_ERROR(has_flag, "Failed to check if has flag for " + entry.package_name() in UpdateStorageFiles()
107 entry.package_name(), entry.flag_name()); in UpdateStorageFiles()
109 entry.package_name() + "/" + entry.flag_name()); in UpdateStorageFiles()
115 new_override->set_package_name(entry.package_name()); in UpdateStorageFiles()
124 auto has_flag = (**storage_files).HasFlag(entry.package_name, entry.flag_name); in UpdateStorageFiles()
125 RETURN_IF_ERROR(has_flag, "Failed to check if has flag for " + entry.package_name in UpdateStorageFiles()
129 entry.package_name, entry.flag_name); in UpdateStorageFiles()
131 entry.package_name + "/" + entry.flag_name); in UpdateStorageFiles()
266 const std::string& package_name, in UpdateFlagValue() argument
[all …]
Daconfigd.proto35 optional string package_name = 1; field
56 optional string package_name = 1; field
71 optional string package_name = 2; field
77 optional string package_name = 1; field
94 string package_name = 3; field
124 optional string package_name = 1; field
Daconfigd.cpp38 auto result = storage_files_manager_->UpdateFlagValue(msg.package_name(), in HandleFlagOverride()
83 auto snapshot = storage_files_manager_->ListFlag(msg.package_name(), msg.flag_name()); in HandleFlagQuery()
86 result_msg->set_package_name(snapshot->package_name); in HandleFlagQuery()
107 msg.package_name(), msg.flag_name()); in HandleLocalOverrideRemoval()
142 flags = storage_files_manager_->ListFlagsInPackage(msg.package_name()); in HandleListStorage()
153 flag_msg->set_package_name(flag.package_name); in HandleListStorage()
195 flag->set_package_name(entry.package_name()); in WriteRemainingOTAOverrides()
363 << "flag override request for " << msg.package_name() << "/" in HandleSocketRequest()
376 LOG(INFO) << "received a flag query request for " << msg.package_name() in HandleSocketRequest()
387 << msg.package_name() << "/" << msg.flag_name(); in HandleSocketRequest()
Dstorage_files.cpp302 auto context = GetPackageFlagContext(entry.package_name(), entry.flag_name()); in ApplyLocalOverrideToBootFlagValue()
334 new_applied->set_package_name(entry.package_name()); in ApplyLocalOverrideToBootFlagValue()
521 if (context.package == entry.package_name() in GetLocalFlagValue()
645 if (entry.package_name() == context.package in SetLocalFlagValue()
730 if (entry.package_name() == context.package in RemoveLocalFlagValue()
735 kept_override->set_package_name(entry.package_name()); in RemoveLocalFlagValue()
762 auto context = GetPackageFlagContext(entry.package_name(), entry.flag_name()); in RemoveAllLocalFlagValue()
764 + entry.package_name() + "/" + entry.flag_name()); in RemoveAllLocalFlagValue()
793 server_override.package_name = std::move(flag.package_name); in GetServerFlagValues()
902 snapshot.package_name = package; in ListFlag()
[all …]
Dstorage_files.h91 PackageFlagContext(const std::string& package_name, in PackageFlagContext()
93 : package(package_name) in PackageFlagContext()
152 std::string package_name; member
168 std::string package_name; member
/system/tools/xsdc/tests/resources/enum_type/
DAndroid.bp8 package_name: "attr.enumtype",
14 package_name: "attr.enumtype",
/system/tools/xsdc/tests/resources/purchase_simple/
DAndroid.bp9 package_name: "purchase.simple",
16 package_name: "purchase.simple",
/system/tools/xsdc/tests/resources/predefined_types/
DAndroid.bp9 package_name: "predefined.types",
16 package_name: "predefined.types",
/system/tools/xsdc/tests/resources/nested_type/
DAndroid.bp9 package_name: "nested.type",
16 package_name: "nested.type",
/system/tools/xsdc/tests/resources/attr_group_simple/
DAndroid.bp9 package_name: "attr.group.simple",
16 package_name: "attr.group.simple",
/system/tools/xsdc/tests/resources/reference/
DAndroid.bp9 package_name: "reference",
17 package_name: "reference",
/system/tools/xsdc/tests/resources/group/
DAndroid.bp10 package_name: "group",
18 package_name: "group",
/system/tools/xsdc/tests/resources/simple_complex_content/
DAndroid.bp9 package_name: "simple.complex.content",
18 package_name: "simple.complex.content",
/system/security/keystore/tests/
Daaid_truncation_test.cpp78 KeyAttestationPackageInfo make_package_info_with_signatures(const char* package_name, in make_package_info_with_signatures() argument
81 pInfo.packageName = String16(package_name); in make_package_info_with_signatures()
88 KeyAttestationPackageInfo make_package_info(const char* package_name) { in make_package_info() argument
89 return make_package_info_with_signatures(package_name, std::vector<Signature>()); in make_package_info()
/system/security/keystore/
Dkeystore_attestation_id.cpp83 ASN1_OCTET_STRING* package_name; member
92 ASN1_SIMPLE(KM_ATTESTATION_PACKAGE_INFO, package_name, ASN1_OCTET_STRING),
162 if (!ASN1_OCTET_STRING_set(attestation_package_info->package_name, in build_attestation_package_info()
213 std::string package_name(String8(pinfo->packageName).c_str()); in build_attestation_application_id() local
220 estimated_encoded_size += AAID_PKG_INFO_OVERHEAD + package_name.size(); in build_attestation_application_id()
/system/core/run-as/
Drun-as.cpp99 static void check_data_path(const char* package_name, const char* data_path, uid_t uid) { in check_data_path() argument
102 error(1, 0, "%s data path not absolute: %s", package_name, data_path); in check_data_path()
119 error(1, 0, "%s data path too long: %s", package_name, data_path); in check_data_path()
127 error(1, 0, "%s contains '..': %s", package_name, data_path); in check_data_path()
/system/apex/apexd/
Dapex_classpath.cpp113 auto package_name = match[1]; in ParseFromFile() local
114 result.AddPackageWithClasspathJars(package_name); in ParseFromFile()
/system/tools/xsdc/tests/resources/cross_generate_parse_libxml/
DAndroid.bp9 package_name: "cross.libxml",
/system/tools/xsdc/tests/resources/cross_generate_parse_tinyxml/
DAndroid.bp9 package_name: "cross.tinyxml",
/system/update_engine/aosp/
Dapex_handler_android_unittest.cc32 ApexInfo CreateApexInfo(const std::string& package_name, in CreateApexInfo() argument
37 result.set_package_name(package_name); in CreateApexInfo()

123