Home
last modified time | relevance | path

Searched refs:st (Results 1 – 25 of 50) sorted by relevance

12

/packages/modules/adb/sysdeps/
Dstat_test.cpp29 struct stat st; in TEST() local
30 ASSERT_EQ(0, stat(td.path, &st)); in TEST()
31 ASSERT_FALSE(S_ISREG(st.st_mode)); in TEST()
32 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); in TEST()
35 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); in TEST()
39 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); in TEST()
46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); in TEST()
[all …]
/packages/modules/adb/client/
Dfile_sync_client.cpp467 bool FinishStat(struct stat* st) { in FinishStat() argument
470 memset(st, 0, sizeof(*st)); in FinishStat()
486 st->st_dev = msg.stat_v2.dev; in FinishStat()
487 st->st_ino = msg.stat_v2.ino; in FinishStat()
488 st->st_mode = msg.stat_v2.mode; in FinishStat()
489 st->st_nlink = msg.stat_v2.nlink; in FinishStat()
490 st->st_uid = msg.stat_v2.uid; in FinishStat()
491 st->st_gid = msg.stat_v2.gid; in FinishStat()
492 st->st_size = msg.stat_v2.size; in FinishStat()
493 st->st_atime = msg.stat_v2.atime; in FinishStat()
[all …]
Dincremental.cpp42 struct stat st; in read_signature() local
43 if (stat(signature_file.c_str(), &st)) { in read_signature()
122 struct stat st; in start_install() local
123 if (stat(file.c_str(), &st)) { in start_install()
130 auto [signature_fd, signature] = read_and_encode_signature(st.st_size, file, silent); in start_install()
136 (long long)st.st_size, i, signature.c_str()); in start_install()
155 struct stat st; in can_install() local
156 if (stat(file.c_str(), &st)) { in can_install()
162 auto [fd, _] = read_signature(st.st_size, file, /*silent=*/true); in can_install()
Dauth.cpp160 struct stat st; in load_keys() local
161 if (stat(path.c_str(), &st) != 0) { in load_keys()
166 if (S_ISREG(st.st_mode)) { in load_keys()
170 if (S_ISDIR(st.st_mode)) { in load_keys()
203 LOG(ERROR) << "load_keys: unexpected type for '" << path << "': 0x" << std::hex << st.st_mode; in load_keys()
Dusb_linux.cpp218 struct stat st; in find_usb_device() local
274 if (!fstat(fd, &st) && S_ISCHR(st.st_mode)) { in find_usb_device()
276 major(st.st_rdev), minor(st.st_rdev)); in find_usb_device()
Dincremental_server.cpp659 struct stat st; in open_fd() local
660 if (stat(filepath, &st)) { in open_fd()
669 return {std::move(fd), st.st_size}; in open_fd()
/packages/modules/adb/daemon/
Dfile_sync_service.cpp147 struct stat st = {}; in do_lstat_v1() local
148 lstat(path, &st); in do_lstat_v1()
149 msg.stat_v1.mode = st.st_mode; in do_lstat_v1()
150 msg.stat_v1.size = st.st_size; in do_lstat_v1()
151 msg.stat_v1.mtime = st.st_mtime; in do_lstat_v1()
166 struct stat st = {}; in do_stat_v2() local
167 int rc = stat_fn(path, &st); in do_stat_v2()
171 msg.stat_v2.dev = st.st_dev; in do_stat_v2()
172 msg.stat_v2.ino = st.st_ino; in do_stat_v2()
173 msg.stat_v2.mode = st.st_mode; in do_stat_v2()
[all …]
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs116 let mut st = unsafe { MaybeUninit::<libc::stat64>::zeroed().assume_init() }; in create_stat() localVariable
118 st.st_ino = ino; in create_stat()
119 st.st_mode = match file_mode { in create_stat()
124 st.st_dev = 0; in create_stat()
125 st.st_nlink = 1; in create_stat()
126 st.st_uid = 0; in create_stat()
127 st.st_gid = 0; in create_stat()
128 st.st_rdev = 0; in create_stat()
129 st.st_size = libc::off64_t::try_from(file_size) in create_stat()
131 st.st_blksize = blk_size(); in create_stat()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java455 try (SQLiteStatement st = db.compileStatement(sql)) { in executeInsert() argument
456 bindArgs(st, bindArgs); in executeInsert()
457 return st.executeInsert(); in executeInsert()
466 try (SQLiteStatement st = db.compileStatement(sql)) { in executeUpdateDelete() argument
467 bindArgs(st, bindArgs); in executeUpdateDelete()
468 return st.executeUpdateDelete(); in executeUpdateDelete()
474 private static void bindArgs(@NonNull SQLiteStatement st, @Nullable Object[] bindArgs) { in bindArgs() argument
481 st.bindNull(i + 1); in bindArgs()
484 st.bindLong(i + 1, ((Number) bindArg).longValue()); in bindArgs()
487 st.bindDouble(i + 1, ((Number) bindArg).doubleValue()); in bindArgs()
[all …]
/packages/modules/adb/sysdeps/win32/
Dstat.cpp55 struct adb_stat st; in adb_stat() local
56 int result = wstat(path_wide.c_str(), &st); in adb_stat()
58 if (!S_ISDIR(st.st_mode)) { in adb_stat()
64 memcpy(s, &st, sizeof(st)); in adb_stat()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java221 StringTokenizer st = new StringTokenizer(line, SEPARATOR); in restoreDictionary() local
225 final String word = st.nextToken(); in restoreDictionary()
226 final String frequency = st.nextToken(); in restoreDictionary()
230 if (st.hasMoreTokens()) locale = st.nextToken(); in restoreDictionary()
232 if (st.hasMoreTokens()) appid = st.nextToken(); in restoreDictionary()
233 if (st.hasMoreTokens()) shortcut = st.nextToken(); in restoreDictionary()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSurfaceTextureScreenNail.java57 private static void setDefaultBufferSize(SurfaceTexture st, int width, int height) { in setDefaultBufferSize() argument
59 st.setDefaultBufferSize(width, height); in setDefaultBufferSize()
64 private static void releaseSurfaceTexture(SurfaceTexture st) { in releaseSurfaceTexture() argument
65 st.setOnFrameAvailableListener(null); in releaseSurfaceTexture()
67 st.release(); in releaseSurfaceTexture()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs133 let mut st = unsafe { std::mem::MaybeUninit::<libc::stat64>::zeroed().assume_init() }; in stat_from() localVariable
134 st.st_dev = 0; in stat_from()
135 st.st_nlink = if let Some(directory) = inode_data.get_directory() { in stat_from()
140 st.st_ino = inode; in stat_from()
141 st.st_mode = if inode_data.is_dir() { libc::S_IFDIR } else { libc::S_IFREG }; in stat_from()
142 st.st_mode |= inode_data.mode; in stat_from()
143 st.st_uid = 0; in stat_from()
144 st.st_gid = 0; in stat_from()
145 st.st_size = i64::try_from(inode_data.size).unwrap_or(i64::MAX); in stat_from()
146 Ok(st) in stat_from()
[all …]
/packages/services/Car/tests/NetworkPreferenceApp/src/com/google/android/car/networking/preferenceupdater/utils/
DUtils.java29 public static String toString(Set<String> st) { in toString() argument
30 return TextUtils.join(",", st); in toString()
34 public static Set<String> toSet(String st) { in toSet() argument
35 return Stream.of(TextUtils.split(st, ",")).collect(Collectors.toSet()); in toSet()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java62 int st = source.getSpanStart(spans[i]); in copyNonParagraphSuggestionSpansFrom() local
65 if (st < start) in copyNonParagraphSuggestionSpansFrom()
66 st = start; in copyNonParagraphSuggestionSpansFrom()
70 dest.setSpan(spans[i], st - start + destoff, en - start + destoff, in copyNonParagraphSuggestionSpansFrom()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/
DWifiP2pUpnpServiceRequest.java73 public static WifiP2pUpnpServiceRequest newInstance(String st) { in newInstance() argument
74 if (st == null) { in newInstance()
79 sb.append(WifiP2pServiceInfo.bin2HexStr(st.getBytes())); in newInstance()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsData.java279 final ProcessStats.PackageState st = vpkgs.valueAt(iv); in getProcs() local
280 for (int iproc = 0; iproc < st.mProcesses.size(); iproc++) { in getProcs()
281 final ProcessState pkgProc = st.mProcesses.valueAt(iproc); in getProcs()
285 Log.w(TAG, "No process found for pkg " + st.mPackageName in getProcs()
286 + "/" + st.mUid + " proc name " + pkgProc.getName()); in getProcs()
291 ent = new ProcStatsEntry(proc, st.mPackageName, bgTotals, runTotals, in getProcs()
304 ent.addPackage(st.mPackageName); in getProcs()
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DRandomVariable.h46 explicit RandomVariableRange(const std::set<int>& st) : mChoices(st.begin(), st.end()) {} in RandomVariableRange() argument
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieItem.java116 public void setGeometry(float st, float sw, int inside, int outside) { in setGeometry() argument
117 start = st; in setGeometry()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieItem.java133 public void setGeometry(float st, float sw, int inside, int outside) { in setGeometry() argument
134 start = st; in setGeometry()
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Dapk_archive.cpp76 struct stat st; in ApkArchive() local
77 if (stat(path_.c_str(), &st) == -1) { in ApkArchive()
81 size_ = st.st_size; in ApkArchive()
/packages/modules/Virtualization/microdroid/signature/
Dmk_payload.cc54 struct stat st; in GetFileSize() local
55 if (lstat(path.c_str(), &st) == -1) { in GetFileSize()
58 return static_cast<uint32_t>(st.st_size); in GetFileSize()
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
DAllUriTest.java708 try (InputStream st = mResolver.openInputStream(uri)) { in testAllFileOperations()
720 try (OutputStream st = mResolver.openOutputStream(uri)) { in testAllFileOperations()
/packages/apps/Settings/src/com/android/settings/users/
DAppRestrictionsFragment.java533 StringTokenizer st = new StringTokenizer(key, DELIMITER); in onPreferenceChange() local
534 final String packageName = st.nextToken(); in onPreferenceChange()
535 final String restrictionKey = st.nextToken(); in onPreferenceChange()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java146 for (final StackTraceElement st : (new Exception()).getStackTrace()) { in endTransaction()
147 LogUtil.w(TAG, " " + st.toString()); in endTransaction()

12