/aosp14/frameworks/base/core/jni/ |
H A D | android_util_XmlBlock.cpp | 87 if (st == NULL) { in android_content_XmlBlock_nativeCreateParseState() 93 st->restart(); in android_content_XmlBlock_nativeCreateParseState() 100 if (st == NULL) { in android_content_XmlBlock_nativeNext() 130 if (st == NULL) { in android_content_XmlBlock_nativeGetNamespace() 139 if (st == NULL) { in android_content_XmlBlock_nativeGetName() 148 if (st == NULL) { in android_content_XmlBlock_nativeGetText() 157 if (st == NULL) { in android_content_XmlBlock_nativeGetLineNumber() 167 if (st == NULL) { in android_content_XmlBlock_nativeGetAttributeCount() 177 if (st == NULL) { in android_content_XmlBlock_nativeGetAttributeNamespace() 187 if (st == NULL) { in android_content_XmlBlock_nativeGetAttributeName() [all …]
|
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 63 uint32_t zipCrc, struct stat64* st) in isFileDifferent() argument 65 if (lstat64(filePath, st) < 0) { in isFileDifferent() 71 if (!S_ISREG(st->st_mode)) { in isFileDifferent() 75 if (static_cast<uint64_t>(st->st_size) != static_cast<uint64_t>(fileSize)) { in isFileDifferent() 80 if (time_t(st->st_mtime) != modifiedTime) { in isFileDifferent() 81 ALOGV("mod time doesn't match: %ld vs. %ld\n", st->st_mtime, modifiedTime); in isFileDifferent() 189 struct stat64 st; in copyFileIfChanged() local 190 if (!isFileDifferent(localFileName, uncompLen, modTime, crc, &st)) { in copyFileIfChanged() 241 times[0].tv_sec = st.st_atime; in copyFileIfChanged()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | TypedProperties.java | 42 st.resetSyntax(); in initTokenizer() 50 st.wordChars('0', '9'); in initTokenizer() 51 st.wordChars('A', 'Z'); in initTokenizer() 52 st.wordChars('a', 'z'); in initTokenizer() 53 st.wordChars('_', '_'); in initTokenizer() 54 st.wordChars('$', '$'); in initTokenizer() 60 st.ordinaryChar('='); in initTokenizer() 67 st.quoteChar('"'); in initTokenizer() 73 return st; in initTokenizer() 167 st.sval = null; in parse() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | ProcessCpuTracker.java | 453 if (st != null && st.pid == pid) { in collectStats() 492 getName(st, st.cmdlineFile); in collectStats() 505 st.rel_uptime = uptime - st.base_uptime; in collectStats() 521 if (st == null || st.pid > pid) { in collectStats() 558 st.base_utime = st.base_stime = 0; in collectStats() 563 getName(st, st.cmdlineFile); in collectStats() 569 st.name = st.baseName; in collectStats() 894 st.pid, st.name, (int)st.rel_uptime, 895 st.rel_utime, st.rel_stime, 0, 0, 0, st.rel_minfaults, st.rel_majfaults); 995 if (st.name == null || !newName.equals(st.name)) { [all …]
|
/aosp14/frameworks/base/native/android/ |
H A D | surface_texture.cpp | 23 return ASurfaceTexture_routeAcquireANativeWindow(st); in ASurfaceTexture_acquireANativeWindow() 27 return ASurfaceTexture_routeAttachToGLContext(st, texName); in ASurfaceTexture_attachToGLContext() 30 int ASurfaceTexture_detachFromGLContext(ASurfaceTexture* st) { in ASurfaceTexture_detachFromGLContext() argument 31 return ASurfaceTexture_routeDetachFromGLContext(st); in ASurfaceTexture_detachFromGLContext() 34 void ASurfaceTexture_release(ASurfaceTexture* st) { in ASurfaceTexture_release() argument 35 return ASurfaceTexture_routeRelease(st); in ASurfaceTexture_release() 38 int ASurfaceTexture_updateTexImage(ASurfaceTexture* st) { in ASurfaceTexture_updateTexImage() argument 39 return ASurfaceTexture_routeUpdateTexImage(st); in ASurfaceTexture_updateTexImage() 43 return ASurfaceTexture_routeGetTransformMatrix(st, mtx); in ASurfaceTexture_getTransformMatrix() 46 int64_t ASurfaceTexture_getTimestamp(ASurfaceTexture* st) { in ASurfaceTexture_getTimestamp() argument [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | PhoneWindow.java | 715 if (!cb.onPreparePanel(st.featureId, st.createdPanelView, st.menu)) { in preparePanel() 729 st.menu.setQwertyMode(st.qwertyMode); in preparePanel() 746 if ((st != null) && (st.menu != null)) { in onConfigurationChanged() 1098 if (st != null && !st.isOpen) { in onKeyDownPanel() 1135 if (st.isOpen || st.isHandled) { in onKeyUpPanel() 1235 if ((st.isPrepared || preparePanel(st, event)) && st.menu != null) { in performPanelShortcut() 1319 if (st != null && st.menu != null && !st.refreshMenuContent && in reopenMenu() 1413 st.decorView = generateDecor(st.featureId); in initializePanelDecor() 3010 return st != null && st.menu != null && st.menu.isShortcutKey(keyCode, event); 3040 } else if (st != null && (st.cur != drawable || st.curAlpha != st.alpha)) { [all …]
|
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | GradientDrawable.java | 809 switch (st.mShape) { in draw() 1029 st.mThickness : bounds.width() / st.mThicknessRatio; 1032 st.mInnerRadius : bounds.width() / st.mInnerRadiusRatio; 1349 final float width = st.mWidth >= 0 ? st.mWidth : r.width(); 1350 final float height = st.mHeight >= 0 ? st.mHeight : r.height(); 1751 st.mGradient = a.getInt( 1798 st.mPositions[1] = st.mCenterX != 0.5f ? st.mCenterX : st.mCenterY; 1822 if (st.mAngle >= 0) { 1823 switch (st.mAngle) { 1889 st.mWidth = a.getDimensionPixelSize(R.styleable.GradientDrawableSize_width, st.mWidth); [all …]
|
H A D | RotateDrawable.java | 151 final RotateState st = mState; in draw() local 152 final float px = st.mPivotXRel ? (w * st.mPivotX) : st.mPivotX; in draw() 153 final float py = st.mPivotYRel ? (h * st.mPivotY) : st.mPivotY; in draw() 156 canvas.rotate(st.mCurrentDegrees, px + bounds.left, py + bounds.top); in draw()
|
H A D | AnimatedRotateDrawable.java | 64 final AnimatedRotateState st = mState; in draw() local 65 final float px = st.mPivotXRel ? (w * st.mPivotX) : st.mPivotX; in draw() 66 final float py = st.mPivotYRel ? (h * st.mPivotY) : st.mPivotY; in draw()
|
/aosp14/frameworks/base/media/java/android/media/audiofx/ |
H A D | EnvironmentalReverb.java | 527 String key = st.nextToken(); in Settings() 534 key = st.nextToken(); in Settings() 539 key = st.nextToken(); in Settings() 544 key = st.nextToken(); in Settings() 549 key = st.nextToken(); in Settings() 554 key = st.nextToken(); in Settings() 559 key = st.nextToken(); in Settings() 564 key = st.nextToken(); in Settings() 569 key = st.nextToken(); in Settings() 574 key = st.nextToken(); in Settings() [all …]
|
H A D | Equalizer.java | 461 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings() local 462 int tokens = st.countTokens(); in Settings() 463 if (st.countTokens() < 5) { in Settings() 466 String key = st.nextToken(); in Settings() 472 key = st.nextToken(); in Settings() 476 curPreset = Short.parseShort(st.nextToken()); in Settings() 477 key = st.nextToken(); in Settings() 481 numBands = Short.parseShort(st.nextToken()); in Settings() 482 if (st.countTokens() != numBands*2) { in Settings() 487 key = st.nextToken(); in Settings() [all …]
|
H A D | BassBoost.java | 226 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings() local 227 int tokens = st.countTokens(); in Settings() 228 if (st.countTokens() != 3) { in Settings() 231 String key = st.nextToken(); in Settings() 237 key = st.nextToken(); in Settings() 241 strength = Short.parseShort(st.nextToken()); in Settings()
|
H A D | PresetReverb.java | 242 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings() local 243 int tokens = st.countTokens(); in Settings() 244 if (st.countTokens() != 3) { in Settings() 247 String key = st.nextToken(); in Settings() 253 key = st.nextToken(); in Settings() 257 preset = Short.parseShort(st.nextToken()); in Settings()
|
H A D | LoudnessEnhancer.java | 227 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings() local 229 if (st.countTokens() != 3) { in Settings() 232 String key = st.nextToken(); in Settings() 238 key = st.nextToken(); in Settings() 242 targetGainmB = Integer.parseInt(st.nextToken()); in Settings()
|
H A D | Virtualizer.java | 568 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings() local 569 int tokens = st.countTokens(); in Settings() 570 if (st.countTokens() != 3) { in Settings() 573 String key = st.nextToken(); in Settings() 579 key = st.nextToken(); in Settings() 583 strength = Short.parseShort(st.nextToken()); in Settings()
|
/aosp14/system/core/libcutils/ |
H A D | ashmem-dev.cpp | 227 struct stat st; in __ashmem_open_locked() local 228 int ret = TEMP_FAILURE_RETRY(fstat(fd, &st)); in __ashmem_open_locked() 235 if (!S_ISCHR(st.st_mode) || !st.st_rdev) { in __ashmem_open_locked() 241 __ashmem_rdev = st.st_rdev; in __ashmem_open_locked() 260 struct stat st; in __ashmem_is_ashmem() local 262 if (fstat(fd, &st) < 0) { in __ashmem_is_ashmem() 267 if (S_ISCHR(st.st_mode) && st.st_rdev) { in __ashmem_is_ashmem() 284 if (st.st_rdev == rdev) { in __ashmem_is_ashmem() 292 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem() 297 fd, st.st_mode, major(st.st_rdev), minor(st.st_rdev), in __ashmem_is_ashmem()
|
/aosp14/system/core/run-as/ |
H A D | run-as.cpp | 74 struct stat st; in check_directory() local 75 if (TEMP_FAILURE_RETRY(lstat(path, &st)) == -1) { in check_directory() 83 if (!S_ISDIR(st.st_mode)) { in check_directory() 84 error(1, 0, "%s not a directory: %o", path, st.st_mode); in check_directory() 88 if (st.st_uid != uid || st.st_gid != uid) { in check_directory() 89 error(1, 0, "%s has wrong owner: %d/%d, not %d", path, st.st_uid, st.st_gid, uid); in check_directory() 93 if ((st.st_mode & (S_IROTH | S_IWOTH)) != 0) { in check_directory() 94 error(1, 0, "%s readable or writable by others: %o", path, st.st_mode); in check_directory()
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | report_directory.cpp | 44 struct stat st; in clean_directory() local 65 if (stat(filename.string(), &st) != 0) { in clean_directory() 69 if (!S_ISREG(st.st_mode)) { in clean_directory() 72 files.push_back(std::pair<String8, struct stat>(filename, st)); in clean_directory() 74 totalSize += st.st_size; in clean_directory()
|
H A D | WorkDirectory.cpp | 143 struct stat st; in create_directory() local 159 if (stat(dir, &st) == 0) { in create_directory() 176 if (stat(directory, &st) != 0) { in create_directory() 181 if ((st.st_mode & 0777) != 0770) { in create_directory() 187 if (st.st_uid != AID_INCIDENTD || st.st_gid != AID_INCIDENTD) { in create_directory() 189 st.st_uid, st.st_gid, directory); in create_directory() 408 struct stat st; in startFilteringData() local 409 if (fstat(dataFd, &st) != 0) { in startFilteringData() 713 struct stat st; in file_exists_locked() local 761 struct stat st; in get_directory_contents_locked() local [all …]
|
/aosp14/frameworks/base/tools/bit/ |
H A D | util.cpp | 38 struct stat st; in FileInfo() local 39 int err = stat(filename.c_str(), &st); in FileInfo() 44 mtime = st.st_mtime; in FileInfo() 45 ctime = st.st_ctime; in FileInfo() 46 size = st.st_size; in FileInfo() 261 struct stat st; in is_executable() local 263 err = stat(filename.c_str(), &st); in is_executable() 268 return (st.st_mode & S_IXUSR) != 0; in is_executable()
|
/aosp14/system/core/fs_mgr/libfiemap/ |
H A D | utility.cpp | 100 struct stat st; in F2fsPinBeforeAllocate() local 101 if (fstat(file_fd, &st) < 0) { in F2fsPinBeforeAllocate() 106 if (!BlockDeviceToName(major(st.st_dev), minor(st.st_dev), &bdev)) { in F2fsPinBeforeAllocate() 107 LOG(ERROR) << "Failed to get block device name for " << major(st.st_dev) << ":" in F2fsPinBeforeAllocate() 108 << minor(st.st_dev); in F2fsPinBeforeAllocate()
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 1222 st->stack.itemAt(st->stack.size()-1)->addChild(node); in startNamespace() 1224 st->root = node; in startNamespace() 1226 st->stack.push(node); in startNamespace() 1245 st->stack.itemAt(st->stack.size()-1)->addChild(node); in startElement() 1247 st->root = node; in startElement() 1249 st->stack.push(node); in startElement() 1268 sp<XMLNode> parent = st->stack.itemAt(st->stack.size()-1); in characterData() 1293 sp<XMLNode> node = st->stack.itemAt(st->stack.size()-1); in endElement() 1304 st->stack.pop(); in endElement() 1315 sp<XMLNode> node = st->stack.itemAt(st->stack.size()-1); in endNamespace() [all …]
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | PasswordTransformationMethod.java | 155 int st = sp.getSpanStart(TextKeyListener.ACTIVE); in charAt() local 158 if (i >= st && i < en) { in charAt() 166 st = sp.getSpanStart(visible[a]); in charAt() 169 if (i >= st && i < en) { in charAt() 193 int st = -1, en = -1; in getChars() local 200 st = sp.getSpanStart(TextKeyListener.ACTIVE); in getChars() 217 if (! (i >= st && i < en)) { in getChars()
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | Editable.java | 52 public Editable replace(int st, int en, CharSequence source, int start, int end); in replace() argument 58 public Editable replace(int st, int en, CharSequence text); in replace() argument 76 public Editable delete(int st, int en); in delete() argument
|
H A D | SpannableStringInternal.java | 78 int st = src.getSpanStart(spans[i]); in copySpansFromSpanned() local 82 if (st < start) in copySpansFromSpanned() 83 st = start; in copySpansFromSpanned() 87 setSpan(spans[i], st - start, en - start, fl, false/*enforceParagraph*/); in copySpansFromSpanned() 433 int st = data[i * COLUMNS + START]; in nextSpanTransition() local 436 if (st > start && st < limit && kind.isInstance(spans[i])) in nextSpanTransition() 437 limit = st; in nextSpanTransition() 466 private void sendSpanChanged(Object what, int s, int e, int st, int en) { in sendSpanChanged() argument 467 SpanWatcher[] recip = getSpans(Math.min(s, st), Math.max(e, en), in sendSpanChanged() 472 recip[i].onSpanChanged((Spannable) this, what, s, e, st, en); in sendSpanChanged()
|