/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/ |
H A D | MoreSuggestionsView.java | 105 final int index = ((MoreSuggestionKey)key).mSuggestedWordIndex; 106 if (index < 0 || index >= suggestedWords.size()) { 107 Log.e(TAG, "Selected suggestion has an illegal index: " + index); 115 ((MoreSuggestionsListener)mListener).onSuggestionSelected(suggestedWords.getInfo(index));
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | FilterDeleteSet.java | 25 // void addDeletion(Path path, int index); 51 int index; field in class:FilterDeleteSet.Deletion 52 public Deletion(Path path, int index) { argument 54 this.index = index; 64 // Deletions currently in effect, ordered by index 88 // Gets the MediaItems whose (post-deletion) index are in the range [start, 89 // start + count). Because we remove some of the MediaItems, the index need 95 // The original index: 0 1 2 3 4 5 6 7 8 9 A B C 97 // The new index [all...] |
H A D | FaceClustering.java | 98 public void consume(int index, MediaItem item) { 129 public ArrayList<Path> getCluster(int index) { argument 130 return mClusters[index].mPaths; 134 public String getClusterName(int index) { argument 135 return mClusters[index].mName; 139 public MediaItem getClusterCover(int index) { argument 140 return mClusters[index].getCover();
|
H A D | MediaDetails.java | 83 public void addDetail(int index, Object value) { argument 84 mDetails.put(index, value); 87 public Object getDetail(int index) { argument 88 return mDetails.get(index); 100 public void setUnit(int index, int unit) { argument 101 mUnits.put(index, unit); 104 public boolean hasUnit(int index) { argument 105 return mUnits.containsKey(index); 108 public int getUnit(int index) { argument 109 return mUnits.get(index); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SelectionManager.java | 159 int index = 0; 161 while (index < total) { 162 int count = index + batch < total 164 : total - index; 165 ArrayList<MediaItem> list = set.getMediaItem(index, count); 173 index += batch; 221 int index = 0; 222 while (index < total) { 223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); 224 ArrayList<MediaItem> list = mSourceMediaSet.getMediaItem(index, coun [all...] |
H A D | AlbumSlotRenderer.java | 34 public boolean acceptSlot(int index); argument 65 public void setPressedIndex(int index) { argument 66 if (mPressedIndex == index) return; 67 mPressedIndex = index; 104 public int renderSlot(GLCanvas canvas, int index, int pass, int width, int height) { argument 105 if (mSlotFilter != null && !mSlotFilter.acceptSlot(index)) return 0; 107 AlbumSlidingWindow.AlbumEntry entry = mDataWindow.get(index); 134 renderRequestFlags |= renderOverlay(canvas, index, entry, width, height); 139 private int renderOverlay(GLCanvas canvas, int index, argument 142 if (mPressedIndex == index) { [all...] |
/packages/apps/Camera2/src/com/android/camera/burst/ |
H A D | BurstResultsSaver.java | 38 * type + "_" + index of artifact + "_" + index of media item + "_" + 134 for (int index = 0; index < mediaItems.size(); index++) { 135 saveBurstMediaItem(stackSaver, mediaItems.get(index), 136 artifactType, artifactIndex + 1, index + 1, timestampGenerator); 145 int index, 152 artifactType, artifactIndex, index, mediaItem.getTimestamp()); 141 saveBurstMediaItem(StackSaver stackSaver, BurstMediaItem mediaItem, String artifactType, int artifactIndex, int index, SequentialTimestampGenerator timestampGenerator) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/ |
H A D | ExtractedColors.java | 93 public void setColorAtIndex(int index, int color) { argument 94 if (index > VERSION_INDEX && index < mColors.length) { 95 mColors[index] = color; 97 Log.e(TAG, "Attempted to set a color at an invalid index " + index); 133 /** @param index must be one of the index values defined at the top of this class. */ 134 public int getColor(int index) { argument 135 return mColors[index]; [all...] |
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | StringUtils.java | 242 * @param startIndex the start index inside the string in java chars, inclusive. 243 * @param endIndex the end index inside the string in java chars, exclusive. 273 * @param startIndex the start index inside the string in java chars, inclusive. 274 * @param endIndex the end index inside the string in java chars, exclusive. 282 for (int index = startIndex; index < endIndex; 283 index = Character.offsetByCodePoints(charSequence, index, 1)) { 284 final int codePoint = Character.codePointAt(charSequence, index); 325 int index [all...] |
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
H A D | StressProvider.java | 217 public static StubDocument createDirectory(int index) { argument 219 DocumentsContract.Document.MIME_TYPE_DIR, createRandomId(index), 0, 220 createRandomTime(index), -1); 228 int index) throws IOException { 230 mimeType, createRandomId(index), createRandomSize(index), 231 createRandomTime(index), thumbnail); 234 private static String createRandomId(int index) { argument 235 final Random random = new Random(index); 240 builder.append(index); // Appen 227 createFile(Context context, String mimeType, int thumbnail, int index) argument 244 createRandomSize(int index) argument 249 createRandomTime(int index) argument [all...] |
/packages/apps/Settings/src/com/android/settings/development/ |
H A D | DevelopmentSettings.java | 895 int index = 1; // Defaults to drm-only. Needs to match with R.array.hdcp_checking_values 898 index = i; 902 hdcpChecking.setValue(values[index]); 903 hdcpChecking.setSummary(summaries[index]); 1362 final int index = mSimulateColorSpace.findIndexOfValue(mode); 1363 if (index < 0) { 1388 final int index = mSimulateColorSpace.findIndexOfValue(mode); 1389 if (index >= 0) { 1590 int index = 2; // punt to second entry if not found 1594 index [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | IndicatorControlWheel.java | 83 // The index of the child that is being pressed. -1 means no child is being 222 int index = 0; 224 index = (int) ((delta - mChildRadians[startIndex]) 227 if (index > sectors) return (startIndex + sectors); 229 if (index < 0) return startIndex; 231 if (delta <= (mChildRadians[startIndex + index] 233 return (startIndex + index); 235 if (delta >= (mChildRadians[startIndex + index + 1] 237 return (startIndex + index + 1); 267 int index [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | ProximityInfo.java | 346 int index = baseIndexOfCurrentRow; 349 neighborsFlatBuffer[index * keyCount + neighborCountPerCell[index]] = key; 350 ++neighborCountPerCell[index]; 352 ++index; 362 for (int index = indexStart; index < indexEnd; index++) { 363 neighbors.add(neighborsFlatBuffer[index]); 375 int index [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | ButtonManager.java | 54 /** For two state MultiToggleImageButtons, the off index. */ 56 /** For two state MultiToggleImageButtons, the on index. */ 95 /** An reference to the gcam mode index. */ 185 int index = 0; 188 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getCameraScope(), 192 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getCameraScope(), 196 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getModuleScope(), 200 index = mSettingsManager.getIndexOfCurrentValue(mAppController.getModuleScope(), 204 index = mSettingsManager.getIndexOfCurrentValue(SettingsManager.SCOPE_GLOBAL, 208 index [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | MediaDetails.java | 82 public void addDetail(int index, Object value) { argument 83 mDetails.put(index, value); 86 public Object getDetail(int index) { argument 87 return mDetails.get(index); 99 public void setUnit(int index, int unit) { argument 100 mUnits.put(index, unit); 103 public boolean hasUnit(int index) { argument 104 return mUnits.indexOfKey(index) >= 0; 107 public int getUnit(int index) { argument 108 return mUnits.get(index); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | LocalPhotoSource.java | 87 public Uri getContentUri(int index) { argument 88 if (index < mPhotos.size()) { 90 .appendPath(String.valueOf(mPhotos.get(index))) 97 public Bitmap getImage(int index) { argument 98 if (index >= mPhotos.size()) return null; 99 long id = mPhotos.get(index); 116 int index = 0; 118 values[index++] = value; 174 for (int index : choosedIds) { 175 if (cursor.moveToPosition(index)) { [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | KeyboardAccessibilityNodeProvider.java | 107 // Use a virtual view id as an index of the sorted keys list. 120 for (int index = 0; index < size; index++) { 121 if (sortedKeys.get(index) == key) { 122 // Use an index of the sorted keys list as a virtual view id. 123 return index; 210 for (int index = 0; index < size; index [all...] |
/packages/services/Car/obd2-lib/src/com/android/car/obd2/ |
H A D | Obd2Connection.java | 235 private byte getByte(int index) { argument 236 switch (index) { 246 throw new IllegalArgumentException(index + " is not a valid byte index"); 250 private boolean getBit(byte b, int index) { argument 251 if (index < 0 || index >= masks.length) 252 throw new IllegalArgumentException(index + " is not a valid bit index"); 253 return 0 != (b & masks[index]); 256 getBit(int b, int index) argument [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | SpellCheckersSettings.java | 130 for (int index = 0; index < count; index++) { 131 final Preference preference = screen.getPreference(index); 176 private static int convertSubtypeIndexToDialogItemId(final int index) { return index + 1; } argument 197 for (int index = 0; index < subtypeCount; ++index) { 198 final SpellCheckerSubtype subtype = currentSci.getSubtypeAt(index); [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
H A D | diyfp.h | 98 unsigned long index; local 99 _BitScanReverse64(&index, f); 100 return DiyFp(f << (63 - index), e - (63 - index)); 159 inline DiyFp GetCachedPowerByIndex(size_t index) { argument 218 return DiyFp(kCachedPowers_F[index], kCachedPowers_E[index]); 229 unsigned index = static_cast<unsigned>((k >> 3) + 1); local 230 *K = -(-348 + static_cast<int>(index << 3)); // decimal exponent no need lookup table 232 return GetCachedPowerByIndex(index); 236 unsigned index = (static_cast<unsigned>(exp) + 348u) / 8u; local [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollAdapterView.java | 112 * @param position index in ScrollAdapter 128 * @param position index in ScrollAdapter 224 /** exclusive index of view on the left */ 226 /** exclusive index of view on the right */ 268 saveViewUnchecked(v.expandedView, v.index); 303 // current selected view adapter index, this is the final position to scroll to 307 int index; field in class:ScrollAdapterView.ScrollInfo 316 return index >= 0; 319 index = -1; 323 index 370 final int index; // "Adapter index" of the expandable view field in class:ScrollAdapterView.ExpandedView 647 setSelectionSmooth(int index) argument 652 setSelectionSmooth(int index, int duration) argument 2117 expandableIndexFromAdapterIndex(int index) argument 2133 findExpandedView(ArrayList<ExpandedView> expandedView, int index) argument 2148 getOrCreateExpandedView(int index) argument 2660 int index; // index inside adapter of the current view field in class:ScrollAdapterView.AdapterViewState [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | WeekNumberTest.java | 207 for (int index = 0; index < len; index++) { 208 DateAndWeekNumber test = tests[index]; 214 Log.i("WeekNumberTest", "index " + index 226 Log.i("WeekNumberTest", "(all-day) index " + index
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | ColorPreference.java | 68 protected CharSequence getTitleAt(int index) { argument 69 final CharSequence title = super.getTitleAt(index); 75 final int value = getValueAt(index); 114 protected void onBindListItem(View view, int index) { argument 115 final int argb = getValueAt(index); 132 final CharSequence title = getTitleAt(index);
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | jni_data_utils.h | 130 static void putBooleanToArray(JNIEnv *env, jbooleanArray array, const int index, argument 132 env->SetBooleanArrayRegion(array, index, 1 /* len */, &value); 135 static void putIntToArray(JNIEnv *env, jintArray array, const int index, const int value) { argument 136 env->SetIntArrayRegion(array, index, 1 /* len */, &value); 139 static void putFloatToArray(JNIEnv *env, jfloatArray array, const int index, argument 141 env->SetFloatArrayRegion(array, index, 1 /* len */, &value);
|
/packages/services/Telephony/src/com/android/phone/settings/ |
H A D | AccountSelectionPreference.java | 116 int index = Integer.parseInt((String) newValue); 117 PhoneAccountHandle account = index < mAccounts.length ? mAccounts[index] : null; 120 setSummary(mEntries[index]); 122 if (index != findIndexOfValue(getValue())) { 123 setValueIndex(index);
|