Home
last modified time | relevance | path

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

/frameworks/compile/slang/
Dslang_rs_reflect_utils.cpp37 const char *slash = dot - 1; in GetFileNameStem() local
38 while (slash >= fileName) { in GetFileNameStem()
39 if (*slash == OS_PATH_SEPARATOR) { in GetFileNameStem()
42 if ((*slash == '.') && (*dot == 0)) { in GetFileNameStem()
43 dot = slash; in GetFileNameStem()
45 --slash; in GetFileNameStem()
47 ++slash; in GetFileNameStem()
48 return string(slash, dot - slash); in GetFileNameStem()
71 const char *slash = dot - 1; in InternalFileNameConvert() local
72 while (slash >= rsFileName) { in InternalFileNameConvert()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
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()
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
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()
/frameworks/base/tools/bit/
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()
Dmain.cpp616 const char* slash = strrchr(pwd, '/'); in get_out_dir() local
617 if (slash == NULL) { in get_out_dir()
618 slash = ""; in get_out_dir()
621 result += slash; in get_out_dir()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
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()
DQSIconViewImpl.java103 || !Objects.equals(state.slash, iv.getTag(R.id.qs_slash_tag))) { in updateIcon()
123 iv.setTag(R.id.qs_slash_tag, state.slash); in updateIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DWorkModeTile.java89 if (state.slash == null) { in handleUpdateState()
90 state.slash = new SlashState(); in handleUpdateState()
101 state.slash.isSlashed = false; in handleUpdateState()
103 state.slash.isSlashed = true; in handleUpdateState()
DFlashlightTile.java96 if (state.slash == null) { in handleUpdateState()
97 state.slash = new SlashState(); in handleUpdateState()
104 state.slash.isSlashed = true; in handleUpdateState()
121 state.slash.isSlashed = !state.value; in handleUpdateState()
DColorInversionTile.java98 if (state.slash == null) { in handleUpdateState()
99 state.slash = new SlashState(); in handleUpdateState()
102 state.slash.isSlashed = !state.value; in handleUpdateState()
DLocationTile.java89 if (state.slash == null) { in handleUpdateState()
90 state.slash = new SlashState(); in handleUpdateState()
103 state.slash.isSlashed = !state.value; in handleUpdateState()
DAirplaneModeTile.java109 if (state.slash == null) { in handleUpdateState()
110 state.slash = new SlashState(); in handleUpdateState()
112 state.slash.isSlashed = !airplaneMode; in handleUpdateState()
DHotspotTile.java106 if (state.slash == null) { in handleUpdateState()
107 state.slash = new SlashState(); in handleUpdateState()
130 state.slash.isSlashed = !state.value && !state.isTransient; in handleUpdateState()
DWifiTile.java170 if (state.slash == null) { in handleUpdateState()
171 state.slash = new SlashState(); in handleUpdateState()
172 state.slash.rotation = 6; in handleUpdateState()
174 state.slash.isSlashed = false; in handleUpdateState()
190 state.slash.isSlashed = true; in handleUpdateState()
DBluetoothTile.java126 if (state.slash == null) { in handleUpdateState()
127 state.slash = new SlashState(); in handleUpdateState()
129 state.slash.isSlashed = !enabled; in handleUpdateState()
DDndTile.java237 if (state.slash == null) state.slash = new SlashState(); in handleUpdateState()
241 state.slash.isSlashed = !state.value; in handleUpdateState()
/frameworks/base/cmds/incident/
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()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java139 public SlashState slash; field in QSTile.State
160 || !Objects.equals(other.slash, slash) in copyTo()
175 other.slash = slash != null ? slash.copy() : null; in copyTo()
202 sb.append(",slash=\"").append(slash).append("\""); in toStringBuilder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAlphaControlledSignalTileViewTest.java89 protected void setSlash(SlashDrawable slash) { in setSlash() argument
90 super.setSlash(slash); in setSlash()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
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()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSimpleSessionDescription.java410 int slash = parts[2].indexOf('/'); in getAddress() local
411 return (slash < 0) ? parts[2] : parts[2].substring(0, slash); in getAddress()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DDelegateMethodAdapter.java199 int slash = mClassName.lastIndexOf('/'); in generateDelegateCode() local
201 if (dol != -1 && dol > slash && dol == mClassName.indexOf('$')) { in generateDelegateCode()
/frameworks/ml/nn/extensions/
DREADME.md23 a slash (/), for example, `/data/foo`, or a name of an Android app package, for
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java3343 int slash = resName.lastIndexOf('/'); in restoreNamedResourceLocked() local
3344 if (slash > 0) { in restoreNamedResourceLocked()
3345 ident = resName.substring(slash+1); in restoreNamedResourceLocked()
3349 if (colon > 0 && slash > 0 && (slash-colon) > 1) { in restoreNamedResourceLocked()
3350 type = resName.substring(colon+1, slash); in restoreNamedResourceLocked()
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp3516 const char *slash = "/"; in dump_files() local
3525 ++slash; in dump_files()
3543 asprintf(&newpath, "%s%s%s%s", dir, slash, d->d_name, in dump_files()