Searched refs:length (Results 201 - 225 of 1563) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/webkit/
H A DURLUtil.java54 if (inUrl.length() == 0) return inUrl;
65 inUrl = inUrl.substring(0, inUrl.length() - 1);
105 placeHolderIndex + queryPlaceHolder.length()));
111 if (url.length == 0) {
115 // Create a new byte array with the same length to ensure capacity
116 byte[] tempData = new byte[url.length];
119 for (int i = 0; i < url.length; i++) {
122 if (url.length - i > 2) {
141 int count = url.length();
231 (url.length() >
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DDynamicLayoutBlocksTest.java42 assertEquals(initialBlockEnds.length, initialBlockIndices.length);
55 assertTrue(dl.getNumberOfBlocks() <= dl.getBlockEndLines().length);
56 assertEquals(dl.getBlockEndLines().length, dl.getBlockIndices().length);
64 dl.setBlocksDataForTest(initialBlockEnds, initialBlockIndices, initialBlockEnds.length);
72 assertEquals(sizes.length, dl.getNumberOfBlocks());
73 assertEquals(indices.length, dl.getNumberOfBlocks());
75 int[] ends = new int[sizes.length];
76 for (int i = 0; i < ends.length;
[all...]
/frameworks/base/core/tests/coretests/src/android/text/util/
H A DLinkifyTest.java37 assertTrue(tv.getUrls().length == 0);
49 assertTrue(tv.getUrls().length == 2);
62 assertTrue(tv.getUrls().length == 2);
/frameworks/base/keystore/tests/src/android/security/
H A DSystemKeyStoreTest.java70 assertEquals(newKey.length, recKey.length);
71 for (int i = 0; i < newKey.length; i++) {
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
H A DDataVerify.java55 if (arr1.length != arr2.length) {
59 for (i = 0; i < arr1.length; i++) {
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java292 int length = Protocol.HEADER_SIZE;
297 buffer = mInputBufferPool.acquire(length);
299 buffer = mInputBufferPool.grow(buffer, length);
322 length += contentSize;
324 if (position < length) {
330 int next = length;
333 length = Protocol.HEADER_SIZE;
335 if (remaining < length) {
344 length += contentSize;
345 if (remaining < length) {
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DSha1Test.java47 int numTests = mTestData.length;
57 StringBuffer hex = new StringBuffer(bytes.length * 2);
59 for (int i = 0; i < bytes.length; i++) {
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGlyphCacheActivity.java68 private String createString(int length) { argument
70 for (int i = 0; i < length; i++) {
71 sb.append(mCharacterSet.charAt((int)(Math.random() * mCharacterSet.length())));
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardParserImpl_V30.java92 } else if (line.length() == 0) {
164 if (strArray.length == 2) {
225 final int length = paramValue.length();
226 for (int i = 0; i < length; i++) {
236 if (builder.length() > 0) {
272 if (builder.length() == 0) {
330 if (line.length() == 0) {
356 final int length = text.length();
[all...]
/frameworks/testing/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
H A DLauncher.java75 if (args.length >= 1) {
79 if (args.length > 1) {
81 args2 = Arrays.copyOfRange(args, 1, args.length);
/frameworks/volley/tests/src/com/android/volley/toolbox/
H A DPoolingByteArrayOutputStreamTest.java57 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/test-runner/src/android/test/
H A DMoreAsserts.java86 if (expected.length != actual.length) {
87 failWrongLength(message, expected.length, actual.length);
89 for (int i = 0; i < expected.length; i++) {
112 if (expected.length != actual.length) {
113 failWrongLength(message, expected.length, actual.length);
115 for (int i = 0; i < expected.length;
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DSimulatedGsmCallState.java57 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 DHeaderSet.java71 * Represents the OBEX Length header. This is the length of the object in
198 private byte[] mWho; // length prefixed byte sequence
200 private byte[] mAppParam; // byte sequence of the form tag length value
319 mTarget = new byte[((byte[])headerValue).length];
320 System.arraycopy(headerValue, 0, mTarget, 0, mTarget.length);
331 mHttpHeader = new byte[((byte[])headerValue).length];
332 System.arraycopy(headerValue, 0, mHttpHeader, 0, mHttpHeader.length);
343 mWho = new byte[((byte[])headerValue).length];
344 System.arraycopy(headerValue, 0, mWho, 0, mWho.length);
355 mObjectClass = new byte[((byte[])headerValue).length];
[all...]
/frameworks/base/core/java/android/text/method/
H A DWordIterator.java35 // Size of the window for the word iterator, should be greater than the longest word's length
60 final int windowEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH);
159 if (shiftedOffset >= 1 && shiftedOffset <= mString.length()) {
167 if (shiftedOffset >= 0 && shiftedOffset < mString.length()) {
175 if (shiftedOffset < 0 || shiftedOffset > mString.length()) {
177 ". Valid range is [" + mOffsetShift + ", " + (mString.length() + mOffsetShift) +
H A DTouch.java94 ds = buffer.getSpans(0, buffer.length(), DragState.class);
96 for (int i = 0; i < ds.length; i++) {
106 ds = buffer.getSpans(0, buffer.length(), DragState.class);
108 for (int i = 0; i < ds.length; i++) {
112 if (ds.length > 0 && ds[0].mUsed) {
119 ds = buffer.getSpans(0, buffer.length(), DragState.class);
121 if (ds.length > 0) {
184 DragState[] ds = buffer.getSpans(0, buffer.length(), DragState.class);
185 return ds.length > 0 ? ds[0].mScrollX : -1;
193 DragState[] ds = buffer.getSpans(0, buffer.length(), DragStat
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFastXmlSerializer.java80 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 DDatabaseLocaleTest.java75 assertEquals(STRINGS.length, result.length);
120 assertEquals(expectedString.length(), actualString.length());
121 for (int i = 0; i < expectedString.length(); i++) {
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneData.java124 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/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java322 if (restoredSupplicantData.length <= 0) return;
333 if (restoredWifiConfigFile.length <= 0) return;
360 restoredSupplicantData, restoredSupplicantData.length);
368 restoredWifiConfigFile, restoredWifiConfigFile.length);
450 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data");
451 out.writeInt(systemSettingsData.length);
453 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data");
454 out.writeInt(secureSettingsData.length);
456 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length + " bytes of global settings data");
457 out.writeInt(globalSettingsData.length);
[all...]
/frameworks/base/core/java/android/app/
H A DApplication.java107 for (int i=0; i<callbacks.length; i++) {
116 for (int i=0; i<callbacks.length; i++) {
125 for (int i=0; i<callbacks.length; i++) {
188 for (int i=0; i<callbacks.length; i++) {
198 for (int i=0; i<callbacks.length; i++) {
207 for (int i=0; i<callbacks.length; i++) {
216 for (int i=0; i<callbacks.length; i++) {
225 for (int i=0; i<callbacks.length; i++) {
234 for (int i=0; i<callbacks.length; i++) {
244 for (int i=0; i<callbacks.length;
[all...]
/frameworks/base/core/java/android/preference/
H A DMultiCheckPreference.java82 mSetValues = new boolean[entries.length];
83 mOrigValues = new boolean[entries.length];
127 mEntryValues = new String[values.length];
128 for (int i=0; i<values.length; i++) {
166 values.length < mSetValues.length ? values.length : mSetValues.length);
222 for (int i = mEntryValues.length - 1; i >= 0; i--) {
240 mOrigValues = Arrays.copyOf(mSetValues, mSetValues.length);
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_SerialPort.cpp169 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/packages/SystemUI/src/com/android/systemui/recent/
H A DFadedEdgeDrawHelper.java114 int length = (int) fadeHeight;
116 // clip the fade length if top and bottom fades overlap
118 if (mIsVertical && (top + length > bottom - length)) {
119 length = (bottom - top) / 2;
123 if (!mIsVertical && (left + length > right - length)) {
124 length = (right - left) / 2;
145 canvas.drawRect(left, top, right, top + length, mFadePaint);
160 canvas.drawRect(left, bottom - length, righ
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceResponse.java201 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...]

Completed in 813 milliseconds

1234567891011>>