Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 85) sorted by relevance

1234

/device/google/sunfish/gpt-utils/
Dgpt-utils.cpp669 struct stat st; in gpt_utils_set_xbl_boot_partition()
677 if (!stat(XBL_BACKUP, &st)) in gpt_utils_set_xbl_boot_partition()
679 else if (!stat(XBL_AB_SECONDARY, &st)) in gpt_utils_set_xbl_boot_partition()
688 if (!stat(XBL_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
690 else if (!stat(XBL_AB_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
703 if((stat(XBL_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
704 stat(XBL_BACKUP, &st)) && in gpt_utils_set_xbl_boot_partition()
705 (stat(XBL_AB_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
706 stat(XBL_AB_SECONDARY, &st))) { in gpt_utils_set_xbl_boot_partition()
756 struct stat xbl_partition_stat; in prepare_partitions()
[all …]
/device/google/coral/gpt-utils/
Dgpt-utils.cpp669 struct stat st; in gpt_utils_set_xbl_boot_partition()
677 if (!stat(XBL_BACKUP, &st)) in gpt_utils_set_xbl_boot_partition()
679 else if (!stat(XBL_AB_SECONDARY, &st)) in gpt_utils_set_xbl_boot_partition()
688 if (!stat(XBL_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
690 else if (!stat(XBL_AB_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
703 if((stat(XBL_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
704 stat(XBL_BACKUP, &st)) && in gpt_utils_set_xbl_boot_partition()
705 (stat(XBL_AB_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
706 stat(XBL_AB_SECONDARY, &st))) { in gpt_utils_set_xbl_boot_partition()
756 struct stat xbl_partition_stat; in prepare_partitions()
[all …]
/device/google/redbull/gpt-utils/
Dgpt-utils.cpp669 struct stat st; in gpt_utils_set_xbl_boot_partition()
677 if (!stat(XBL_BACKUP, &st)) in gpt_utils_set_xbl_boot_partition()
679 else if (!stat(XBL_AB_SECONDARY, &st)) in gpt_utils_set_xbl_boot_partition()
688 if (!stat(XBL_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
690 else if (!stat(XBL_AB_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
703 if((stat(XBL_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
704 stat(XBL_BACKUP, &st)) && in gpt_utils_set_xbl_boot_partition()
705 (stat(XBL_AB_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
706 stat(XBL_AB_SECONDARY, &st))) { in gpt_utils_set_xbl_boot_partition()
756 struct stat xbl_partition_stat; in prepare_partitions()
[all …]
/device/google/cuttlefish/common/libs/utils/
Dfiles.cpp81 struct stat st {}; in FileExists()
82 return (follow_symlinks ? stat : lstat)(path.c_str(), &st) == 0; in FileExists()
86 struct stat out; in FileDeviceId()
88 stat(path.c_str(), &out) == 0, in FileDeviceId()
102 struct stat out; in FileInodeNumber()
104 stat(path.c_str(), &out) == 0, in FileInodeNumber()
161 struct stat st {}; in DirectoryExists()
162 if ((follow_symlinks ? stat : lstat)(path.c_str(), &st) == -1) { in DirectoryExists()
247 auto callback = [](const char* child, const struct stat*, int file_type, in RecursivelyRemoveDirectory()
390 struct stat st {}; in FileSize()
[all …]
/device/google/pantah/powerstats/panther/
Dservice.cpp37 struct stat buffer; in addDisplay()
38 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
68 struct stat buffer; in main()
80 if (!stat("/sys/devices/platform/10970000.hsi2c/i2c-8/8-0008/power_stats", &buffer)) { in main()
/device/google/bluejay/powerstats/bluejay/
Dservice.cpp37 struct stat buffer; in addDisplay()
38 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
65 struct stat buffer; in main()
76 if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats", &buffer)) { in main()
/device/google/raviole/powerstats/oriole/
Dservice.cpp44 struct stat buffer; in addDisplay()
45 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
86 struct stat buffer; in main()
97 if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats", &buffer)) { in main()
/device/google/coral/pwrstats_util/
DCstateResidencyDataProvider.cpp30 int CstateResidencyDataProvider::getImpl(PowerStatistic* stat) const { in getImpl()
38 auto residencies = stat->mutable_c_state_residency(); in getImpl()
87 void CstateResidencyDataProvider::dumpImpl(const PowerStatistic& stat, in dumpImpl() argument
90 StateResidencyDump(stat.c_state_residency().residency(), output); in dumpImpl()
DCstateResidencyDataProvider.h31 int getImpl(PowerStatistic* stat) const override;
33 void dumpImpl(const PowerStatistic& stat, std::ostream* output) const override;
/device/google/lynx/powerstats/
Dservice.cpp39 struct stat buffer; in addDisplay()
40 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
100 struct stat buffer; in main()
120 if (!stat("/sys/devices/platform/10970000.hsi2c/i2c-8/8-0008/power_stats", &buffer)) { in main()
/device/google/pantah/powerstats/cheetah/
Dservice.cpp39 struct stat buffer; in addDisplay()
40 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
117 struct stat buffer; in main()
130 if (!stat("/sys/devices/platform/10970000.hsi2c/i2c-8/8-0008/power_stats", &buffer)) { in main()
/device/google/raviole/powerstats/raven/
Dservice.cpp46 struct stat buffer; in addDisplay()
47 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
128 struct stat buffer; in main()
139 if (!stat("/sys/devices/platform/10960000.hsi2c/i2c-7/7-0008/power_stats", &buffer)) { in main()
/device/google/cuttlefish/host/libs/command_util/
Dsnapshot_utils.cc39 bool IsFifo(const struct stat& file_stat) { in IsFifo()
43 bool IsSocket(const struct stat& file_stat) { in IsSocket()
47 bool IsSymlink(const struct stat& file_stat) { in IsSymlink()
51 bool IsRegular(const struct stat& file_stat) { in IsRegular()
82 struct stat src_stat; in CopyDirectoryImpl()
/device/google/felix/powerstats/felix/
Dservice.cpp41 struct stat primaryBuffer; in addDisplay()
42 if (!stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &primaryBuffer)) { in addDisplay()
65 struct stat secondaryBuffer; in addDisplay()
66 if (!stat("/sys/class/drm/card0/device/secondary-panel/time_in_state", &secondaryBuffer)) { in addDisplay()
/device/generic/goldfish/sepolicy/vendor/
Dgenfs_contexts39 genfscon sysfs /devices/platform/a003600.virtio_mmio/virtio2/block/vda/stat u:object_r:sysfs_virtio…
40 genfscon sysfs /devices/platform/a003600.virtio_mmio/virtio2/block/vda/vda1/stat u:object_r:sysfs_v…
41 genfscon sysfs /devices/platform/a003600.virtio_mmio/virtio2/block/vda/vda2/stat u:object_r:sysfs_v…
42 genfscon sysfs /devices/platform/a003800.virtio_mmio/virtio3/block/vdb/stat u:object_r:sysfs_virtio…
43 genfscon sysfs /devices/platform/a003a00.virtio_mmio/virtio4/block/vdc/stat u:object_r:sysfs_virtio…
44 genfscon sysfs /devices/platform/a003c00.virtio_mmio/virtio5/block/vdd/stat u:object_r:sysfs_virtio…
45 genfscon sysfs /devices/platform/a003c00.virtio_mmio/virtio5/block/vdd/vdd1/stat u:object_r:sysfs_v…
46 genfscon sysfs /devices/platform/a003e00.virtio_mmio/virtio6/block/vde/stat u:object_r:sysfs_virtio…
47 genfscon sysfs /devices/platform/a003e00.virtio_mmio/virtio6/block/vde/vde1/stat u:object_r:sysfs_v…
/device/google/contexthub/firmware/os/core/
Dseos.c866 struct MgmtStatus stat = { .value = 0 }; in osExtAppStopEraseApps() local
888 SET_COUNTER(stat.app, appCount); in osExtAppStopEraseApps()
889 SET_COUNTER(stat.task, taskCount); in osExtAppStopEraseApps()
890 SET_COUNTER(stat.op, stopCount); in osExtAppStopEraseApps()
891 SET_COUNTER(stat.erase, eraseCount); in osExtAppStopEraseApps()
893 return stat.value; in osExtAppStopEraseApps()
940 struct MgmtStatus stat = { .value = 0 }; in osExtAppStartApps() local
972 SET_COUNTER(stat.app, appCount); in osExtAppStartApps()
973 SET_COUNTER(stat.task, taskCount); in osExtAppStartApps()
974 SET_COUNTER(stat.op, startCount); in osExtAppStartApps()
[all …]
DnanohubCommand.c1335 …ponse(struct NanohubHalAppMgmtRx *req, uint32_t status, struct MgmtStatus stat, uint32_t transacti… in halSendAppMgmtResponse() argument
1351 resp->stat = stat; in halSendAppMgmtResponse()
1359 struct MgmtStatus stat; in halAppMgmt() local
1364 stat.value= osExtAppStartAppsByAppId(le64toh(unaligned_u64(&req->appId))); in halAppMgmt()
1365 ret = stat.op > 0 ? 0 : -1; in halAppMgmt()
1368 stat.value = osExtAppStopAppsByAppId(le64toh(unaligned_u64(&req->appId))); in halAppMgmt()
1369 ret = stat.op > 0 ? 0 : -1; in halAppMgmt()
1372 stat.value = osExtAppStopAppsByAppId(le64toh(unaligned_u64(&req->appId))); in halAppMgmt()
1373 ret = stat.op > 0 ? 0 : -1; in halAppMgmt()
1376 stat.value = osExtAppEraseAppsByAppId(le64toh(unaligned_u64(&req->appId))); in halAppMgmt()
[all …]
/device/google/cuttlefish/host/commands/assemble_cvd/
Dclean.cc42 struct stat statbuf; in CleanPriorFiles()
87 struct stat statbuf; in CleanPriorFiles()
88 if (stat(path.c_str(), &statbuf) < 0) { in CleanPriorFiles()
/device/google/trout/hal/sensors/2.1/
Diio_utils.cpp80 struct stat sb; in sysfs_opendir()
81 if (stat(name.c_str(), &sb) == -1) { in sysfs_opendir()
144 struct stat info; in check_file()
145 return stat(filename.c_str(), &info); in check_file()
/device/google/trout/vport_trigger/
Dmain.cpp50 struct stat st; in main()
51 if (stat(sysfs.c_str(), &st)) { in main()
/device/generic/goldfish/wifi/wifi_hal/
Dinfo.cpp30 struct stat ignored_statbuf; in Info()
31 if (stat(test_path.c_str(), &ignored_statbuf) == 0) { in Info()
/device/google/shusky/powerstats/husky/
Dservice.cpp37 struct stat buffer; in addDisplay()
38 if (stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
/device/google/pantah/powerstats/ravenclaw/
Dservice.cpp65 struct stat buffer; in main()
77 if (!stat("/sys/devices/platform/10970000.hsi2c/i2c-8/8-0008/power_stats", &buffer)) { in main()
/device/google/shusky/powerstats/shiba/
Dservice.cpp37 struct stat buffer; in addDisplay()
38 if (stat("/sys/class/drm/card0/device/primary-panel/time_in_state", &buffer)) { in addDisplay()
/device/google/comet/powerstats/comet/
Dservice.cpp37 struct stat secondaryBuffer; in addOuterDisplay()
38 if (!stat("/sys/class/drm/card0/device/secondary-panel/time_in_state", &secondaryBuffer)) { in addOuterDisplay()

1234