Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 18 of 18) sorted by relevance

/system/apex/tests/app/src/com/android/tests/apex/app/
DApexCompressionTests.java75 PackageInfo pi = mPm.getPackageInfo( in testDecompressedApexIsConsideredFactory() local
77 assertThat(pi).isNotNull(); in testDecompressedApexIsConsideredFactory()
78 assertThat(pi.isApex).isTrue(); in testDecompressedApexIsConsideredFactory()
79 assertThat(pi.packageName).isEqualTo(COMPRESSED_APEX_PACKAGE_NAME); in testDecompressedApexIsConsideredFactory()
80 assertThat(pi.getLongVersionCode()).isEqualTo(1); in testDecompressedApexIsConsideredFactory()
81 boolean isFactoryPackage = (pi.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0; in testDecompressedApexIsConsideredFactory()
99 PackageInfo pi = mPm.getPackageInfo( in testCapexToApexSwitch() local
101 assertThat(pi).isNotNull(); in testCapexToApexSwitch()
102 assertThat(pi.isApex).isTrue(); in testCapexToApexSwitch()
103 assertThat(pi.packageName).isEqualTo(COMPRESSED_APEX_PACKAGE_NAME); in testCapexToApexSwitch()
[all …]
DApkInApexTests.java61 PackageInfo pi = mPm.getPackageInfo("com.android.apex.product.app.test", in testPrivPermissionIsGranted() local
63 assertThat(pi.requestedPermissions).asList() in testPrivPermissionIsGranted()
66 pi = mPm.getPackageInfo("com.android.apex.system.app.test", in testPrivPermissionIsGranted()
68 assertThat(pi.requestedPermissions).asList() in testPrivPermissionIsGranted()
71 pi = mPm.getPackageInfo("com.android.apex.system_ext.app.test", in testPrivPermissionIsGranted()
73 assertThat(pi.requestedPermissions).asList() in testPrivPermissionIsGranted()
76 pi = mPm.getPackageInfo("com.android.apex.vendor.app.test", in testPrivPermissionIsGranted()
79 assertThat(pi.requestedPermissions).asList() in testPrivPermissionIsGranted()
DMaxSdkTests.java48 PackageInfo pi = mPm.getPackageInfo(APP_NO_MAX_SDK, 0); in testApkInApexIsAvailable() local
49 assertThat(pi).isNotNull(); in testApkInApexIsAvailable()
54 PackageInfo pi = mPm.getPackageInfo(APP_MAX_SDK_10K, 0); in testAppWithMaxSdk10KIsAvailable() local
55 assertThat(pi).isNotNull(); in testAppWithMaxSdk10KIsAvailable()
68 PackageInfo pi = mPm.getPackageInfo(REGULAR_APP_WITH_MAX_SDK, 0); in testRegularAppIsAvailable() local
69 assertThat(pi).isNotNull(); in testRegularAppIsAvailable()
/system/core/fastboot/
Dfs.cpp41 PROCESS_INFORMATION pi; in exec_cmd() local
46 ZeroMemory(&pi, sizeof(pi)); in exec_cmd()
65 &pi) // Pointer to PROCESS_INFORMATION structure in exec_cmd()
72 WaitForSingleObject(pi.hProcess, INFINITE); in exec_cmd()
74 GetExitCodeProcess(pi.hProcess, &exit_code); in exec_cmd()
76 CloseHandle(pi.hProcess); in exec_cmd()
77 CloseHandle(pi.hThread); in exec_cmd()
/system/libbase/
Dproperties.cpp112 const prop_info* pi = __system_property_find(key.c_str()); in GetProperty() local
113 if (pi == nullptr) return default_value; in GetProperty()
115 __system_property_read_callback(pi, in GetProperty()
184 const prop_info* pi; in WaitForPropertyCreation() local
186 while ((pi = __system_property_find(key.c_str())) == nullptr) { in WaitForPropertyCreation()
193 return pi; in WaitForPropertyCreation()
199 const prop_info* pi = WaitForPropertyCreation(key, relative_timeout, start_time); in WaitForProperty() local
200 if (pi == nullptr) return false; in WaitForProperty()
208 __system_property_read_callback(pi, WaitForPropertyCallback, &data); in WaitForProperty()
214 if (!__system_property_wait(pi, data.last_read_serial, &unused, &ts)) return false; in WaitForProperty()
/system/extras/simpleperf/
Dcommand.cpp34 bool Command::NextArgumentOrError(const std::vector<std::string>& args, size_t* pi) { in NextArgumentOrError() argument
35 if (*pi + 1 == args.size()) { in NextArgumentOrError()
36 LOG(ERROR) << "No argument following " << args[*pi] << " option. Try `simpleperf help " << name_ in NextArgumentOrError()
40 ++*pi; in NextArgumentOrError()
138 bool Command::GetDoubleOption(const std::vector<std::string>& args, size_t* pi, double* value, in GetDoubleOption() argument
140 if (!NextArgumentOrError(args, pi)) { in GetDoubleOption()
143 if (!android::base::ParseDouble(args[*pi].c_str(), value, min, max)) { in GetDoubleOption()
144 LOG(ERROR) << "Invalid argument for option " << args[*pi - 1] << ": " << args[*pi]; in GetDoubleOption()
Dcommand.h185 bool GetUintOption(const std::vector<std::string>& args, size_t* pi, T* value, uint64_t min = 0,
187 if (!NextArgumentOrError(args, pi)) {
191 if (!android::base::ParseUint(args[*pi], &tmp_value, max, allow_suffixes) || tmp_value < min) {
192 LOG(ERROR) << "Invalid argument for option " << args[*pi - 1] << ": " << args[*pi];
199 bool GetDoubleOption(const std::vector<std::string>& args, size_t* pi, double* value,
203 bool NextArgumentOrError(const std::vector<std::string>& args, size_t* pi);
/system/extras/checkpoint_gc/
Dcheckpoint_gc.sh58 log -pi -t checkpoint_gc Turning on GC for userdata
68 || { GC_TYPE=1; log -pi -t checkpoint_gc GC_URGENT_MID not supported, using GC_URGENT_HIGH; }
83 …log -pi -t checkpoint_gc ${METRIC}:${CURRENT} \(threshold:${THRESHOLD}\) mode:${GC_TYPE} GC_SLEEP:…
111 log -pi -t checkpoint_gc Leaving on GC_URGENT_LOW for userdata
/system/libvintf/include/vintf/
DVndk.h33 VndkVersionRange(size_t s, size_t v, size_t pi, size_t pa) in VndkVersionRange()
34 : sdk(s), vndk(v), patchMin(pi), patchMax(pa) {} in VndkVersionRange()
/system/core/libcutils/
Dproperties.cpp109 static void property_list_callback(const prop_info* pi, void* data) { in property_list_callback() argument
110 __system_property_read_callback(pi, trampoline, data); in property_list_callback()
/system/core/toolbox/
Dgetprop.cpp41 [](const prop_info* pi, void* cookie) { in PrintAllProperties() argument
43 pi, in PrintAllProperties()
/system/libufdt/sysdeps/
Dlibufdt_sysdeps_vendor.c65 TYPE *pi = (TYPE *)(parmi); \
68 TYPE t = *pi; \
69 *pi++ = *pj; \
/system/core/init/
Dpersistent_properties.cpp128 [](const prop_info* pi, void* cookie) { in LoadPersistentPropertiesFromMemory() argument
130 pi, in LoadPersistentPropertiesFromMemory()
Dproperty_service.cpp397 prop_info* pi = (prop_info*)__system_property_find(name.c_str()); in PropertySet() local
398 if (pi != nullptr) { in PropertySet()
405 __system_property_update(pi, value.c_str(), valuelen); in PropertySet()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp91 const prop_info* pi = __system_property_find(name); in property_parse_bool() local
92 if (!pi) return false; in property_parse_bool()
95 pi, in property_parse_bool()
/system/chre/external/kiss_fft/
Dkiss_fft.c366 const double pi=3.141592653589793238462643383279502884197169399375105820974944; in kiss_fft_alloc() local
367 double phase = -2*pi*i / nfft; in kiss_fft_alloc()
/system/extras/simpleperf/scripts/purgatorio/
Dpurgatorio.py79 graph.xaxis.major_label_orientation = math.pi/6
/system/logging/logcat/
Devent.logtags43 314 pi