Home
last modified time | relevance | path

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

12

/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DSocketStream.cpp99 ssize_t stat = ::send(m_sock, (const char *)buffer + (size - res), res, 0); in writeFully() local
100 if (stat < 0) { in writeFully()
102 retval = stat; in writeFully()
107 res -= stat; in writeFully()
121 ssize_t stat = ::recv(m_sock, (char *)(buf) + len - res, res, 0); in readFully() local
122 if (stat > 0) { in readFully()
123 res -= stat; in readFully()
126 if (stat == 0 || errno != EINTR) { // client shutdown or error in readFully()
/device/google/cuttlefish/common/libs/utils/
Dfiles.cpp36 struct stat st; in FileExists()
37 return stat(path.c_str(), &st) == 0; in FileExists()
45 struct stat st; in DirectoryExists()
46 if (stat(path.c_str(), &st) == -1) { in DirectoryExists()
98 struct stat st; in FileSize()
99 if (stat(path.c_str(), &st) == -1) { in FileSize()
107 struct stat st; in FileModificationTime()
108 if (stat(path.c_str(), &st) == -1) { in FileModificationTime()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DProcessPipe.cpp147 ssize_t stat = 0; in sQemuPipeInit() local
149 stat = in sQemuPipeInit()
152 } while (stat < 0 && errno == EINTR); in sQemuPipeInit()
154 if (stat != sizeof(confirmInt)) { // failed in sQemuPipeInit()
163 stat = in sQemuPipeInit()
166 } while (stat < 0 && (errno == EINTR || errno == EAGAIN)); in sQemuPipeInit()
168 if (stat != sizeof(sProcUID)) { in sQemuPipeInit()
DVirtioGpuPipeStream.cpp220 ssize_t stat = transferToHost((const char *)(buf) + (len - res), res); in writeFully() local
221 if (stat > 0) { in writeFully()
222 res -= stat; in writeFully()
225 if (stat == 0) { /* EOF */ in writeFully()
233 retval = stat; in writeFully()
259 ssize_t stat = transferFromHost((char *)(buf) + len - res, res); in readFully() local
260 if (stat == 0) { in readFully()
263 } else if (stat < 0) { in readFully()
273 res -= stat; in readFully()
/device/google/bonito/gpt-utils/
Dgpt-utils.cpp662 struct stat st; in gpt_utils_set_xbl_boot_partition()
670 if (!stat(XBL_BACKUP, &st)) in gpt_utils_set_xbl_boot_partition()
672 else if (!stat(XBL_AB_SECONDARY, &st)) in gpt_utils_set_xbl_boot_partition()
681 if (!stat(XBL_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
683 else if (!stat(XBL_AB_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
696 if((stat(XBL_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
697 stat(XBL_BACKUP, &st)) && in gpt_utils_set_xbl_boot_partition()
698 (stat(XBL_AB_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
699 stat(XBL_AB_SECONDARY, &st))) { in gpt_utils_set_xbl_boot_partition()
749 struct stat xbl_partition_stat; in prepare_partitions()
[all …]
/device/google/coral/gpt-utils/
Dgpt-utils.cpp662 struct stat st; in gpt_utils_set_xbl_boot_partition()
670 if (!stat(XBL_BACKUP, &st)) in gpt_utils_set_xbl_boot_partition()
672 else if (!stat(XBL_AB_SECONDARY, &st)) in gpt_utils_set_xbl_boot_partition()
681 if (!stat(XBL_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
683 else if (!stat(XBL_AB_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
696 if((stat(XBL_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
697 stat(XBL_BACKUP, &st)) && in gpt_utils_set_xbl_boot_partition()
698 (stat(XBL_AB_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
699 stat(XBL_AB_SECONDARY, &st))) { in gpt_utils_set_xbl_boot_partition()
749 struct stat xbl_partition_stat; in prepare_partitions()
[all …]
/device/google/crosshatch/gpt-utils/
Dgpt-utils.cpp662 struct stat st; in gpt_utils_set_xbl_boot_partition()
670 if (!stat(XBL_BACKUP, &st)) in gpt_utils_set_xbl_boot_partition()
672 else if (!stat(XBL_AB_SECONDARY, &st)) in gpt_utils_set_xbl_boot_partition()
681 if (!stat(XBL_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
683 else if (!stat(XBL_AB_PRIMARY, &st)) in gpt_utils_set_xbl_boot_partition()
696 if((stat(XBL_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
697 stat(XBL_BACKUP, &st)) && in gpt_utils_set_xbl_boot_partition()
698 (stat(XBL_AB_PRIMARY, &st) || in gpt_utils_set_xbl_boot_partition()
699 stat(XBL_AB_SECONDARY, &st))) { in gpt_utils_set_xbl_boot_partition()
749 struct stat xbl_partition_stat; in prepare_partitions()
[all …]
/device/generic/goldfish-opengl/host/include/libOpenglRender/
DIOStream.h80 int stat = commitBuffer(m_bufsize - m_free); in flush() local
83 return stat; in flush()
/device/google/bonito/json-c/
Drandom_seed.c140 struct stat buf; in has_dev_urandom()
141 if (stat(dev_random_file, &buf)) { in has_dev_urandom()
/device/google/crosshatch/json-c/
Drandom_seed.c140 struct stat buf; in has_dev_urandom()
141 if (stat(dev_random_file, &buf)) { in has_dev_urandom()
/device/google/coral/json-c/
Drandom_seed.c140 struct stat buf; in has_dev_urandom()
141 if (stat(dev_random_file, &buf)) { in has_dev_urandom()
/device/linaro/hikey/installer/hikey960/
Dmkdtimg17 from os import fstat, stat, remove
42 statval = stat(filename)
115 dtb_size = stat(out_dtb).st_size
/device/generic/goldfish/tools/
Dextract_ext4_image.sh13 disksize=$(stat -c %s $srcimg)
Dextract_head_tail.sh14 disksize=$(stat -c %s $srcimg)
Dmk_qemu_image.sh35 curdisksize=$(stat -c %s $target)
/device/google/bonito-sepolicy/vendor/google/
Dperfstatsd.te11 #read /proc/<pid>/stat
/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/crosshatch-sepolicy/vendor/qcom/common/
Deasel.te21 # access "/proc/stat"
/device/google/cuttlefish_vmm/x86_64-linux-gnu/etc/seccomp/
Dtpm_device.policy55 stat: 1
D9p_device.policy51 stat: 1
Dxhci.policy61 stat: 1
/device/google/bonito-sepolicy/vendor/qcom/common/
Deasel.te21 # access "/proc/stat"
/device/google/coral-sepolicy/vendor/google/
Dairbrush.te22 # Allow Airbrush to stat the IPU/TPU devices.
/device/google/wahoo/sepolicy/vendor/
Dthermal-engine.te20 # to read /proc/stat

12