Home
last modified time | relevance | path

Searched refs:fromIndex (Results 1 – 25 of 32) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameLookupBuilder.java222 private void insertNameVariants(long rawContactId, long dataId, int fromIndex, int toIndex, in insertNameVariants() argument
224 if (fromIndex == toIndex) { in insertNameVariants()
233 String firstToken = mNames[fromIndex]; in insertNameVariants()
234 for (int i = fromIndex; i < toIndex; i++) { in insertNameVariants()
235 mNames[fromIndex] = mNames[i]; in insertNameVariants()
238 insertNameVariants(rawContactId, dataId, fromIndex + 1, toIndex, in insertNameVariants()
239 initiallyExact && i == fromIndex, buildCollationKey); in insertNameVariants()
241 mNames[i] = mNames[fromIndex]; in insertNameVariants()
242 mNames[fromIndex] = firstToken; in insertNameVariants()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java56 public int layout(final SuggestedWords suggestedWords, final int fromIndex, in layout() argument
66 int index = fromIndex; in layout()
67 int rowStartIndex = fromIndex; in layout()
98 minWidth, calcurateMaxRowWidth(fromIndex, index)); in layout()
100 return index - fromIndex; in layout()
190 public Builder layout(final SuggestedWords suggestedWords, final int fromIndex, in layout() argument
197 final int count = mParams.layout(suggestedWords, fromIndex, maxWidth, minWidth, maxRow, in layout()
199 mFromIndex = fromIndex; in layout()
200 mToIndex = fromIndex + count; in layout()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSentenceLevelAdapter.java91 public int getEndOfWord(final CharSequence sequence, final int fromIndex) { in getEndOfWord() argument
93 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1); in getEndOfWord()
116 public int getBeginningOfNextWord(final CharSequence sequence, final int fromIndex) {
118 if (fromIndex >= length) {
121 int index = fromIndex < 0 ? 0 : Character.offsetByCodePoints(sequence, fromIndex, 1);
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DInputPointers.java42 final int fromIndex = mTimes.getLength(); in fillWithLastTimeUntil() local
45 if (fromIndex <= 0) { in fillWithLastTimeUntil()
48 final int fillLength = index - fromIndex + 1; in fillWithLastTimeUntil()
52 final int lastTime = mTimes.get(fromIndex - 1); in fillWithLastTimeUntil()
53 mTimes.fill(lastTime, fromIndex, fillLength); in fillWithLastTimeUntil()
/packages/modules/NeuralNetworks/common/include/
DCpuOperationUtils.h131 uint32_t fromIndex = n * fromDim[1] * spatialSize + c * spatialSize + hw; in convertNchwToNhwc() local
132 *to++ = nchw[fromIndex]; in convertNchwToNhwc()
149 uint32_t fromIndex = n * spatialSize * fromDim[3] + hw * fromDim[3] + c; in convertNhwcToNchw() local
150 *nchw++ = from[fromIndex]; in convertNhwcToNchw()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DPageIndicator.java171 int fromIndex = from >> 1; in animate() local
176 setIndex(fromIndex); in animate()
180 int firstIndex = Math.min(fromIndex, toIndex); in animate()
181 int secondIndex = Math.max(fromIndex, toIndex); in animate()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokio-1.15.0.jarMETA-INF/ META-INF/MANIFEST.MF okio/ okio/AsyncTimeout$Watchdog. ...
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/net/module/util/
DTrackRecord.kt91 override fun subList(fromIndex: Int, toIndex: Int): List<E> = lock.withLock { in listIterator()
92 elements.subList(fromIndex, toIndex) in listIterator()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DKeyboardQuickSwitchView.java381 protected void animateFocusMove(int fromIndex, int toIndex) { in animateFocusMove() argument
392 KeyboardQuickSwitchTaskView previouslyFocusedTask = getTaskAt(fromIndex); in animateFocusMove()
402 if (fromIndex == -1) { in animateFocusMove()
413 } else if (toIndex > fromIndex || toIndex == 0) { in animateFocusMove()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeUtility.java155 private static int indexOfWsp(String s, int fromIndex) { in indexOfWsp() argument
157 for (int index = fromIndex; index < len; index++) { in indexOfWsp()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderUtils.java177 static int writeCharArray(final int[] codePoints, final byte[] buffer, final int fromIndex, in writeCharArray() argument
179 int index = fromIndex; in writeCharArray()
DBinaryDictEncoderUtils.java482 /* package */ static int writeChildrenPosition(final byte[] buffer, final int fromIndex, in writeChildrenPosition() argument
484 int index = fromIndex; in writeChildrenPosition()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSink2Activity.java314 int fromIndex = getOriginalIndexFromTitle(mLastFragmentTitle, 0, false); in onFavClicked() local
318 FragmentListItem fragmentListItem = mData.get(fromIndex); in onFavClicked()
333 moveFragmentItem(fromIndex, toIndex); in onFavClicked()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java985 private void debugMoveBox(int fromIndex[]) { in debugMoveBox() argument
987 for (int i = 0; i < fromIndex.length; i++) { in debugMoveBox()
988 int j = fromIndex[i]; in debugMoveBox()
993 s.append(fromIndex[i]); in debugMoveBox()
1016 public void moveBox(int fromIndex[], boolean hasPrev, boolean hasNext, in moveBox() argument
1022 RangeIntArray from = new RangeIntArray(fromIndex, -BOX_MAX, BOX_MAX); in moveBox()
DPhotoView.java403 public void notifyDataChange(int[] fromIndex, int prevBound, int nextBound) { in notifyDataChange() argument
412 if (fromIndex[i] == k) { in notifyDataChange()
436 mPositionController.moveBox(fromIndex, mPrevBound < 0, mNextBound > 0, in notifyDataChange()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java258 int fromIndex[] = new int[N]; in fireDataChange() local
273 fromIndex[i] = Integer.MAX_VALUE; in fireDataChange()
284 fromIndex[i] = (j < N) ? j - SCREEN_NAIL_MAX : Integer.MAX_VALUE; in fireDataChange()
287 mPhotoView.notifyDataChange(fromIndex, -mCurrentIndex, in fireDataChange()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java1447 int fromIndex = 0; in testFindChar_withCharFound() local
1449 Assert.assertEquals(HeadsetStateMachine.findChar(ch, input, fromIndex), 2); in testFindChar_withCharFound()
1456 int fromIndex = 0; in testFindChar_withCharNotFound() local
1458 Assert.assertEquals(HeadsetStateMachine.findChar(ch, input, fromIndex), input.length()); in testFindChar_withCharNotFound()
1465 int fromIndex = 0; in testFindChar_withQuotes() local
1467 Assert.assertEquals(HeadsetStateMachine.findChar(ch, input, fromIndex), input.length()); in testFindChar_withQuotes()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/view/
DMoreIssuesHeaderView.kt215 cornerRadii.fill(it.animatedValue as Float, fromIndex = 4, toIndex = 8) in <lambda>()
/packages/modules/NeuralNetworks/common/
DCpuExecutor.cpp412 uint32_t fromIndex = n * fromDim[1] * spatialSize + c * spatialSize + hw; in convertToNhwcImpl() local
413 *to++ = from[fromIndex]; in convertToNhwcImpl()
426 uint32_t fromIndex = n * spatialSize * fromDim[3] + hw * fromDim[3] + c; in convertFromNhwcImpl() local
427 *to++ = from[fromIndex]; in convertFromNhwcImpl()
/packages/apps/TV/libs/m2/
Dauto-value-1.5.3.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dguava-28.0-android.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
Dguava-28.0-jre.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java273 protected int getChildGap(int fromIndex, int toIndex) { in getChildGap() argument
/packages/services/Telecomm/libs/
Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java2239 static int findChar(char ch, String input, int fromIndex) { in findChar() argument
2240 for (int i = fromIndex; i < input.length(); i++) { in findChar()

12