Searched refs:index (Results 26 - 50 of 638) sorted by relevance

1234567891011>>

/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
H A DCoordinateUtils.java68 public static int xFromArray(@Nonnull final int[] coordsArray, final int index) { argument
69 return coordsArray[ELEMENT_SIZE * index + INDEX_X];
72 public static int yFromArray(@Nonnull final int[] coordsArray, final int index) { argument
73 return coordsArray[ELEMENT_SIZE * index + INDEX_Y];
77 public static int[] coordinateFromArray(@Nonnull final int[] coordsArray, final int index) { argument
79 set(coords, xFromArray(coordsArray, index), yFromArray(coordsArray, index));
83 public static void setXYInArray(@Nonnull final int[] coordsArray, final int index, argument
85 final int baseIndex = ELEMENT_SIZE * index;
90 public static void setCoordinateInArray(@Nonnull final int[] coordsArray, final int index, argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
H A DParameterIconStyle.java30 public void getIcon(int index, BitmapCaller caller) { argument
31 caller.available(mBitmaps[index]);
H A DParameterStyles.java34 void getIcon(int index, BitmapCaller caller); argument
36 String getStyleTitle(int index, Context context); argument
H A DFilterView.java22 public void computeIcon(int index, BitmapCaller caller); argument
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DWidgetSource.java26 public Bitmap getImage(int index); argument
27 public Uri getContentUri(int index); argument
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DClippedFolderIconLayoutRule.java35 public PreviewItemDrawingParams computePreviewItemDrawingParams(int index, int curNumItems, argument
37 float totalScale = scaleForItem(index, curNumItems);
42 if (index == getExitIndex()) {
46 } else if (index == getEnterIndex()) {
50 } else if (index >= MAX_NUM_ITEMS_IN_PREVIEW) {
54 getPosition(index, curNumItems, mTmpPoint);
90 private void getPosition(int index, int curNumItems, float[] result) { argument
112 if (curNumItems == 4 && index == 3) {
113 index = 2;
114 } else if (curNumItems == 4 && index
134 scaleForItem(int index, int numItems) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
H A DThemeSettingsFragment.java52 for (int index = 0; index < keyboardThemeNames.length; index++) {
53 if (keyboardTheme.mThemeId == keyboardThemeIds[index]) {
54 pref.setSummary(keyboardThemeNames[index]);
69 for (int index = 0; index < keyboardThemeNames.length; index++) {
71 context, keyboardThemeNames[index], keyboardThemeIds[index]);
[all...]
H A DTwoStatePreferenceHelper.java48 for (int index = 0; index < count; index++) {
49 preferences.add(group.getPreference(index));
52 for (int index = 0; index < count; index++) {
53 final Preference preference = preferences.get(index);
/packages/apps/Camera2/src/com/android/camera/data/
H A DLocalFilmstripDataAdapter.java60 * @param index The ID of the {@link FilmstripItem} to get.
63 public FilmstripItem getItemAt(int index); argument
68 * @param index of data to be deleted.
70 public void removeAt(int index); argument
92 * @return The index of the data. {@code -1} if not found.
120 * @param index The position of the data to be updated.
123 public void updateItemAt(int index, FilmstripItem item); argument
133 * @param index The ID of the data to update the metadata for.
137 public AsyncTask updateMetadataAt(int index); argument
142 public boolean isMetadataUpdatedAt(int index); argument
[all...]
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/
H A DSampleChunkIoHelper.java99 private final int index; field in class:SampleChunkIoHelper.IoParams
105 private IoParams(int index, long positionUs, SampleHolder sample, argument
108 this.index = index;
182 * @param index track index
185 public SampleHolder readSample(int index) { argument
186 SampleHolder sample = mReadSampleBuffers[index].poll();
187 mIoHandler.sendMessage(mIoHandler.obtainMessage(MSG_READ, index));
194 * @param index trac
199 writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) argument
215 openRead(int index, long positionUs) argument
227 closeRead(int index) argument
340 doOpenWrite(int index) argument
346 doCloseRead(int index) argument
357 doRead(int index) argument
[all...]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
H A DDiagnosticEventBuilder.java35 * An array-like container that knows to return a default value for any unwritten-to index.
49 private int checkIndex(int index) { argument
50 if (index < 0 || index >= mSize)
52 String.format("Index: %d, Size: %d", index, mSize));
53 return index;
56 DefaultedArray<T> set(int index, T element) { argument
57 checkIndex(index);
58 mElements.put(index, element);
62 T get(int index) { argument
128 addIntSensor(int index, int value) argument
134 addFloatSensor(int index, float value) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_state.cpp35 int ProximityInfoState::getPrimaryOriginalCodePointAt(const int index) const {
36 const int primaryCodePoint = getPrimaryCodePointAt(index);
173 const int index = inputIndex * mProximityInfo->getKeyCount() + keyId; local
174 return std::min(mSampledNormalizedSquaredLengthCache[index], mMaxPointToKeyLength);
195 // proximityIndex is a pointer to the variable where getProximityType returns the index of c
196 // in the proximity chars of the input index.
200 ProximityType ProximityInfoState::getProximityType(const int index, const int codePoint, argument
202 const int *currentCodePoints = getProximityCodePointsAt(index);
254 ProximityType ProximityInfoState::getProximityTypeG(const int index, const int codePoint) const { argument
259 if (index <
277 isKeyInSerchKeysAfterIndex(const int index, const int keyId) const argument
298 getProbability(const int index, const int keyIndex) const argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DAlphabeticIndexCompat.java23 BaseIndex index = null;
27 index = new AlphabeticIndexVN(context);
30 Log.d(TAG, "Unable to load the system index", e);
32 if (index == null) {
34 index = new AlphabeticIndexV16(context);
36 Log.d(TAG, "Unable to load the system index", e);
40 mBaseIndex = index == null ? new BaseIndex() : index;
90 * Returns the index of the bucket in which the given string should appear.
96 int index
106 getBucketLabel(int index) argument
151 getBucketLabel(int index) argument
193 getBucketLabel(int index) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DZoomControl.java48 void onZoomValueChanged(int index); // only for immediate zoom argument
53 // ZoomIndexBar about the zoom index change. The index position is between
54 // 0 (the index is zero) and 1.0 (the index is mZoomMax).
84 setZoomIndex(mZoomIndex); // Update the zoom index bar.
127 public void setZoomIndex(int index) { argument
128 if (index < 0 || index > mZoomMax) {
129 throw new IllegalArgumentException("Invalid zoom value:" + index);
192 changeZoomIndex(int index) argument
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
H A DUnicodeEscaper.java86 * returning the index of the next character that requires escaping.
103 * @param start the index of the first character to be scanned
104 * @param end the index immediately after the last character to be scanned
109 int index = start;
110 while (index < end) {
111 int cp = codePointAt(csq, index, end);
115 index += Character.isSupplementaryCodePoint(cp) ? 2 : 1;
117 return index;
147 int index = nextEscapeIndex(string, 0, end);
148 return index
168 escapeSlow(String s, int index) argument
389 codePointAt(CharSequence seq, int index, int end) argument
423 growBuffer(char[] dest, int index, int size) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DAlbumSetDataLoader.java49 public void onContentChanged(int index); argument
117 private void assertIsActive(int index) { argument
118 if (index < mActiveStart || index >= mActiveEnd) {
120 "%s not in (%s, %s)", index, mActiveStart, mActiveEnd));
124 public MediaSet getMediaSet(int index) { argument
125 assertIsActive(index);
126 return mData[index % mData.length];
129 public MediaItem getCoverItem(int index) { argument
130 assertIsActive(index);
134 getTotalCount(int index) argument
143 isActive(int index) argument
236 public int index; field in class:AlbumSetDataLoader.UpdateInfo
[all...]
H A DSlideshowPage.java49 public static final String KEY_PHOTO_INDEX = "photo-index";
70 public int index; field in class:SlideshowPage.Slide
72 public Slide(MediaItem item, int index, Bitmap bitmap) { argument
75 this.index = index;
168 .putExtra(KEY_PHOTO_INDEX, slide.index));
210 int index = data.getInt(KEY_PHOTO_INDEX);
215 index, path);
216 setStateResult(Activity.RESULT_OK, mResultIntent.putExtra(KEY_PHOTO_INDEX, index));
226 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { argument
259 getMediaItem(int index) argument
329 getMediaItem(int index) argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetsDiffReporter.java39 void notifyItemChanged(int index); argument
40 void notifyItemInserted(int index); argument
41 void notifyItemRemoved(int index); argument
78 int index = -1;
80 index = currentEntries.indexOf(orgRowEntry);
81 mListener.notifyItemRemoved(index);
83 Log.d(TAG, String.format("notifyItemRemoved called (%d)%s", index,
86 currentEntries.remove(index);
89 index = orgRowEntry != null? currentEntries.indexOf(orgRowEntry):
91 currentEntries.add(index, newRowEntr
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
H A DDomainList.java53 * specified index.
54 * @throws IndexOutOfBoundsException If index is &lt; 0 or &gt;= size().
56 public String get(int index) { argument
57 if (0 > index || size() <= index)
59 return domains.get(index);
H A DMailboxList.java54 public Mailbox get(int index) { argument
55 if (0 > index || size() <= index)
57 return (Mailbox)mailboxes.get(index);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DObservableSparseArrayCompat.java75 public void removeAt(final int index) { argument
76 super.removeAt(index);
81 public void removeAtRange(final int index, final int size) { argument
82 super.removeAtRange(index, size);
87 public void setValueAt(final int index, final E value) { argument
88 super.setValueAt(index, value);
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DEvaluator.java56 * getString(index) method may be used to produce Strings that represent approximations to various
67 * background AsyncTask. A subsequent getString() call for the same expression index returns
116 public void onCancelled(long index); argument
120 public void onError(long index, int errorId); argument
123 * @param index index of expression whose evaluation completed
125 * @param msdIndex index of first non-zero digit in the computed result string
130 public void onEvaluate(long index, int initPrecOffset, int msdIndex, int lsdOffset, argument
137 public void onReevaluate(long index); // More precision is now available; please redraw. argument
199 // a partial result, we copy the main expression to a non-zero index
397 isMutableIndex(long index) argument
508 AsyncEvaluator(long index, EvaluationListener listener, CharMetricsInfo cmi, boolean dm, boolean required) argument
749 AsyncReevaluator(long index, EvaluationListener listener) argument
800 ensureCachePrec(long index, int precOffset, EvaluationListener listener) argument
1019 getMsdIndex(long index) argument
1065 getString(long index, int[] precOffset, int maxPrecOffset, int maxDigs, boolean[] truncated, boolean[] negative, EvaluationListener listener) argument
1152 evaluateResult(long index, EvaluationListener listener, CharMetricsInfo cmi, boolean required) argument
1169 notifyImmediately(long index, ExprInfo ei, EvaluationListener listener, CharMetricsInfo cmi) argument
1187 evaluateAndNotify(long index, EvaluationListener listener, CharMetricsInfo cmi) argument
1211 requireResult(long index, EvaluationListener listener, CharMetricsInfo cmi) argument
1242 hasResult(long index) argument
1250 evaluationInProgress(long index) argument
1295 cancel(long index, boolean quiet) argument
1408 copy(long index, boolean copyValue) argument
1532 getCollapsedExpr(long index) argument
1557 collapse(long index) argument
1580 onCancelled(long index) argument
1582 onError(long index, int errorId) argument
1584 onEvaluate(long index, int initPrecOffset, int msdIndex, int lsdOffset, String truncatedWholePart) argument
1589 onReevaluate(long index) argument
1597 SetMemoryWhenDoneListener(long index, boolean persist) argument
1616 SetSavedWhenDoneListener(long index) argument
1628 setMemoryIndex(long index) argument
1642 setSavedIndex(long index) argument
1653 setMemoryIndexWhenEvaluated(long index, boolean persist) argument
1661 setSavedIndexWhenEvaluated(long index) argument
1669 copyToSaved(long index) argument
1682 copyToMemory(long index) argument
1690 addToMemory(long index) argument
1703 subtractFromMemory(long index) argument
1736 capture(long index) argument
1759 appendExpr(long index) argument
1788 ensureExprIsCached(long index) argument
1811 getExpr(long index) argument
1819 getTimeStamp(long index) argument
1824 getDegreeMode(long index) argument
1829 getResult(long index) argument
1834 putResultIfAbsent(long index, UnifiedReal result) argument
1914 getExprAsString(long index) argument
1918 getExprAsSpannable(long index) argument
[all...]
/packages/services/Car/tools/emulator/
H A DVehicleHalProto_pb2.py26 name='GET_CONFIG_CMD', index=0, number=0,
30 name='GET_CONFIG_RESP', index=1, number=1,
34 name='GET_CONFIG_ALL_CMD', index=2, number=2,
38 name='GET_CONFIG_ALL_RESP', index=3, number=3,
42 name='GET_PROPERTY_CMD', index=4, number=4,
46 name='GET_PROPERTY_RESP', index=5, number=5,
50 name='GET_PROPERTY_ALL_CMD', index=6, number=6,
54 name='GET_PROPERTY_ALL_RESP', index=7, number=7,
58 name='SET_PROPERTY_CMD', index=8, number=8,
62 name='SET_PROPERTY_RESP', index
[all...]
/packages/apps/TV/tests/common/src/com/android/tv/testing/
H A DProgramInfo.java29 * If this is specify for title, it will be generated by adding index.
34 * If this is specify for episode title, it will be generated by adding index.
106 int index = c.getColumnIndex(TvContract.Programs.COLUMN_TITLE);
107 if (index >= 0) {
108 builder.setTitle(c.getString(index));
110 index = c.getColumnIndex(TvContract.Programs.COLUMN_SHORT_DESCRIPTION);
111 if (index >= 0) {
112 builder.setDescription(c.getString(index));
114 index = c.getColumnIndex(TvContract.Programs.COLUMN_EPISODE_TITLE);
115 if (index >
167 getStartTimeMs(int index, long channelId) argument
185 build(Context context, int index) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DSizeClustering.java59 public void consume(int index, MediaItem item) {
114 private String getSizeString(int index) { argument
115 long bytes = SIZE_LEVELS[index];
129 public ArrayList<Path> getCluster(int index) { argument
130 return mClusters[index];
134 public String getClusterName(int index) { argument
135 return mNames[index];
138 public long getMinSize(int index) { argument
139 return mMinSizes[index];

Completed in 644 milliseconds

1234567891011>>