Home
last modified time | relevance | path

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

12

/aosp12/frameworks/compile/slang/
H A Dslang_rs_reflect_utils.cpp38 while (slash >= fileName) { in GetFileNameStem()
43 dot = slash; in GetFileNameStem()
45 --slash; in GetFileNameStem()
47 ++slash; in GetFileNameStem()
48 return string(slash, dot - slash); in GetFileNameStem()
77 dot = slash; in InternalFileNameConvert()
79 --slash; in InternalFileNameConvert()
81 ++slash; in InternalFileNameConvert()
84 for (; (i < 255) && (slash < dot); ++slash) { in InternalFileNameConvert()
85 if (isalnum(*slash) || *slash == '_') { in InternalFileNameConvert()
[all …]
/aosp12/bionic/libc/upstream-openbsd/lib/libc/gen/
H A Dfnmatch.c149 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch() local
183 if (slash && (**pattern == '/')) in fnmatch_ch()
216 if (!**pattern || (slash && (**pattern == '/'))) in fnmatch_ch()
255 if (!**string || (slash && (**string == '/'))) in fnmatch_ch()
288 const int slash = !!(flags & FNM_PATHNAME); in fnmatch() local
309 if (slash && (*pattern == '/') && (*string == '/')) { in fnmatch()
333 if (slash) { in fnmatch()
350 if (slash && ((*pattern == '/') || in fnmatch()
380 (slash && ((*matchptr == '/') || in fnmatch()
440 if (slash && ((*string == '/') || in fnmatch()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileView.java49 final SlashDrawable slash = getSlash(); in setFinalImageTintList() local
50 if (slash != null) { in setFinalImageTintList()
51 ((AlphaControlledSlashDrawable)slash).setFinalTintList(tint); in setFinalImageTintList()
58 final SlashDrawable slash = new AlphaControlledSlashDrawable(getDrawable()); in ensureSlashDrawable() local
59 setSlash(slash); in ensureSlashDrawable()
60 slash.setAnimationEnabled(getAnimationEnabled()); in ensureSlashDrawable()
61 setImageViewDrawable(slash); in ensureSlashDrawable()
/aosp12/system/logging/liblog/
H A Dpmsg_writer.cpp187 char *cp, *slash; in __android_log_pmsg_file_write() local
207 slash = strrchr(cp, '/'); in __android_log_pmsg_file_write()
208 if (slash) { in __android_log_pmsg_file_write()
209 *slash = ':'; in __android_log_pmsg_file_write()
210 slash = strrchr(cp, '/'); in __android_log_pmsg_file_write()
211 if (slash) { in __android_log_pmsg_file_write()
212 tag = slash + 1; in __android_log_pmsg_file_write()
/aosp12/frameworks/base/tools/bit/
H A Dutil.cpp274 size_t slash = filename.rfind('/'); in dirname() local
275 if (slash == string::npos) { in dirname()
277 } else if (slash == 0) { in dirname()
280 return string(filename, 0, slash); in dirname()
287 size_t slash = filename.rfind('/'); in leafname() local
288 if (slash == string::npos) { in leafname()
290 } else if (slash == filename.length() - 1) { in leafname()
293 return string(filename, slash + 1); in leafname()
/aosp12/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
H A DSharedStorageAgent.java75 int slash = relpath.indexOf('/'); in onRestoreFile() local
76 if (slash > 0) { in onRestoreFile()
78 int i = Integer.parseInt(relpath.substring(0, slash)); in onRestoreFile()
80 outFile = new File(mVolumes[i].getPath(), relpath.substring(slash + 1)); in onRestoreFile()
86 if (DEBUG) Slog.w(TAG, "Bad volume number token: " + relpath.substring(0, slash)); in onRestoreFile()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DSlashImageView.java42 protected void setSlash(SlashDrawable slash) { in setSlash() argument
43 mSlash = slash; in setSlash()
68 protected void setImageViewDrawable(SlashDrawable slash) { in setImageViewDrawable() argument
69 super.setImageDrawable(slash); in setImageViewDrawable()
/aosp12/frameworks/base/cmds/incident/
H A Dmain.cpp191 size_t slash = arg.find('/'); in parse_receiver_arg() local
192 if (slash == string::npos) { in parse_receiver_arg()
195 if (slash == 0 || slash == arg.length() - 1) { in parse_receiver_arg()
198 if (arg.find('/', slash+1) != string::npos) { in parse_receiver_arg()
201 pkg->assign(arg, 0, slash); in parse_receiver_arg()
202 cls->assign(arg, slash+1); in parse_receiver_arg()
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_roots.cpp43 auto slash = str.find_last_of('/'); in GetEntryForPath() local
44 if (slash == std::string::npos) break; in GetEntryForPath()
45 if (slash == 0) { in GetEntryForPath()
48 str = str.substr(0, slash); in GetEntryForPath()
/aosp12/system/netd/server/
H A DNetdConstants.cpp84 const char *slash = strchr(prefix, '/'); in parsePrefix() local
85 const char *prefixlenString = slash + 1; in parsePrefix()
86 if (!slash || !*prefixlenString) in parsePrefix()
101 std::string addressString(prefix, slash - prefix); in parsePrefix()
H A DNetlinkHandler.cpp141 char *slash = strchr(addrstr, '/'); in onEvent() local
142 if (slash) { in onEvent()
143 *slash = '\0'; in onEvent()
/aosp12/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
H A DQSTile.java165 public SlashState slash; field in QSTile.State
189 || !Objects.equals(other.slash, slash) in copyTo()
206 other.slash = slash != null ? slash.copy() : null; in copyTo()
235 sb.append(",slash=\"").append(slash).append("\""); in toStringBuilder()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DWorkModeTile.java112 if (state.slash == null) { in handleUpdateState()
113 state.slash = new SlashState(); in handleUpdateState()
124 state.slash.isSlashed = false; in handleUpdateState()
126 state.slash.isSlashed = true; in handleUpdateState()
H A DFlashlightTile.java119 if (state.slash == null) { in handleUpdateState()
120 state.slash = new SlashState(); in handleUpdateState()
127 state.slash.isSlashed = true; in handleUpdateState()
144 state.slash.isSlashed = !state.value; in handleUpdateState()
H A DColorInversionTile.java129 if (state.slash == null) { in handleUpdateState()
130 state.slash = new SlashState(); in handleUpdateState()
133 state.slash.isSlashed = !state.value; in handleUpdateState()
H A DLocationTile.java109 if (state.slash == null) { in handleUpdateState()
110 state.slash = new SlashState(); in handleUpdateState()
123 state.slash.isSlashed = !state.value; in handleUpdateState()
H A DAirplaneModeTile.java131 if (state.slash == null) { in handleUpdateState()
132 state.slash = new SlashState(); in handleUpdateState()
134 state.slash.isSlashed = !airplaneMode; in handleUpdateState()
H A DHotspotTile.java129 if (state.slash == null) { in handleUpdateState()
130 state.slash = new SlashState(); in handleUpdateState()
153 state.slash.isSlashed = !state.value && !state.isTransient; in handleUpdateState()
H A DWifiTile.java193 if (state.slash == null) { in handleUpdateState()
194 state.slash = new SlashState(); in handleUpdateState()
195 state.slash.rotation = 6; in handleUpdateState()
197 state.slash.isSlashed = false; in handleUpdateState()
213 state.slash.isSlashed = true; in handleUpdateState()
H A DInternetTile.java410 if (state.slash == null) { in handleUpdateWifiState()
411 state.slash = new SlashState(); in handleUpdateWifiState()
412 state.slash.rotation = 6; in handleUpdateWifiState()
414 state.slash.isSlashed = false; in handleUpdateWifiState()
454 state.slash.isSlashed = true; in handleUpdateWifiState()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/util/
H A DMimeUtils.java108 final int slash = mimeType.indexOf('/'); in extractPrimaryType() local
109 if (slash == -1) { in extractPrimaryType()
112 return mimeType.substring(0, slash); in extractPrimaryType()
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A DTarBackupReader.java199 int slash = info.path.indexOf('/'); in readTarHeaders() local
200 if (slash < 0) { in readTarHeaders()
203 info.packageName = info.path.substring(0, slash); in readTarHeaders()
204 info.path = info.path.substring(slash + 1); in readTarHeaders()
210 slash = info.path.indexOf('/'); in readTarHeaders()
211 if (slash < 0) { in readTarHeaders()
215 info.domain = info.path.substring(0, slash); in readTarHeaders()
216 info.path = info.path.substring(slash + 1); in readTarHeaders()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DAlphaControlledSignalTileViewTest.java89 protected void setSlash(SlashDrawable slash) { in setSlash() argument
90 super.setSlash(slash); in setSlash()
/aosp12/frameworks/opt/net/voip/src/java/android/net/sip/
H A DSimpleSessionDescription.java410 int slash = parts[2].indexOf('/'); in getAddress() local
411 return (slash < 0) ? parts[2] : parts[2].substring(0, slash); in getAddress()
/aosp12/system/core/init/
H A Dutil.cpp209 std::string::size_type slash = 0; in mkdir_recursive() local
210 while ((slash = path.find('/', slash + 1)) != std::string::npos) { in mkdir_recursive()
211 auto directory = path.substr(0, slash); in mkdir_recursive()

12