Lines Matching refs:runIndex

449         int runIndex = 0;
450 while (runIndex < runCount && runStarts[runIndex] < offset) {
451 runIndex++;
455 if (runIndex < runCount && runStarts[runIndex] == offset) {
456 return runIndex;
483 Vector oldRunAttributes = runAttributes[runIndex - 1];
484 Vector oldRunAttributeValues = runAttributeValues[runIndex - 1];
495 for (int i = runCount - 1; i > runIndex; i--) {
500 runStarts[runIndex] = offset;
501 runAttributes[runIndex] = newRunAttributes;
502 runAttributeValues[runIndex] = newRunAttributeValues;
504 return runIndex;
507 // add the attribute attribute/value to all runs where beginRunIndex <= runIndex < endRunIndex
599 private synchronized Object getAttribute(Attribute attribute, int runIndex) {
600 Vector currentRunAttributes = runAttributes[runIndex];
601 Vector currentRunAttributeValues = runAttributeValues[runIndex];
615 private Object getAttributeCheckRange(Attribute attribute, int runIndex, int beginIndex, int endIndex) {
616 Object value = getAttribute(attribute, runIndex);
620 int currIndex = runIndex;
634 int currIndex = runIndex;
871 int runIndex = currentRunIndex;
873 valuesMatch(value, AttributedString.this.getAttribute(attribute, runIndex - 1))) {
874 runIndex--;
875 runStart = runStarts[runIndex];
889 int runIndex = currentRunIndex;
891 AttributedString.this.attributeValuesMatch(attributes, currentRunIndex, runIndex - 1)) {
892 runIndex--;
893 runStart = runStarts[runIndex];
912 int runIndex = currentRunIndex;
914 valuesMatch(value, AttributedString.this.getAttribute(attribute, runIndex + 1))) {
915 runIndex++;
916 runLimit = runIndex < runCount - 1 ? runStarts[runIndex + 1] : endIndex;
930 int runIndex = currentRunIndex;
932 AttributedString.this.attributeValuesMatch(attributes, currentRunIndex, runIndex + 1)) {
933 runIndex++;
934 runLimit = runIndex < runCount - 1 ? runStarts[runIndex + 1] : endIndex;
981 int runIndex = currentRunIndex;
982 if (runIndex < 0) {
985 return AttributedString.this.getAttributeCheckRange(attribute, runIndex, beginIndex, endIndex);
1015 int runIndex = -1;
1016 while (runIndex < runCount - 1 && runStarts[runIndex + 1] <= currentIndex)
1017 runIndex++;
1018 currentRunIndex = runIndex;
1019 if (runIndex >= 0) {
1020 currentRunStart = runStarts[runIndex];
1027 if (runIndex < runCount - 1) {
1028 currentRunLimit = runStarts[runIndex + 1];
1045 int runIndex;
1049 AttributeMap(int runIndex, int beginIndex, int endIndex) {
1050 this.runIndex = runIndex;
1058 int size = runAttributes[runIndex].size();
1060 Attribute key = (Attribute) runAttributes[runIndex].get(i);
1061 Object value = runAttributeValues[runIndex].get(i);
1064 runIndex, beginIndex, endIndex);
1077 return AttributedString.this.getAttributeCheckRange((Attribute) key, runIndex, beginIndex, endIndex);