Home
last modified time | relevance | path

Searched refs:currentIndex (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/java/android/view/inputmethod/
DBaseInputConnection.java272 int currentIndex = from; in findIndexBackward() local
275 if (currentIndex < 0 || N < currentIndex) { in findIndexBackward()
284 return currentIndex; // Reached to the requested length in code points. in findIndexBackward()
287 --currentIndex; in findIndexBackward()
288 if (currentIndex < 0) { in findIndexBackward()
294 final char c = cs.charAt(currentIndex); in findIndexBackward()
316 int currentIndex = from; in findIndexForward() local
319 if (currentIndex < 0 || N < currentIndex) { in findIndexForward()
329 return currentIndex; // Reached to the requested length in code points. in findIndexForward()
332 if (currentIndex >= N) { in findIndexForward()
[all …]
/frameworks/base/libs/hwui/
DPathParser.cpp57 int currentIndex = start; in extract() local
62 for (; currentIndex < end; currentIndex++) { in extract()
65 char currentChar = s[currentIndex]; in extract()
73 if (currentIndex != start && !isPrevExponential) { in extract()
98 *outEndPosition = currentIndex; in extract()
DPathTessellator.cpp187 int currentIndex = 0; in getFillVerticesFromPerimeter() local
193 buffer[currentIndex++] = perimeter[srcAindex]; in getFillVerticesFromPerimeter()
195 buffer[currentIndex++] = perimeter[srcBindex]; in getFillVerticesFromPerimeter()
212 int currentIndex = 0; in getStrokeVerticesFromPerimeter() local
225 Vertex::set(&buffer[currentIndex++], in getStrokeVerticesFromPerimeter()
229 Vertex::set(&buffer[currentIndex++], in getStrokeVerticesFromPerimeter()
238 buffer[currentIndex++] = buffer[0]; in getStrokeVerticesFromPerimeter()
239 buffer[currentIndex++] = buffer[1]; in getStrokeVerticesFromPerimeter()
245 const Vector2& normal, Vertex* buffer, int& currentIndex, bool begin) { in storeBeginEnd() argument
255 Vertex::set(&buffer[currentIndex++], referencePoint + strokeOffset); in storeBeginEnd()
[all …]
DSpotShadow.cpp636 int currentIndex = (i + offset) % polygonLength; in getClosestUmbraIndex() local
637 float currentLengthSquared = (pivot - polygon[currentIndex]).lengthSquared(); in getClosestUmbraIndex()
643 resultIndex = currentIndex; in getClosestUmbraIndex()
672 int currentIndex = (i + startPolyIndex) % polyLength; in findPolyIndex() local
673 const Vector2& currentToCentroid = polyToCentroid[currentIndex]; in findPolyIndex()
674 const Vector2& nextToCentroid = polyToCentroid[(currentIndex + 1) % polyLength]; in findPolyIndex()
680 ALOGD("findPolyIndex loop %d times , index %d", i, currentIndex ); in findPolyIndex()
682 return currentIndex; in findPolyIndex()
/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingControllerTest.java142 final int currentIndex = i; in assertRotationOrder() local
143 final int prevIndex = (currentIndex + N - 1) % N; in assertRotationOrder()
144 final int nextIndex = (currentIndex + 1) % N; in assertRotationOrder()
146 expectedRotationOrderOfImeSubtypeList[currentIndex]; in assertRotationOrder()
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
DPathParser.java243 int currentIndex = start; in extract() local
248 for (; currentIndex < s.length(); currentIndex++) { in extract()
251 char currentChar = s.charAt(currentIndex); in extract()
259 if (currentIndex != start && !isPrevExponential) { in extract()
284 result.mEndPosition = currentIndex; in extract()
/frameworks/base/tools/aapt2/
DStringPool.cpp362 size_t currentIndex = 0; in flatten() local
364 while (entry->str.getIndex() > currentIndex) { in flatten()
365 styleIndices[currentIndex++] = out->size() - beforeStylesIndex; in flatten()
370 styleIndices[currentIndex++] = out->size() - beforeStylesIndex; in flatten()
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java277 int currentIndex = start; in extract() local
282 for (; currentIndex < s.length(); currentIndex++) { in extract()
285 char currentChar = s.charAt(currentIndex); in extract()
293 if (currentIndex != start && !isPrevExponential) { in extract()
318 result.mEndPosition = currentIndex; in extract()
/frameworks/native/services/sensorservice/
DSensorService.cpp440 int currentIndex = (mNextSensorRegIndex - 1 + SENSOR_REGISTRATIONS_BUF_SIZE) % in dump() local
442 const int startIndex = currentIndex; in dump()
444 const SensorRegistrationInfo& reg_info = mLastNSensorRegistrations[currentIndex]; in dump()
447 currentIndex = (currentIndex - 1 + SENSOR_REGISTRATIONS_BUF_SIZE) % in dump()
462 currentIndex = (currentIndex - 1 + SENSOR_REGISTRATIONS_BUF_SIZE) % in dump()
464 } while(startIndex != currentIndex); in dump()
/frameworks/base/tools/aapt/
DAaptAssets.cpp279 int currentIndex = startIndex; in initFromDirName() local
281 String8 part = parts[currentIndex]; in initFromDirName()
349 return ++currentIndex; in initFromDirName()
354 if (++currentIndex == size) { in initFromDirName()
358 return currentIndex; in initFromDirName()
361 part = parts[currentIndex]; in initFromDirName()
364 if (++currentIndex == size) { in initFromDirName()
370 return currentIndex; in initFromDirName()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingController.java310 final int currentIndex = getIndex(imi, subtype); in getNextInputMethodLocked() local
311 if (currentIndex < 0) { in getNextInputMethodLocked()
318 final int candidateIndex = (currentIndex + offset) % N; in getNextInputMethodLocked()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialPickerLayout.java274 int currentIndex = getCurrentItemShowing(); in getCurrentlyShowingValue() local
275 if (currentIndex == HOUR_INDEX) { in getCurrentlyShowingValue()
277 } else if (currentIndex == MINUTE_INDEX) { in getCurrentlyShowingValue()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableContainer.java897 final boolean setLayoutDirection(int layoutDirection, int currentIndex) { in setLayoutDirection() argument
907 if (i == currentIndex) { in setLayoutDirection()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java455 int currentIndex = mCurrentMatrixIndex; in save() local
460 System.arraycopy(mMatrices, currentIndex, mMatrices, mCurrentMatrixIndex, MATRIX_SIZE); in save()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberUtils.java2976 private static int tryGetTrunkPrefixOmittedIndex(String str, int currentIndex) { in tryGetTrunkPrefixOmittedIndex() argument
2978 for (int i = currentIndex ; i < length ; i++) { in tryGetTrunkPrefixOmittedIndex()
/frameworks/native/services/inputflinger/
DInputReader.cpp6030 uint32_t currentIndex = mCurrentRawState.rawPointerData.idToIndex[id]; in dispatchPointerMouse() local
6034 deltaX = (mCurrentRawState.rawPointerData.pointers[currentIndex].x in dispatchPointerMouse()
6037 deltaY = (mCurrentRawState.rawPointerData.pointers[currentIndex].y in dispatchPointerMouse()
6055 mCurrentCookedState.cookedPointerData.pointerCoords[currentIndex]); in dispatchPointerMouse()
6064 mCurrentCookedState.cookedPointerData.pointerProperties[currentIndex].toolType; in dispatchPointerMouse()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java1932 int currentIndex = 0; in updateSpeedbump() local
1941 speedbumpIndex = currentIndex; in updateSpeedbump()
1944 currentIndex++; in updateSpeedbump()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java7135 int currentIndex = mChildHelper.indexOfChild(child); in addViewInt() local
7139 if (currentIndex == -1) { in addViewInt()
7144 if (currentIndex != index) { in addViewInt()
7145 mRecyclerView.mLayout.moveView(currentIndex, index); in addViewInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java2598 int currentIndex = indexOfChild(child); in changeViewPosition() local
2599 if (child != null && child.getParent() == this && currentIndex != newIndex) { in changeViewPosition()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt56952 field protected int currentIndex;
57076 field protected int currentIndex;