Home
last modified time | relevance | path

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

1234

/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DInterp.h52 int off = (int)(xfrac * CTAPS); in ciCalc() local
54 tmpf[0] = in[0] * ciTable[off + 40]; in ciCalc()
55 tmpf[0] += in[1] * ciTable[off]; in ciCalc()
56 tmpf[0] += in[2] * ciTable[40 - off]; in ciCalc()
57 tmpf[0] += in[3] * ciTable[80 - off]; in ciCalc()
59 tmpf[1] = in[0] * ciTable[off + 40]; in ciCalc()
60 tmpf[1] += in[1] * ciTable[off]; in ciCalc()
61 tmpf[1] += in[2] * ciTable[40 - off]; in ciCalc()
62 tmpf[1] += in[3] * ciTable[80 - off]; in ciCalc()
64 tmpf[2] = in[0] * ciTable[off + 40]; in ciCalc()
[all …]
DPyramid.cpp115 int off, off2, height, h, w; in BorderSpread() local
119 off = pyr->border - left; in BorderSpread()
120 off2 = pyr->width + off + pyr->border - right - 1; in BorderSpread()
123 base = pyr->ptr[-h] - off; in BorderSpread()
152 int off = in->border / 2; in BorderExpandOdd() local
155 for (j = -off; j < in->height + off; j++) { in BorderExpandOdd()
167 for (i = -off; i < scr->width + off; i++) { in BorderExpandOdd()
211 int off = scr->border - 2; in BorderReduceOdd() local
212 s = scr->ptr[-scr->border] - (off >> 1); in BorderReduceOdd()
214 ls = scr->ptr[scr->height + scr->border - 1] + scr->pitch - (off >> 1); in BorderReduceOdd()
[all …]
/packages/apps/Gallery2/jni/filters/
Dfx.c19 __inline__ int interp(unsigned char *src, int p , int *off ,float dr,float dg, float db){ in interp() argument
21 float fr00 = (src[p+off[0]])*(1-dr)+(src[p+off[1]])*dr; in interp()
22 float fr01 = (src[p+off[2]])*(1-dr)+(src[p+off[3]])*dr; in interp()
23 float fr10 = (src[p+off[4]])*(1-dr)+(src[p+off[5]])*dr; in interp()
24 float fr11 = (src[p+off[6]])*(1-dr)+(src[p+off[7]])*dr; in interp()
47 int off[8] = { in JNIFUNCF() local
80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); in JNIFUNCF()
81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); in JNIFUNCF()
82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db)); in JNIFUNCF()
Dedge.c99 int off = k * 4; in JNIFUNCF() local
100 *(buf + buf_row_ring + off) = ret; in JNIFUNCF()
101 *(buf + buf_row_ring + off + 1) = ret; in JNIFUNCF()
102 *(buf + buf_row_ring + off + 2) = ret; in JNIFUNCF()
103 *(buf + buf_row_ring + off + 3) = *(ptr + loc + 3); in JNIFUNCF()
DredEyeMath.c106 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument
107 img[off + 2] = b; in stuff()
108 img[off + 1] = g; in stuff()
109 img[off] = r; in stuff()
/packages/apps/TV/tuner/src/com/android/tv/tuner/util/
DByteArrayBuffer.java57 public void append(final byte[] b, int off, int len) { in append() argument
61 if ((off < 0) in append()
62 || (off > b.length) in append()
64 || ((off + len) < 0) in append()
65 || ((off + len) > b.length)) { in append()
75 System.arraycopy(b, off, this.buffer, this.len, len); in append()
88 public void append(final char[] b, int off, int len) { in append() argument
92 if ((off < 0) in append()
93 || (off > b.length) in append()
95 || ((off + len) < 0) in append()
[all …]
/packages/providers/MediaProvider/jni/
DRedactionInfo.cpp81 bool RedactionInfo::hasOverlapWithReadRequest(size_t size, off64_t off) const { in hasOverlapWithReadRequest()
82 if (!isRedactionNeeded() || off >= redaction_ranges_.back().second || in hasOverlapWithReadRequest()
83 off + size <= redaction_ranges_.front().first) { in hasOverlapWithReadRequest()
119 off64_t off) const { in getOverlappingRedactionRanges()
120 if (hasOverlapWithReadRequest(size, off)) { in getOverlappingRedactionRanges()
121 const off64_t start = off; in getOverlappingRedactionRanges()
122 const off64_t end = static_cast<off64_t>(off + size); in getOverlappingRedactionRanges()
145 void RedactionInfo::getReadRanges(off64_t off, size_t size, std::vector<ReadRange>* out) const { in getReadRanges() argument
146 const auto rr = getOverlappingRedactionRanges(size, off); in getReadRanges()
152 const off64_t read_start = off; in getReadRanges()
DFuseDaemon.cpp1315 static void do_read(fuse_req_t req, size_t size, off_t off, struct fuse_file_info* fi) { in do_read() argument
1320 buf.buf[0].pos = off; in do_read()
1351 static void do_read_with_redaction(fuse_req_t req, size_t size, off_t off, fuse_file_info* fi) { in do_read_with_redaction() argument
1355 h->ri->getReadRanges(off, size, &ranges); in do_read_with_redaction()
1359 do_read(req, size, off, fi); in do_read_with_redaction()
1373 bufvec.off = 0; in do_read_with_redaction()
1387 static void pf_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, in pf_read() argument
1408 do_read_with_redaction(req, size, off, fi); in pf_read()
1410 do_read(req, size, off, fi); in pf_read()
1425 off_t off, in pf_write_buf() argument
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchiveEntryInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { in read() argument
53 return mReadSource.read(b, off, len); in read()
75 int read(byte[] b, int off, int len) throws IOException; in read() argument
136 (b, off, len) -> ((SevenZFile) commonArchive).read(b, off, len), in create()
143 (b, off, len) -> inputStream.read(b, off, len), in create()
148 (b, off, len) -> ((ArchiveInputStream) commonArchive).read(b, off, len), in create()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DREADME.txt30 state information (screen on/off, battery state, sleep policy) go as input into
36 … tethering toggle, scan mode toggle) and provides API to figure if wifi should be turned on or off.
46 Scan-only mode with Wi-Fi turned off:
48off Wi-Fi from settings or from a third party app will show up a dialog reminding the user that sc…
49 …- In the scan mode, the device continues to allow scanning from any app with Wi-Fi turned off. Thi…
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java52 public int read(byte[] b, int off, int len) throws IOException { in read() argument
53 int r = in.read(b, off, len); in read()
85 private void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
86 int r = read(b, off, len); in readOrThrow()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
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()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
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()
84 public void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
85 int r = read(b, off, len); in readOrThrow()
/packages/apps/Camera2/src/com/android/camera/exif/
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()
/packages/providers/MediaProvider/jni/include/libfuse_jni/
DRedactionInfo.h75 void getReadRanges(off64_t off, size_t size, std::vector<ReadRange>* out) const;
101 off64_t off) const;
104 bool hasOverlapWithReadRequest(size_t size, off64_t off) const;
/packages/services/Iwlan/assets/
Ddefaultiwlanerrorconfig.json48 # 3.4.1. WIFI_DISABLE_EVENT: Wifi on to off toggle.
49 # 3.4.2. APM_DISABLE_EVENT: APM on to off toggle.
50 # 3.4.3. APM_ENABLE_EVENT: APM off to on toggle.
52 # 3.4.5. WIFI_CALLING_DISABLE_EVENT: Wifi calling button on to off toggle.
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DIndentingPrintWriter.java94 public void write(String s, int off, int len) { in write() argument
96 s.getChars(off, len - off, buf, 0); in write()
/packages/modules/Connectivity/Tethering/jni/
Dandroid_net_util_TetheringUtils.cpp115 int off = 0; in android_net_util_setupRaSocket() local
116 len = sizeof(off); in android_net_util_setupRaSocket()
117 if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &off, len) != 0) { in android_net_util_setupRaSocket()
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_backward_compatibility_quant8/
Dstdout.txt.expect1 // clang-format off
3 // clang-format off
5 // clang-format off
/packages/modules/adb/client/pairing/
Dpairing_client.cpp136 int off = 1; in StartConnection() local
137 adb_setsockopt(fd.get(), IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off)); in StartConnection()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java109 int off = 0; in concatWithNonParagraphSuggestionSpansOnly() local
114 copyNonParagraphSuggestionSpansFrom((Spanned) text[i], 0, len, ss, off); in concatWithNonParagraphSuggestionSpansOnly() local
117 off += len; in concatWithNonParagraphSuggestionSpansOnly()
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_float/
Dstdout.txt.expect1 // clang-format off
3 // clang-format off
5 // clang-format off
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_quant8/
Dstdout.txt.expect1 // clang-format off
3 // clang-format off
5 // clang-format off
/packages/modules/adb/pairing_connection/tests/
Dpairing_client.cpp170 int off = 1; in StartConnection() local
171 setsockopt(fd.get(), IPPROTO_TCP, TCP_NODELAY, &off, sizeof(off)); in StartConnection()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpegstream.cpp234 int32_t off = static_cast<int32_t>(offset); in OutputStream_writeInputBytes() local
235 in_bytes += off; in OutputStream_writeInputBytes()
259 int32_t off = static_cast<int32_t>(offset); in InputStream_readDecodedBytes() local
265 read = r_ptr->read(in_bytes, off, in_len); in InputStream_readDecodedBytes()

1234