/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | GridTest.java | 37 mCount = items.length; 52 public void addItem(Object item, int index, int length, int rowIndex, int edge) { argument 75 for (int i= 0; i < mEdges.length; i++) {
|
H A D | GridActivity.java | 164 for (int i = 0; i < mItemLengths.length; i++) { 172 mNumItems = mItemLengths.length; 247 void changeArraySize(int length) { argument 248 mNumItems = length; 252 int[] removeItems(int index, int length) { argument 253 int[] removed = new int[length]; 254 System.arraycopy(mItemLengths, index, removed, 0, length); 255 System.arraycopy(mItemLengths, index + length, mItemLengths, index, 256 mNumItems - index - length); 257 mNumItems -= length; [all...] |
/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
H A D | PoolingByteArrayOutputStreamTest.java | 57 for (int i = 0; i < data.length; i++) { 68 for (int i = 0; i < data.length; i++) { 72 for (int i = 0; i < data.length; i++) {
|
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 228 * Read a text file into a String, optionally limiting the length. 230 * @param max length (positive for head, negative of tail, 0 for no limit) 242 long size = file.length(); 246 int length = bis.read(data); 247 if (length <= 0) return ""; 248 if (length <= max) return new String(data, 0, length); 261 } while (len == data.length); 267 System.arraycopy(last, len, last, 0, last.length - len); 268 System.arraycopy(data, 0, last, last.length [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
H A D | SimulatedGsmCallState.java | 57 if (number.length() > 0 && number.charAt(0) == '+') { 184 for (int i = 0 ; i < mCalls.length ; i++) { 221 for (int i = 0 ; i < mCalls.length ; i++) { 247 for (int i = 0 ; i < mCalls.length ; i++) { 284 for (int i = 0 ; i < mCalls.length ; i++) { 296 for (int i = 0 ; i < mCalls.length ; i++) { 321 for (int i = 0 ; i < mCalls.length ; i++) { 343 for (int i = 0 ; i < mCalls.length ; i++) { 360 for (int i = 0 ; i < mCalls.length ; i++) { 379 for (int i = 0 ; i < mCalls.length ; [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | HeaderSet.java | 72 * Represents the OBEX Length header. This is the length of the object in 217 private byte[] mWho; // length prefixed byte sequence 219 private byte[] mAppParam; // byte sequence of the form tag length value 263 * have length of 5 bytes. It should be 3 bytes with only header id and 264 * length field. 362 mTarget = new byte[((byte[])headerValue).length]; 363 System.arraycopy(headerValue, 0, mTarget, 0, mTarget.length); 374 mHttpHeader = new byte[((byte[])headerValue).length]; 375 System.arraycopy(headerValue, 0, mHttpHeader, 0, mHttpHeader.length); 386 mWho = new byte[((byte[])headerValue).length]; [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | ApnSetting.java | 117 this.types = new String[types.length]; 118 for (int i = 0; i < types.length; i++) { 181 if (a.length < 14) { 205 typeArray = new String[a.length - 13]; 206 System.arraycopy(a, 13, typeArray, 0, a.length - 13); 211 if (a.length < 18) { 221 if (a.length > 22) { 231 if (a.length > 23) { 237 if (a.length > 25) { 286 for (int i = 0; i < types.length; [all...] |
/frameworks/base/core/java/android/net/ |
H A D | IpPrefix.java | 34 * <li>A prefix length. This specifies the length of the prefix by specifing the number of bits 51 if (address.length != 4 && address.length != 16) { 53 "IpPrefix has " + address.length + " bytes which is neither 4 nor 16"); 60 * network byte order and a prefix length. Silently truncates the address to the prefix length, 64 * @param prefixLength the prefix length. Must be >= 0 and <= (32 or 128) (IPv4 or IPv6). 75 * Constructs a new {@code IpPrefix} from an IPv4 or IPv6 address and a prefix length. Silently 76 * truncates the address to the prefix length, s [all...] |
/frameworks/base/core/java/android/net/netlink/ |
H A D | StructNlMsgHdr.java | 55 if (sb.length() > 0) { sb.append("|"); } 59 if (sb.length() > 0) { sb.append("|"); } 63 if (sb.length() > 0) { sb.append("|"); } 67 if (sb.length() > 0) { sb.append("|"); } 71 if (sb.length() > 0) { sb.append("|"); }
|
/frameworks/base/core/java/android/transition/ |
H A D | PatternPathMotion.java | 105 float length = pathMeasure.getLength(); 107 pathMeasure.getPosTan(length, pos, null); 134 float length = (float) Math.hypot(dx, dy); 137 mTempMatrix.setScale(length, length);
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 80 private void append(String str, int i, final int length) throws IOException { argument 81 if (length > BUFFER_LEN) { 82 final int end = i + length; 91 if ((pos+length) > BUFFER_LEN) { 95 str.getChars(i, i+length, mText, pos); 96 mPos = pos + length; 99 private void append(char[] buf, int i, final int length) throws IOException { argument 100 if (length > BUFFER_LEN) { 101 final int end = i + length; 110 if ((pos+length) > BUFFER_LE [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseLocaleTest.java | 75 assertEquals(STRINGS.length, result.length); 120 assertEquals(expectedString.length(), actualString.length()); 121 for (int i = 0; i < expectedString.length(); i++) {
|
/frameworks/base/docs/html/ndk/reference/ |
H A D | dynsections.js | 12 $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); 17 $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); 30 var l = this.id.split('_').length-1; 91 $(img).attr('src',src.substring(0,src.length-8)+'closed.png'); 94 $(img).attr('src',src.substring(0,src.length-10)+'open.png');
|
/frameworks/base/media/java/android/media/midi/ |
H A D | MidiInputPort.java | 77 if (offset < 0 || count < 0 || offset + count > msg.length) { 88 int length = MidiPortImpl.packData(msg, offset, count, timestamp, mBuffer); 89 mOutputStream.write(mBuffer, 0, length); 99 int length = MidiPortImpl.packFlush(mBuffer); 100 mOutputStream.write(mBuffer, 0, length);
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | ScriptC.java | 103 int bytesLeft = pgm.length - pgmLength; 105 byte[] buf2 = new byte[pgm.length * 2]; 106 System.arraycopy(pgm, 0, buf2, 0, pgm.length); 108 bytesLeft = pgm.length - pgmLength; 143 return rs.nScriptCCreate(resName, mCachePath, bitcode, bitcode.length);
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberFormattingTextWatcher.java | 101 mStopFormatting = !(s.length() == 0); 112 s.replace(0, s.length(), formatted, 0, formatted.length()); 120 PhoneNumberUtils.ttsSpanAsPhoneNumber(s, 0, s.length()); 135 int len = s.length();
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/ |
H A D | OMAConstants.java | 53 byte[] prefix = String.format("%x:", octets.length).getBytes(StandardCharsets.UTF_8); 73 int length = Integer.parseInt(prefix.toString(), 16); 74 byte[] octets = new byte[length]; 76 while (offset < octets.length) { 77 int amount = in.read(octets, offset, octets.length - offset);
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneData.java | 124 Log.e(TAG, "Available time zones: " + tzIds.length); 181 mTimeZonesByOffsets = new SparseArray<ArrayList<Integer>>(mHasTimeZonesInHrOffset.length); 268 int length = ids.length; 269 if (ids.length != labels.length) { 270 Log.e(TAG, "timezone_rename_ids len=" + ids.length + " timezone_rename_labels len=" 271 + labels.length); 272 length = Math.min(ids.length, label [all...] |
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | Cube.java | 51 System.arraycopy(src.mTrim, 0, mTrim, 0, mTrim.length);
52 mVert = Arrays.copyOf(src.mVert, src.mVert.length);
53 mIndex = Arrays.copyOf(src.mIndex, src.mIndex.length);
74 ret += s.substring(s.length() - 8);
106 for (int i = 0; i < mIndex.length; i++) {
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptC.java | 97 int bytesLeft = pgm.length - pgmLength; 99 byte[] buf2 = new byte[pgm.length * 2]; 100 System.arraycopy(pgm, 0, buf2, 0, pgm.length); 102 bytesLeft = pgm.length - pgmLength; 128 return rs.nScriptCCreate(resName, cachePath, bitcode, bitcode.length);
|
/frameworks/base/core/java/android/app/ |
H A D | Application.java | 111 for (int i=0; i<callbacks.length; i++) { 121 for (int i=0; i<callbacks.length; i++) { 131 for (int i=0; i<callbacks.length; i++) { 194 for (int i=0; i<callbacks.length; i++) { 204 for (int i=0; i<callbacks.length; i++) { 213 for (int i=0; i<callbacks.length; i++) { 222 for (int i=0; i<callbacks.length; i++) { 231 for (int i=0; i<callbacks.length; i++) { 240 for (int i=0; i<callbacks.length; i++) { 250 for (int i=0; i<callbacks.length; [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | MultiCheckPreference.java | 92 mSetValues = new boolean[entries.length]; 93 mOrigValues = new boolean[entries.length]; 137 mEntryValues = new String[values.length]; 138 for (int i=0; i<values.length; i++) { 176 values.length < mSetValues.length ? values.length : mSetValues.length); 232 for (int i = mEntryValues.length - 1; i >= 0; i--) { 250 mOrigValues = Arrays.copyOf(mSetValues, mSetValues.length); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 110 mSpellCheckSpans = new SpellCheckSpan[mIds.length]; 172 final int length = mSpellParsers.length; 173 for (int i = 0; i < length; i++) { 226 end = mTextView.getText().length(); 238 final int length = mSpellParsers.length; 239 for (int i = 0; i < length; i++) { 251 SpellParser[] newSpellParsers = new SpellParser[length + 1]; 252 System.arraycopy(mSpellParsers, 0, newSpellParsers, 0, length); 323 onGetSuggestionsInternal( SuggestionsInfo suggestionsInfo, int offset, int length) argument 453 createMisspelledSuggestionSpan(Editable editable, SuggestionsInfo suggestionsInfo, SpellCheckSpan spellCheckSpan, int offset, int length) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_SerialPort.cpp | 169 android_hardware_SerialPort_read_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument 172 jbyte* buf = (jbyte *)malloc(length); 178 int ret = read(fd, buf, length); 191 android_hardware_SerialPort_read_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument 201 int ret = read(fd, buf, length); 208 android_hardware_SerialPort_write_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument 211 jbyte* buf = (jbyte *)malloc(length); 216 env->GetByteArrayRegion(buffer, 0, length, buf); 218 jint ret = write(fd, buf, length); 225 android_hardware_SerialPort_write_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pServiceResponse.java | 201 if (args.length != 4) { 223 // The length equals to 3 plus the number of octets in the vendor 225 int length = (dis.readUnsignedByte() + 230 if (length < 0) { 233 if (length == 0) { 240 if (length > MAX_BUF_SIZE) { 241 dis.skip(length); 244 byte[] data = new byte[length]; 279 int sz = hex.length()/2; 280 byte[] b = new byte[hex.length()/ [all...] |