Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java125 if (buf[off + i] == '\n') { in write()
140 off += nextNewLine + 1; in write()
150 appendToBuffer(buf, off, rest); in write()
153 off += rest; in write()
161 appendToBuffer(buf, off, len); in write()
163 if (buf[off + i] == '\n') { in write()
194 off += nextNewLine + 1; in write()
204 appendToBuffer(s, off, rest); in write()
207 off += rest; in write()
215 appendToBuffer(s, off, len); in write()
[all …]
/aosp14/frameworks/base/core/java/android/text/
H A DAlteredCharSequence.java91 public char charAt(int off) { in charAt() argument
92 if (off >= mStart && off < mEnd) in charAt()
93 return mChars[off - mStart]; in charAt()
95 return mSource.charAt(off); in charAt()
107 public void getChars(int start, int end, char[] dest, int off) { in getChars() argument
108 TextUtils.getChars(mSource, start, end, dest, off); in getChars()
114 System.arraycopy(mChars, start - mStart, dest, off, end - start); in getChars()
H A DAutoText.java141 int off = mTrie[here + TRIE_OFF]; in lookup() local
142 int len = mText.charAt(off); in lookup()
144 return mText.substring(off + 1, off + 1 + len); in lookup()
184 char off; in init() local
187 off = ooff; in init()
189 off = (char) right.length(); in init()
194 add(src, off); in init()
211 private void add(String src, char off) { in add() argument
228 mTrie[mTrie[herep] + TRIE_OFF] = off; in add()
255 mTrie[mTrie[herep] + TRIE_OFF] = off; in add()
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DAllocation.java1106 if(off < 0) { in data1DChecks()
1112 if((off + count) > mCurrentCount) { in data1DChecks()
1183 copy1DRangeFromUnchecked(off, count, array, in copy1DRangeFromUnchecked()
1317 copy1DRangeFromUnchecked(off, count, array, in copy1DRangeFrom()
1346 public void copy1DRangeFrom(int off, int count, int[] d) { in copy1DRangeFrom() argument
1449 mRS.nAllocationData2D(getIDSafe(), off, 0, in copy1DRangeFrom() local
2136 copy1DRangeToUnchecked(off, count, array, in copy1DRangeToUnchecked()
2270 copy1DRangeToUnchecked(off, count, array, in copy1DRangeTo()
2299 public void copy1DRangeTo(int off, int count, int[] d) { in copy1DRangeTo() argument
2328 public void copy1DRangeTo(int off, int count, short[] d) { in copy1DRangeTo() argument
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/parser/
H A DRandomAccessObject.java34 public abstract int read(byte[] bytes, int off, int len) throws IOException; in read() argument
78 public int read(byte[] bytes, int off, int len) throws IOException { in read() argument
79 return mRandomAccessFile.read(bytes, off, len); in read()
116 public int read(byte[] bytes, int off, int len) throws IOException { in read() argument
121 mBytes.get(bytes, off, len); in read()
/aosp14/frameworks/base/core/java/android/view/
H A DGravity.java355 int off = 0; in applyDisplay() local
356 if (inoutObj.top < display.top) off = display.top-inoutObj.top; in applyDisplay()
358 if (off != 0) { in applyDisplay()
363 inoutObj.top += off; in applyDisplay()
364 inoutObj.bottom += off; in applyDisplay()
373 int off = 0; in applyDisplay() local
374 if (inoutObj.left < display.left) off = display.left-inoutObj.left; in applyDisplay()
375 else if (inoutObj.right > display.right) off = display.right-inoutObj.right; in applyDisplay()
376 if (off != 0) { in applyDisplay()
381 inoutObj.left += off; in applyDisplay()
[all …]
/aosp14/system/core/trusty/storage/lib/
H A Dstorage.c191 static int _read_chunk(file_handle_t fh, storage_off_t off, void *buf, size_t size) in _read_chunk() argument
194 struct storage_file_read_req req = { .handle = _to_handle(fh), .size = size, .offset = off }; in _read_chunk()
202 ssize_t storage_read(file_handle_t fh, storage_off_t off, void *buf, size_t size) in storage_read() argument
212 rc = _read_chunk(fh, off, ptr, chunk); in storage_read()
217 off += rc; in storage_read()
225 static int _write_req(file_handle_t fh, storage_off_t off, in _write_req() argument
229 struct storage_file_write_req req = { .handle = _to_handle(fh), .offset = off, }; in _write_req()
238 ssize_t storage_write(file_handle_t fh, storage_off_t off, in storage_write() argument
253 rc = _write_req(fh, off, ptr, chunk, msg_flags); in storage_write()
260 off += chunk; in storage_write()
/aosp14/frameworks/base/core/java/android/net/
H A DLocalSocketImpl.java101 public int read(byte[] b, int off, int len) throws IOException { in read() argument
106 if (off < 0 || len < 0 || (off + len) > b.length ) { in read()
110 int ret = readba_native(b, off, len, myFd); in read()
136 public void write (byte[] b, int off, int len) throws IOException { in write() argument
141 if (off < 0 || len < 0 || (off + len) > b.length ) { in write()
144 writeba_native(b, off, len, myFd); in write()
160 private native int readba_native(byte[] b, int off, int len, in readba_native() argument
162 private native void writeba_native(byte[] b, int off, int len, in writeba_native() argument
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
H A DSparseInputStream.java137 public int read(byte[] buf, int off, int len) throws IOException { in read() argument
139 return mIn.read(buf, off, len); in read()
145 n = mIn.read(buf, off, (int) min(mLeft, len)); in read()
150 Arrays.fill(buf, off, off + n, (byte) 0); in read()
155 return super.read(buf, off, len); in read()
/aosp14/frameworks/base/core/jni/
H A Dandroid_util_StringBlock.cpp35 jint off, jint len) { in android_content_StringBlock_nativeCreate() argument
42 if (off < 0 || off >= bLen || len < 0 || len > bLen || (off+len) > bLen) { in android_content_StringBlock_nativeCreate()
48 ResStringPool* osb = new ResStringPool(b+off, len, true); in android_content_StringBlock_nativeCreate()
H A Dandroid_net_LocalSocketImpl.cpp273 jbyteArray buffer, jint off, jint len, jobject fileDescriptor) in socket_readba() argument
284 if (off < 0 || len < 0 || (off + len) > env->GetArrayLength(buffer)) { in socket_readba()
308 fd, byteBuffer + off, len); in socket_readba()
340 jbyteArray buffer, jint off, jint len, jobject fileDescriptor) in socket_writeba() argument
351 if (off < 0 || len < 0 || (off + len) > env->GetArrayLength(buffer)) { in socket_writeba()
370 byteBuffer + off, len); in socket_writeba()
/aosp14/frameworks/base/keystore/java/android/security/keystore2/
H A DAndroidKeyStoreSignatureSpiBase.java249 protected final void engineUpdate(byte[] b, int off, int len) throws SignatureException { in engineUpdate() argument
251 mSignature.update(b, off, len); in engineUpdate()
271 output = mMessageStreamer.update(b, off, len); in engineUpdate()
290 int off; in engineUpdate() local
294 off = input.arrayOffset() + input.position(); in engineUpdate()
298 off = 0; in engineUpdate()
303 engineUpdate(b, off, len); in engineUpdate()
/aosp14/frameworks/base/core/java/android/text/method/
H A DMultiTapKeyListener.java75 int off = cap.ordinal() * 2 + (autotext ? 1 : 0); in getInstance() local
77 if (sInstance[off] == null) { in getInstance()
78 sInstance[off] = new MultiTapKeyListener(cap, autotext); in getInstance()
81 return sInstance[off]; in getInstance()
178 int off = 0; in onKeyDown() local
183 off = i; in onKeyDown()
196 content.replace(selStart, selEnd, val, off, off + 1); in onKeyDown()
H A DTextKeyListener.java89 int off = cap.ordinal() * 2 + (autotext ? 1 : 0); in getInstance() local
91 if (sInstance[off] == null) { in getInstance()
92 sInstance[off] = new TextKeyListener(cap, autotext); in getInstance()
95 return sInstance[off]; in getInstance()
116 public static boolean shouldCap(Capitalize cap, CharSequence cs, int off) { in shouldCap() argument
127 return TextUtils.getCapsMode(cs, off, cap == Capitalize.WORDS in shouldCap()
H A DReplacementTransformationMethod.java150 public void getChars(int start, int end, char[] dest, int off) { in getChars() argument
151 TextUtils.getChars(mSource, start, end, dest, off); in getChars()
152 int offend = end - start + off; in getChars()
155 for (int i = off; i < offend; i++) { in getChars()
/aosp14/frameworks/base/core/java/android/util/
H A DBase64OutputStream.java101 public void write(byte[] b, int off, int len) throws IOException { in write() argument
104 internalWrite(b, off, len, false); in write()
141 private void internalWrite(byte[] b, int off, int len, boolean finish) throws IOException { in internalWrite() argument
143 if (!coder.process(b, off, len, finish)) { in internalWrite()
H A DTeeWriter.java43 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument
45 writer.write(cbuf, off, len); in write()
/aosp14/frameworks/base/core/tests/companiontests/src/android/companion/
H A DSystemDataTransportTest.java253 public int read(byte[] b, int off, int len) throws IOException { in read() argument
270 public int read(byte[] b, int off, int len) throws IOException { in read() argument
272 return super.read(b, off, len); in read()
285 public void write(byte[] b, int off, int len) throws IOException { in write() argument
287 super.write(b, off, len); in write()
297 public int read(byte[] b, int off, int len) throws IOException { in read() argument
298 return super.read(b, off, 1); in read()
/aosp14/frameworks/base/core/java/com/android/server/
H A DResettableTimeout.java43 public abstract void off(); in off() method in ResettableTimeout
93 off(); in cancel()
109 off(); in run()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DCountedDataInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { in read() argument
52 int r = in.read(b, off, len); in read()
82 public void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
83 int r = read(b, off, len); in readOrThrow()
H A DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { in read() argument
45 mBuf.get(bytes, off, len); in read()
/aosp14/frameworks/base/services/core/java/com/android/server/vibrator/
H A DVibratorController.java324 public void off() { in off() method in VibratorController
326 mNativeWrapper.off(); in off()
338 off(); in reset()
398 private static native void off(long nativePtr); in off() method in VibratorController.NativeWrapper
446 public void off() { in off() method in VibratorController.NativeWrapper
447 off(mNativePtr); in off()
/aosp14/system/core/libcutils/
H A Dashmem_test.cpp45 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() argument
48 *region = mmap(nullptr, size, prot, MAP_SHARED, fd, off); in TestMmap()
173 auto off = lseek(fd, cfg.offset, cfg.whence); in TEST() local
174 ASSERT_EQ(cfg.ret, off) << "lseek(" << cfg.offset << ", " << cfg.whence << ") failed" in TEST()
177 if (off >= dataStart && off < dataEnd) { in TEST()
178 off_t dataOff = off - dataStart; in TEST()
/aosp14/frameworks/base/core/proto/android/app/
H A Dalarmmanager.proto32 // will wake up the device when it goes off.
35 // alarm does not wake the device up; if it goes off while the device is
39 // sleep), which will wake up the device when it goes off.
42 // sleep). This alarm does not wake the device up; if it goes off while the
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/model/
H A DByteTrackedOutputStream.java54 public void write(byte[] b, int off, int len) throws IOException { in write() argument
56 mOutputStream.write(b, off, len); in write()

12345