/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_crc.h | 91 uint32 length,
|
/frameworks/base/services/java/com/android/server/ |
H A D | ClipboardService.java | 54 return mClipboard.length() > 0;
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsAddress.java | 59 // So we just attempt to treat any message from an address length <= 4 62 return address.length() <= 4;
|
/frameworks/base/tests/BrowserTestPlugin/jni/event/ |
H A D | EventPlugin.h | 39 void printToDiv(const char* text, int length);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | GradientShader.java | 45 if (colors.length < 2) { 48 if (positions != null && colors.length != positions.length) { 49 throw new IllegalArgumentException("color and position arrays must be of equal length"); 53 float spacing = 1.f / (colors.length - 1); 54 positions = new float[colors.length]; 56 positions[colors.length-1] = 1.f; 57 for (int i = 1; i < colors.length - 1 ; i++) {
|
/frameworks/base/core/java/com/google/android/mms/pdu/ |
H A D | PduPart.java | 141 mPartData = new byte[data.length]; 142 System.arraycopy(data, 0, mPartData, 0, data.length); 155 byte[] byteArray = new byte[mPartData.length]; 156 System.arraycopy(mPartData, 0, byteArray, 0, mPartData.length); 185 if((contentId == null) || (contentId.length == 0)) { 190 if ((contentId.length > 1) 192 && ((char) contentId[contentId.length - 1] == '>')) { 198 byte[] buffer = new byte[contentId.length + 2]; 200 buffer[buffer.length - 1] = (byte) (0xff & '>'); 201 System.arraycopy(contentId, 0, buffer, 1, contentId.length); [all...] |
H A D | Base64.java | 32 * The base length. 69 if (base64Data.length == 0) { 73 int numberQuadruple = base64Data.length / FOURBYTE; 83 int lastData = base64Data.length; 152 byte groomedData[] = new byte[data.length]; 155 for (int i = 0; i < data.length; i++) {
|
/frameworks/base/awt/java/awt/image/ |
H A D | DataBufferUShort.java | 45 * the length (number of elements) to use from the data arrays. 51 super(TYPE_USHORT, size, dataArrays.length, offsets); 52 for (int i = 0; i < dataArrays.length; i++) { 53 if (dataArrays[i].length < offsets[i] + size) { 68 * the length (number of elements) to use from the data arrays. 71 super(TYPE_USHORT, size, dataArrays.length); 82 * the length (number of elements) to use. 88 if (dataArray.length < size + offset) { 103 * the length (number of elements) to use. 116 * the length (numbe [all...] |
/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
H A D | Svc.java | 38 if (args.length >= 1) { 49 final int N = COMMANDS.length; 67 if (args.length == 2) { 76 final int N = COMMANDS.length; 80 int len = c.name().length();
|
/frameworks/base/core/java/android/app/backup/ |
H A D | FileBackupHelperBase.java | 55 if (files.length == 0) { 64 // the length of files and keys must be the same 65 if (files.length != keys.length) { 66 throw new RuntimeException("files.length=" + files.length 67 + " keys.length=" + keys.length);
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | BaseInputConnection.java | 77 Object[] sps = text.getSpans(0, text.length(), Object.class); 79 for (int i=sps.length-1; i>=0; i--) { 89 final Object[] sps = text.getSpans(0, text.length(), Object.class); 91 for (int i=sps.length-1; i>=0; i--) { 108 text.setSpan(COMPOSING, 0, text.length(), 226 if (end > content.length()) end = content.length(); 287 public CharSequence getTextBeforeCursor(int length, int flags) { argument 304 if (length > a) { 305 length 318 getTextAfterCursor(int length, int flags) argument [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsBackupAgent.java | 197 output.writeEntityHeader(key, data.length); 198 output.writeEntityData(data, data.length); 241 data.readEntityData(settings, 0, settings.length); 247 while (pos < settings.length) { 248 int length = readInt(settings, pos); 250 String settingName = length > 0? new String(settings, pos, length) : null; 251 pos += length; 252 length = readInt(settings, pos); 254 String settingValue = length > [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LongSparseArray.java | 56 int length = mKeys.length; 57 long[] result = new long[length]; 58 System.arraycopy(mKeys, 0, result, 0, length); 68 int length = keys.length; 69 for (int i = 0; i < length; i++) { 163 if (mGarbage && mSize >= mKeys.length) { 170 if (mSize >= mKeys.length) { 176 // Log.e("SparseArray", "grow " + mKeys.length [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | BitwiseStreamsTest.java | 39 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); 42 byte[] inBufDup = new byte[inBuf.length]; 44 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); 54 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); 57 byte[] inBufDup = new byte[inBuf.length]; 58 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); 68 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]); 71 byte[] inBufDup = new byte[inBuf.length]; 72 for (int i = 0; i < inBufDup.length; i++) inBufDup[i] = (byte)inStream.read(8); 82 for (int i = 0; i < inBuf.length; [all...] |
/frameworks/base/tools/preload/ |
H A D | sorttable.js | 43 if (table.getElementsByTagName('thead').length == 0) { 53 if (table.tHead.rows.length != 1) return; // can't cope with two header rows 60 for (var i=0; i<table.rows.length; i++) { 62 sortbottomrows[sortbottomrows.length] = table.rows[i]; 71 for (var i=0; i<sortbottomrows.length; i++) { 79 for (var i=0; i<headrow.length; i++) { 147 for (var j=0; j<rows.length; j++) { 148 row_array[row_array.length] = [sorttable.getInnerText(rows[j].cells[col]), rows[j]]; 156 for (var j=0; j<row_array.length; j++) { 169 for (var i=0; i<table.tBodies[0].rows.length; [all...] |
/frameworks/base/core/java/android/net/ |
H A D | UrlQuerySanitizer.java | 275 JAVASCRIPT_PREFIX.length(), VBSCRIPT_PREFIX.length()); 305 int length = value.length(); 307 if (length >= MIN_SCRIPT_PREFIX_LENGTH) { 320 // The length could have changed, so we need to correct 321 // the length variable. 322 length = value.length(); 325 StringBuilder stringBuilder = new StringBuilder(length); [all...] |
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 149 * Read a text file into a String, optionally limiting the length. 151 * @param max length (positive for head, negative of tail, 0 for no limit) 159 long size = file.length(); 163 int length = input.read(data); 164 if (length <= 0) return ""; 165 if (length <= max) return new String(data, 0, length); 177 } while (len == data.length); 183 System.arraycopy(last, len, last, 0, last.length - len); 184 System.arraycopy(data, 0, last, last.length [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | PasswordTransformationMethod.java | 48 ViewReference[] vr = sp.getSpans(0, sp.length(), 50 for (int i = 0; i < vr.length; i++) { 80 ViewReference[] vr = sp.getSpans(0, s.length(), 82 if (vr.length == 0) { 94 for (int i = 0; v == null && i < vr.length; i++) { 133 Visible[] old = sp.getSpans(0, sp.length(), Visible.class); 134 for (int i = 0; i < old.length; i++) { 146 public int length() { method in class:PasswordTransformationMethod.PasswordCharSequence 147 return mSource.length(); 161 Visible[] visible = sp.getSpans(0, sp.length(), Visibl [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | SpannedTest.java | 48 ss.setSpan(o, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 54 assertEquals(1, ssb.getSpans(0, 4, Object.class).length); 59 assertEquals(0, ssb.getSpans(0, 4, Object.class).length); 60 assertEquals(1, ssb.getSpans(4, 8, Object.class).length); 84 assertEquals(1, style.length); 89 assertEquals(1, style.length); 95 assertEquals(1, appearance.length); 100 assertEquals(1, tf.length); 121 Object[] spans = s.getSpans(0, s.length(), Object.class); 123 for (int i = 0; i < spans.length [all...] |
/frameworks/base/core/java/android/text/util/ |
H A D | Rfc822Token.java | 86 if (mName != null && mName.length() != 0) { 91 if (mComment != null && mComment.length() != 0) { 97 if (mAddress != null && mAddress.length() != 0) { 112 int len = name.length(); 136 int len = name.length(); 156 int len = comment.length();
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | HeapTest.java | 117 for (int i = 0; i < objects.length; i++) { 126 for (i = 0; i < refs.length; i++) { 139 for (int i = 0; i < objects.length; i += skip) { 151 for (int i = 0; i < objects.length; i++) { 166 SoftReference<Object> refs[] = new SoftReference[objects.length]; 209 SoftReference<Object> refs[] = new SoftReference[objects.length]; 233 while (i < junk.length && totalSize < 8 * 1024 * 1024) { 245 for (int i = 0; i < objects.length; i++) { 254 for (int i = 0; i < objects.length; i++) { 270 WeakReference<Object> refs[] = new WeakReference[objects.length]; [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | AtCommandResult.java | 112 if (str1.length() > 0 && str2.length() > 0) {
|
/frameworks/base/core/java/android/ddm/ |
H A D | DdmHandleNativeHeap.java | 82 Log.i("ddm-nativeheap", "Sending " + data.length + " bytes"); 83 return new Chunk(ChunkHandler.type("NHGT"), data, 0, data.length);
|
H A D | DdmHandleThread.java | 109 return new Chunk(CHUNK_THST, status, 0, status.length); 153 bufferSize += 4 + elem.getClassName().length() * 2; 154 bufferSize += 4 + elem.getMethodName().length() * 2; 157 bufferSize += elem.getFileName().length() * 2; 164 out.putInt(trace.length); 166 out.putInt(elem.getClassName().length()); 168 out.putInt(elem.getMethodName().length()); 171 out.putInt(elem.getFileName().length());
|
/frameworks/base/core/java/android/text/ |
H A D | AndroidBidi.java | 30 if (n < 0 || chs.length < n || chInfo.length < n) {
|