/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureTrailDrawingPoints.java | 178 int startIndex; in drawGestureTrailLocked() local 179 for (startIndex = mTrailStartIndex; startIndex < trailSize; startIndex++) { in drawGestureTrailLocked() 180 final int elapsedTime = sinceDown - eventTimes[startIndex]; in drawGestureTrailLocked() 186 mTrailStartIndex = startIndex; in drawGestureTrailLocked() 188 if (startIndex < trailSize) { in drawGestureTrailLocked() 192 int p1x = getXCoordValue(xCoords[startIndex]); in drawGestureTrailLocked() 193 int p1y = yCoords[startIndex]; in drawGestureTrailLocked() 194 final int lastTime = sinceDown - eventTimes[startIndex]; in drawGestureTrailLocked() 196 for (int i = startIndex + 1; i < trailSize; i++) { in drawGestureTrailLocked() 226 debugDrawPoints(canvas, startIndex, trailSize, paint); in drawGestureTrailLocked() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | IndicatorControlWheel.java | 215 int startIndex = (mCurrentLevel == 0) ? 0 : mSecondLevelStartIndex; in getTouchIndicatorIndex() local 220 if (mZoomControl != null) startIndex++; in getTouchIndicatorIndex() 227 if ((delta >= (mChildRadians[startIndex] - halfTouchSectorRadians)) && in getTouchIndicatorIndex() 231 index = (int) ((delta - mChildRadians[startIndex]) in getTouchIndicatorIndex() 234 if (index > sectors) return (startIndex + sectors); in getTouchIndicatorIndex() 236 if (index < 0) return startIndex; in getTouchIndicatorIndex() 238 if (delta <= (mChildRadians[startIndex + index] in getTouchIndicatorIndex() 240 return (startIndex + index); in getTouchIndicatorIndex() 242 if (delta >= (mChildRadians[startIndex + index + 1] in getTouchIndicatorIndex() 244 return (startIndex + index + 1); in getTouchIndicatorIndex() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/subscriber/ |
D | ShellSubscriberTest.java | 155 int startIndex = 0; in checkOutput() local 159 while (output.length > startIndex) { in checkOutput() 160 assertThat(output.length).isAtLeast(startIndex + sizetBytes); in checkOutput() 161 int dataLength = readSizetFromByteArray(output, startIndex); in checkOutput() 165 startIndex += sizetBytes; in checkOutput() 168 assertThat(output.length).isAtLeast(startIndex + sizetBytes + dataLength); in checkOutput() 172 int dataStart = startIndex + sizetBytes; in checkOutput() 184 startIndex += sizetBytes + dataLength; in checkOutput() 192 private int readSizetFromByteArray(byte[] arr, int startIndex) { in readSizetFromByteArray() argument 195 value += ((int) arr[j + startIndex] & 0xffL) << (8 * j); in readSizetFromByteArray()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/ |
D | PathInterpolatorCompat.java | 80 int startIndex = 0; in getInterpolation() local 82 while (endIndex - startIndex > 1) { in getInterpolation() 83 int midIndex = (startIndex + endIndex) / 2; in getInterpolation() 87 startIndex = midIndex; in getInterpolation() 91 final float xRange = mX[endIndex] - mX[startIndex]; in getInterpolation() 93 return mY[startIndex]; in getInterpolation() 96 final float tInRange = t - mX[startIndex]; in getInterpolation() 99 final float startY = mY[startIndex]; in getInterpolation()
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/common/ |
D | QueryStyleTest.java | 63 int startIndex = 1; in test_spannableString1WithQuery1() local 64 checkCorrectness(testString, startIndex, QUERY_1.length(), 0); in test_spannableString1WithQuery1() 104 int startIndex = 1; in test_spannableString2WithQuery1() local 105 checkCorrectness(testString, startIndex, QUERY_1.length(), 0); in test_spannableString2WithQuery1() 196 private void checkCorrectness(SpannableString testString, int startIndex, int length, in checkCorrectness() argument 198 int endIndex = startIndex == -1 ? -1 : startIndex + length + specialCharNumber; in checkCorrectness() 200 assertThat(testString.getSpanStart(textAppearanceSpan)).isEqualTo(startIndex); in checkCorrectness() 202 if (startIndex != -1) { in checkCorrectness()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | TunUtils.java | 110 byte[] getFirstMatchingPacket(Predicate<byte[]> verifier, int startIndex) { in getFirstMatchingPacket() argument 112 for (int i = startIndex; i < mPackets.size(); i++) { in getFirstMatchingPacket() 130 public boolean hasPlaintextPacket(byte[] plaintext, int startIndex) { in hasPlaintextPacket() argument 136 return getFirstMatchingPacket(verifier, startIndex) != null; in hasPlaintextPacket() 139 public byte[] getEspPacket(int spi, boolean encap, int startIndex) { in getEspPacket() argument 144 startIndex); in getEspPacket() field in TunUtils 150 int startIndex = 0; in awaitEspPacketNoPlaintext() local 154 byte[] espPkt = getEspPacket(spi, useEncap, startIndex); in awaitEspPacketNoPlaintext() 164 startIndex = mPackets.size(); in awaitEspPacketNoPlaintext()
|
D | IkeTunUtils.java | 172 int startIndex = 0; in awaitIkePacket() local 175 byte[] ikePkt = getFirstMatchingPacket(pktVerifier, startIndex); in awaitIkePacket() 180 startIndex = mPackets.size(); in awaitIkePacket()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | int_array_view.h | 145 size_t startIndex = 0; variable 148 result.emplace_back(mPtr + startIndex, i - startIndex); 149 startIndex = i + 1; 155 result.emplace_back(mPtr + startIndex, mSize - startIndex);
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 55 matched.startIndex = index - (start + 1); in findMatchingLine() 118 static int findNextTokenStart(String line, int startIndex) { in findNextTokenStart() argument 119 int index = startIndex; in findNextTokenStart() 190 public int startIndex = -1; field in SearchUtil.MatchedLine 195 return "MatchedLine{" + "line='" + line + '\'' + ", startIndex=" + startIndex + '}'; in toString()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SearchUtil.java | 28 public int startIndex = -1; field in SearchUtil.MatchedLine 35 ", startIndex=" + startIndex + in toString() 72 matched.startIndex = index - (start + 1); in findMatchingLine() 135 static int findNextTokenStart(String line, int startIndex) { in findNextTokenStart() argument 136 int index = startIndex; in findNextTokenStart()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | TunUtils.java | 102 private byte[] getFirstMatchingPacket(Predicate<byte[]> verifier, int startIndex) { in getFirstMatchingPacket() argument 104 for (int i = startIndex; i < mPackets.size(); i++) { in getFirstMatchingPacket() 116 int startIndex = 0; in awaitPacket() local 120 final byte[] pkt = getFirstMatchingPacket(verifier, startIndex); in awaitPacket() 125 startIndex = mPackets.size(); in awaitPacket()
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | SearchUtilTest.java | 35 assertEquals(5, matched.startIndex); in testFindMatchingLine() 40 assertEquals(0, matched.startIndex); in testFindMatchingLine() 45 assertEquals(0, matched.startIndex); in testFindMatchingLine() 50 assertEquals(9, matched.startIndex); in testFindMatchingLine()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSet.java | 202 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { in enumerateMediaItems() argument 210 consumer.consume(startIndex + start + i, item); in enumerateMediaItems() 220 ItemConsumer consumer, int startIndex) { in enumerateTotalMediaItems() argument 222 start += enumerateMediaItems(consumer, startIndex); in enumerateTotalMediaItems() 226 consumer, startIndex + start); in enumerateTotalMediaItems()
|
D | ClusterAlbum.java | 98 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { in enumerateMediaItems() argument 99 mDataManager.mapMediaItems(mPaths, consumer, startIndex); in enumerateMediaItems()
|
/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | BerTlv.java | 70 public static BerTlv decode(byte[] data, int startIndex) throws ParserException { in decode() argument 71 return BerTlv.decode(data, startIndex, true); in decode() 75 public static BerTlv decode(byte[] data, int startIndex, boolean containsAllData) in decode() argument 82 int curIndex = startIndex; in decode()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceController.java | 155 int startIndex = locationText.toString().indexOf(highlightedWord); in getNoLocationSummary() local 156 if (startIndex < 0) { in getNoLocationSummary() 160 msg.setSpan(new URLSpan((String) null), startIndex, startIndex + highlightedWord.length(), in getNoLocationSummary()
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | UriUtils.java | 274 int startIndex) { in getSubactionDialogUri() argument 275 return getSubactionDialogUri(uri, dialogTitle, dialogDescription, null, startIndex); in getSubactionDialogUri() 308 String startName, int startIndex) { in getSubactionDialogUri() argument 323 if (startIndex != -1) { in getSubactionDialogUri() 325 Integer.toString(startIndex)); in getSubactionDialogUri()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info.cpp | 112 const int startIndex = ProximityInfoUtils::getStartIndexFromCoordinates(x, y, in hasSpaceProximity() local 115 AKLOGI("hasSpaceProximity: index %d, %d, %d", startIndex, x, y); in hasSpaceProximity() 120 AKLOGI("Index: %d", mProximityCharsArray[startIndex + i]); in hasSpaceProximity() 122 if (proximityCharsArray[startIndex + i] == KEYCODE_SPACE) { in hasSpaceProximity()
|
D | proximity_info_utils.h | 158 const int startIndex = getStartIndexFromCoordinates(x, y, cellHeight, cellWidth, gridWidth); in calculateProximities() local 159 if (startIndex >= 0) { in calculateProximities() 161 const int c = proximityCharsArray[startIndex + i]; in calculateProximities()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
D | MoreSuggestions.java | 103 private boolean fitInWidth(final int startIndex, final int endIndex, final int width) { in fitInWidth() argument 104 for (int index = startIndex; index < endIndex; index++) { in fitInWidth() 111 private int calcurateMaxRowWidth(final int startIndex, final int endIndex) { in calcurateMaxRowWidth() argument 113 int index = startIndex; in calcurateMaxRowWidth()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | BaseActionFragment.java | 117 int startIndex = mFragment.getArguments().getInt(EXTRA_INDEX, -1); in onCreate() local 118 if (startIndex != -1) { in onCreate() 121 mIndexToSelect = startIndex; in onCreate()
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | StringUtils.java | 248 final int startIndex, final int endIndex) { in toCodePointArray() argument 254 new int[Character.codePointCount(charSequence, startIndex, endIndex)]; in toCodePointArray() 255 copyCodePointsAndReturnCodePointCount(codePoints, charSequence, startIndex, endIndex, in toCodePointArray() 279 @Nonnull final CharSequence charSequence, final int startIndex, final int endIndex, in copyCodePointsAndReturnCodePointCount() argument 282 for (int index = startIndex; index < endIndex; in copyCodePointsAndReturnCodePointCount()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ContactsDictionaryUtils.java | 32 final int startIndex) { in getWordEndPosition() argument 35 for (end = startIndex + 1; end < len; end += Character.charCount(cp)) { in getWordEndPosition()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | PlainTextEditText.java | 57 final int startIndex = selectionStart - 1; in onTextContextMenuItem() local 60 if (pasteStringLength == 1 && text.charAt(startIndex) == OBJECT_UNICODE) { in onTextContextMenuItem()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/ |
D | QueryStyle.java | 76 int startIndex = digitsOnlyNumberInfo.second.get(digitsOnlyStartIndex); in getStringWithQueryInSpecialStyle() local 79 spannableString.setSpan(mTextAppearanceSpan, startIndex, endIndex + 1, in getStringWithQueryInSpecialStyle()
|