/external/v8/test/webkit/ |
array-lastIndexOf.js | 30 var lastIndex = 0; 32 lastIndex = testArray.lastIndexOf(2,-500); 33 shouldBe('lastIndex', '-1'); 34 lastIndex = testArray.lastIndexOf(9,500); 35 shouldBe('lastIndex', '2'); 36 lastIndex = testArray.lastIndexOf(2); 37 shouldBe('lastIndex', '3'); 38 lastIndex = testArray.lastIndexOf(7); 39 shouldBe('lastIndex', '-1'); 40 lastIndex = testArray.lastIndexOf(2, 3) [all...] |
array-enumerators-functions-expected.txt | 29 PASS count=0;lastIndex=-1;copyArray(simpleArray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObject(simpleArray), forwarders[f], returnFalse, 0) 30 PASS count=0;lastIndex=-1;copyArray(emptyArray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObject(emptyArray), forwarders[f], returnFalse, 0) 31 PASS count=0;lastIndex=-1;copyArray(largeEmptyArray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObject(largeEmptyArray), forwarders[f], returnFalse, 0) 32 PASS count=0;lastIndex=-1;copyArray(largeSparseArray).every(forwarders[f], returnFalse, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObject(largeSparseArray), forwarders[f], returnFalse, 0) 33 PASS count=0;lastIndex=-1;copyArray(simpleArray).every(forwarders[f], returnTrue, 0) is count=0;lastIndex=-1;Array.prototype.every.call(toObject(simpleArray), forwarders[f], returnTrue, 0 [all...] |
array-lastIndexOf-expected.txt | 29 PASS lastIndex is -1 30 PASS lastIndex is 2 31 PASS lastIndex is 3 32 PASS lastIndex is -1 33 PASS lastIndex is 3 34 PASS lastIndex is 0 35 PASS lastIndex is 0 36 PASS lastIndex is 3 37 PASS lastIndex is -1 38 PASS lastIndex is - [all...] |
/external/v8/test/webkit/fast/regex/ |
lastIndex.js | 25 "This page tests that a RegExp object's lastIndex behaves like a regular property." 28 // lastIndex is not configurable 29 shouldBeFalse("delete /x/.lastIndex"); 30 shouldThrow("'use strict'; delete /x/.lastIndex"); 32 // lastIndex is not enumerable 33 shouldBeTrue("'lastIndex' in /x/"); 34 shouldBeTrue("for (property in /x/) if (property === 'lastIndex') throw false; true"); 36 // lastIndex is writable 37 shouldBeTrue("var re = /x/; re.lastIndex = re; re.lastIndex === re") [all...] |
lastIndex-expected.txt | 24 This page tests that a RegExp object's lastIndex behaves like a regular property. 29 PASS delete /x/.lastIndex is false 30 PASS 'use strict'; delete /x/.lastIndex threw exception TypeError: Cannot delete property 'lastIndex' of [object RegExp]. 31 PASS 'lastIndex' in /x/ is true 32 PASS for (property in /x/) if (property === 'lastIndex') throw false; true is true 33 PASS var re = /x/; re.lastIndex = re; re.lastIndex === re is true 35 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:true}); true threw exception TypeError: Cannot redefine property: lastIndex [all...] |
malformed-escapes-expected.txt | 32 PASS regexp.lastIndex is 2 36 PASS regexp.lastIndex is 2 40 PASS regexp.lastIndex is 3 44 PASS regexp.lastIndex is 1 48 PASS regexp.lastIndex is 1 52 PASS regexp.lastIndex is 2
|
malformed-escapes.js | 33 shouldBe("regexp.lastIndex", "2"); 38 shouldBe("regexp.lastIndex", "2"); 43 shouldBe("regexp.lastIndex", "3"); 48 shouldBe("regexp.lastIndex", "1"); 53 shouldBe("regexp.lastIndex", "1"); 58 shouldBe("regexp.lastIndex", "2");
|
quantified-assertions.js | 33 shouldBe("regexp.lastIndex", "0"); 38 shouldBe("regexp.lastIndex", "0"); 43 shouldBe("regexp.lastIndex", "0"); 48 shouldBe("regexp.lastIndex", "0");
|
quantified-assertions-expected.txt | 32 PASS regexp.lastIndex is 0 36 PASS regexp.lastIndex is 0 40 PASS regexp.lastIndex is 0 44 PASS regexp.lastIndex is 0
|
/external/v8/test/mjsunit/regress/ |
regress-2437.js | 28 // Summary of the spec: lastIndex is reset to 0 if 33 // Otherwise lastIndex is only set when a global regexp matches, to the index 38 r.lastIndex = 1; 40 assertEquals(0, r.lastIndex); 44 r.lastIndex = 1; 46 assertEquals(0, r.lastIndex); 50 r.lastIndex = 1; 52 assertEquals(0, r.lastIndex); 56 r.lastIndex = 1; 58 assertEquals(0, r.lastIndex); [all...] |
regress-254.js | 30 // RegExp with global flag: exec and test updates lastIndex. 33 assertEquals(0, re.lastIndex, "Global, initial lastIndex"); 36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1"); 38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2"); 41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1"); 43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2") [all...] |
regress-52801.js | 36 // RegExp caching doesn't set lastIndex correctly. 46 assertEquals(5, re.lastIndex); 48 re.lastIndex = 0; 50 assertEquals(5, re.lastIndex); // Fails if caching. 52 re.lastIndex = 0; 54 assertEquals(5, re.lastIndex); // Fails if caching. 61 assertEquals(5, re.lastIndex); 63 re.lastIndex = 0; 65 assertEquals(5, re.lastIndex); // Fails if caching. 67 re.lastIndex = 0 [all...] |
regress-447561.js | 10 assertEquals(0, lastIndex);
|
/external/v8/test/mjsunit/es6/ |
regexp-tolength.js | 11 regexp.lastIndex = -1; 14 assertEquals(2, regexp.lastIndex); 16 regexp.lastIndex = -1; 19 assertEquals(2, regexp.lastIndex);
|
regexp-match-lastindex.js | 5 // Tests that lastIndex of a global RegExp is overwritten as per 9 global.lastIndex = { valueOf: function() { assertUnreachable(); } }; 11 assertEquals(0, global.lastIndex);
|
regexp-replace-lastindex.js | 5 // Tests that lastIndex of a global RegExp is overwritten as per 9 global.lastIndex = { valueOf: function() { assertUnreachable(); } }; 11 assertEquals(0, global.lastIndex);
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
ByteBufferHelper.java | 30 int lastIndex = nuSamples.size() - 1; 31 if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() == nuSamples.get(lastIndex).array() && 32 nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset()) { 33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); 37 } else if (lastIndex >= 0 && 38 buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && 39 nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) [all...] |
/external/v8/test/mjsunit/harmony/ |
regexp-sticky.js | 43 assertEquals(7, sticky.lastIndex); 49 assertEquals(6, stickyplain.lastIndex); 56 global.lastIndex = 0; 63 plainglobal.lastIndex = 0; 69 assertEquals(7, stickyglobal.lastIndex); 71 stickyglobal.lastIndex = 0; 73 stickyglobal.lastIndex = 2; 75 assertEquals(9, stickyglobal.lastIndex); 82 assertEquals(6, stickyplainglobal.lastIndex); 84 stickyplainglobal.lastIndex = 0 [all...] |
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
ComposedData.java | 49 // lastIndex is exclusive 50 final int lastIndex = mTypedWord.length() 52 if (lastIndex <= 0) { 58 // at index 0 and extends to the character at lastIndex. 59 final int codePointSize = Character.codePointCount(mTypedWord, 0, lastIndex); 64 lastIndex, true /* downCase */);
|
/dalvik/libdex/ |
DexClass.cpp | 56 * The lastIndex value should be set to 0 before the first field in 64 DexField* pField, u4* lastIndex) { 69 dexReadClassDataField(pData, pField, lastIndex); 77 * The lastIndex value should be set to 0 before the first method in 85 DexMethod* pMethod, u4* lastIndex) { 90 dexReadClassDataMethod(pData, pMethod, lastIndex); 106 u4 lastIndex; 162 lastIndex = 0; 165 &result->staticFields[i], &lastIndex); 168 lastIndex = 0 [all...] |
DexClass.h | 69 * The lastIndex value should be set to 0 before the first field in 77 DexField* pField, u4* lastIndex); 83 * The lastIndex value should be set to 0 before the first method in 91 DexMethod* pMethod, u4* lastIndex); 132 * The lastIndex value should be set to 0 before the first field in 137 u4* lastIndex) { 138 u4 index = *lastIndex + readUnsignedLeb128(pData); 142 *lastIndex = index; 148 * The lastIndex value should be set to 0 before the first method in 153 u4* lastIndex) { [all...] |
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
ArrayInitializerFormatter.java | 51 final int lastIndex = mCurrentIndex - 1; 52 if (mStartIndexOfBuffer == lastIndex) { 55 } else if (mStartIndexOfBuffer == lastIndex - 1) { 62 mIndent, mResourceNames[lastIndex], mLastElement); 69 mIndent, mResourceNames[lastIndex]);
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
_h_m_t_x.py | 50 lastIndex = len(metrics) 51 while metrics[lastIndex-2][0] == lastAdvance: 52 lastIndex -= 1 53 if lastIndex <= 1: 55 lastIndex = 1 57 additionalMetrics = metrics[lastIndex:] 59 metrics = metrics[:lastIndex]
|
/external/proguard/src/proguard/classfile/util/ |
InternalTypeEnumeration.java | 38 private int lastIndex; 49 this.lastIndex = descriptor.indexOf(ClassConstants.METHOD_ARGUMENTS_CLOSE); 52 if (lastIndex < 0) 54 lastIndex = descriptor.length(); 84 return index < lastIndex; 123 return descriptor.substring(lastIndex + 1); 202 if (enumeration.lastIndex < descriptor.length())
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureStrokeRecognitionPoints.java | 157 final int lastIndex = size - 1; 158 final int deltaTime = mEventTimes.get(lastIndex) - mDetectFastMoveTime; 163 mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), 181 final int lastIndex = getLength() - 1; 182 if (lastIndex >= 0) { 183 final int x = mXCoordinates.get(lastIndex); 184 final int y = mYCoordinates.get(lastIndex); 207 final int lastIndex = getLength() - 1; 211 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) [all...] |