/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | Duration.java | 56 int len = str.length(); 60 if (len < 1) { 73 if (len <= index) { 84 if (len <= index) { 93 for (; index < len; index++) {
|
/frameworks/minikin/tools/ |
H A D | mk_hyb_file.py | 68 this = len(self.pred) 88 while ix >= len(self.pred): 109 if len(b) < len(a): a, b = b, a 110 res = b[:len(b) - len(a)] 111 for i in range(len(a)): 112 res.append(max(a[i], b[i + len(b) - len(a)])) 117 for ix in range(len(patter [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_StringBlock.cpp | 36 jint off, jint len) 44 if (off < 0 || off >= bLen || len < 0 || len > bLen || (off+len) > bLen) { 50 ResStringPool* osb = new ResStringPool(b+off, len, true); 83 size_t len; local 84 const char* str8 = osb->string8At(idx, &len); 89 const char16_t* str = osb->stringAt(idx, &len); 95 return env->NewString((const jchar*)str, len); 34 android_content_StringBlock_nativeCreate(JNIEnv* env, jobject clazz, jbyteArray bArray, jint off, jint len) argument
|
H A D | android_os_SystemProperties.cpp | 33 int len; local 45 len = property_get(key, buf, ""); 46 if ((len <= 0) && (defJ != NULL)) { 48 } else if (len >= 0) { 69 int len; local 82 len = property_get(key, buf, ""); 83 if (len > 0) { 99 int len; local 112 len = property_get(key, buf, ""); 113 if (len > 129 int len; local [all...] |
H A D | com_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp | 80 jsize len = env->GetArrayLength(jlut); local 81 if (len <= 0) { 84 float* lut = new float[len]; 85 env->GetFloatArrayRegion(jlut, 0, len, lut); 86 return reinterpret_cast<jlong>(new LUTInterpolator(lut, len));
|
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TextDescriptions.cpp | 270 size_t len = *(tmpData + 4); local 271 parcel->writeInt32(len); 275 if (remaining < len) { 280 parcel->writeInt32(len); 281 parcel->write(tmpData + 5, len); 283 tmpData += (5 + len); 284 remaining -= len; 292 len = *tmpData; 293 parcel->writeInt32(len); 297 if (remaining < len) { 476 size_t len = *(tmpData + 2); local [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | Hyphenator.cpp | 77 static uint32_t len(uint32_t entry) { return entry >> 26; } function in struct:minikin::Pattern 119 void Hyphenator::hyphenate(vector<HyphenationType>* result, const uint16_t* word, size_t len, argument 122 result->resize(len); 123 const size_t paddedLen = len + 2; // start and stop code each count for 1 125 len >= minPrefix + minSuffix && paddedLen <= MAX_HYPHENATED_SIZE) { 127 const HyphenationType hyphenValue = alphabetLookup(alpha_codes, word, len); 138 hyphenateWithNoPatterns(result->data(), word, len, locale); 258 static inline HyphenationType getHyphTypeForArabic(const uint16_t* word, size_t len, argument 262 while (static_cast<size_t>(i) < len && (type = getJoiningType(word[i])) == U_JT_TRANSPARENT) { 283 void Hyphenator::hyphenateWithNoPatterns(HyphenationType* result, const uint16_t* word, size_t len, argument 325 alphabetLookup(uint16_t* alpha_codes, const uint16_t* word, size_t len) argument 384 hyphenateFromCodes(HyphenationType* result, const uint16_t* codes, size_t len, HyphenationType hyphenValue) argument [all...] |
/frameworks/base/packages/SystemUI/scripts/ |
H A D | new_merge.py | 45 if ("DIFF_TOOL" in os.environ and len(os.environ["DIFF_TOOL"]) > 0): 47 if len(DIFF_TOOL) == 0: 50 if len(DIFF_TOOL) > 0: 85 if len(argv) > 1: 126 fileList.append(f[len(rootdir):]) 140 if (line.find(skip) < 0 and len(line.strip(' \t\n\r')) > 0): 143 if len(replace) > 0: 157 if len(WATCH) > 0:
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/util/ |
H A D | XmlUtils_Delegate.java | 44 int len = nm.length(); 54 if (index == (len - 1))
|
/frameworks/native/libs/gui/ |
H A D | BitTube.cpp | 90 ssize_t err, len; local 92 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); 94 err = len < 0 ? errno : 0; 96 return err == 0 ? len : -err; 100 ssize_t err, len; 102 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); 103 err = len < 0 ? errno : 0; 110 return err == 0 ? len : -err;
|
/frameworks/native/libs/sensor/ |
H A D | BitTube.cpp | 107 ssize_t err, len; local 109 len = ::send(mSendFd, vaddr, size, MSG_DONTWAIT | MSG_NOSIGNAL); 111 err = len < 0 ? errno : 0; 113 return err == 0 ? len : -err; 118 ssize_t err, len; 120 len = ::recv(mReceiveFd, vaddr, size, MSG_DONTWAIT); 121 err = len < 0 ? errno : 0; 128 return err == 0 ? len : -err;
|
/frameworks/native/opengl/libs/tools/ |
H A D | glapigen | 53 my $len = scalar(@args); 54 for (my $num = 0; $num < $len; $num++) {
|
/frameworks/rs/tests/lldb/tests/harness/ |
H A D | RS_funs.py | 1355 if len(token.split()) == 1: 1387 assert len(tokens) > 0
|
/frameworks/base/media/java/android/media/ |
H A D | ResampleInputStream.java | 97 int len = ((mBufCount / 2 - mFirLength) * mRateOut / mRateIn) * 2; 98 if (len > 0) { 99 length = len < length ? len : (length / 2) * 2;
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_ConsumerIrService.cpp | 57 int len; local 70 len = ranges.size(); 73 ScopedIntArrayRW freqsOut(env, env->NewIntArray(len*2)); 78 for (i = 0; i < len; i++) {
|
H A D | com_android_server_am_BatteryStatsService.cpp | 124 int len; local 129 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "%d" : ":%d", irq); 140 len = snprintf(mergedreasonpos, remainreasonlen, i == 0 ? "Abort" : ":Abort"); 145 if (len >= 0 && len < remainreasonlen) { 146 mergedreasonpos += len; 147 remainreasonlen -= len; 165 len = snprintf(mergedreasonpos, remainreasonlen, ":%s", pos); 166 if (len >= 0 && len < remainreasonle [all...] |
/frameworks/rs/cpp/ |
H A D | Script.cpp | 24 void Script::invoke(uint32_t slot, const void *v, size_t len) const { 25 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); 51 void Script::setVar(uint32_t index, const void *v, size_t len) const { 52 tryDispatch(mRS, RS::dispatch->ScriptSetVarV(mRS->getContext(), getID(), index, v, len));
|
/frameworks/rs/driver/ |
H A D | rsdMesh.h | 27 uint32_t primIndex, uint32_t start, uint32_t len);
|
/frameworks/base/core/java/android/text/util/ |
H A D | Rfc822Tokenizer.java | 179 int len = sb.length(); 181 while (i < len) { 185 if (i == 0 || i == len - 1 || 191 len--; 200 for (i = 0; i < len; i++) { 242 int len = text.length(); 245 while (i < len) { 253 while (i < len) { 259 } else if (c == '\\' && i + 1 < len) { 269 while (i < len [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | BitwiseOutputStream.java | 64 int len = (mPos >>> 3) + ((mPos & 0x07) > 0 ? 1 : 0); // &7==%8 65 byte[] newBuf = new byte[len]; 66 System.arraycopy(mBuf, 0, newBuf, 0, len);
|
/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 33 void ReadUtf16StringFromDevice(const uint16_t* src, size_t len, std::string* out) { argument 35 while (*src && len != 0) { 40 --len;
|
/frameworks/base/tools/aapt2/io/ |
H A D | File.h | 51 IFile* CreateFileSegment(size_t offset, size_t len); 70 explicit FileSegment(IFile* file, size_t offset, size_t len) argument 71 : file_(file), offset_(offset), len_(len) {}
|
/frameworks/native/libs/gui/view/ |
H A D | Surface.cpp | 87 size_t len; local 88 const char16_t* str = parcel->readString16Inplace(&len); 90 return String16(str, len);
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | mandelbulb.rs | 63 float len;
67 len = fast_length(p);
68 if (len > 2.f) return 255 - loop*10;
69 if (len < .3f) return loop*10;
72 len = length(p);
73 return (short) (255 - (len * 255) / 4);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 51 public int read(byte[] b, int off, int len) throws IOException { argument 52 int r = in.read(b, off, len); 82 public void readOrThrow(byte[] b, int off, int len) throws IOException { argument 83 int r = read(b, off, len); 84 if (r != len) throw new EOFException();
|