/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
H A D | WearableListView.java | 455 int index = findCenterViewIndex(); 456 View view = getChildAt(index); 472 int index = findCenterViewIndex(); 473 View view = getChildAt(index); 482 if (index > 0 && rawY <= mTapRegions[0]) { 483 animateToMiddle(index - 1, index); 486 if (index < getChildCount() - 1 && rawY >= mTapRegions[1]) { 487 animateToMiddle(index + 1, index); [all...] |
/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | EdgeTypePreference.java | 55 protected void onBindListItem(View view, int index) { argument 64 final int value = getValueAt(index); 68 final CharSequence title = getTitleAt(index);
|
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/ |
H A D | WorkModeCondition.java | 91 public void onActionClick(int index) { argument 92 if (index == 0) { 98 throw new IllegalArgumentException("Unexpected index " + index);
|
/packages/apps/Settings/src/com/android/settings/widget/ |
H A D | RtlCompatibleViewPager.java | 37 * that is, the 0 index corresponds to the left-most page in LTR and the 77 * Get a "RTL friendly" index. If the locale is LTR, the index is returned as is. 78 * Otherwise it's transformed so view pager can render views using the new index for RTL. For 81 * @param index The logical index. 83 public int getRtlAwareIndex(int index) { argument 88 return getAdapter().getCount() - index - 1; 90 return index;
|
/packages/apps/TV/common/src/com/android/tv/common/ |
H A D | CollectionUtils.java | 79 int index = Collections.binarySearch(result, toSubtract, comparator); 80 if (index >= 0) { 81 result.remove(index);
|
/packages/services/Car/service/src/com/android/car/ |
H A D | CarVolumeService.java | 79 public void setStreamVolume(int streamType, int index, int flags) { argument 80 getController().setStreamVolume(streamType, index, flags); 115 abstract public void setStreamVolume(int stream, int index, int flags); argument
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/ |
H A D | VoicemailStatus.java | 275 private static Uri getUri(Cursor cursor, int index) { argument 276 if (cursor.getString(index) != null) { 277 return Uri.parse(cursor.getString(index)); 282 private static int getInt(Cursor cursor, int index, int defaultValue) { argument 283 if (cursor.isNull(index)) { 286 return cursor.getInt(index); 289 private static String getString(Cursor cursor, int index, String defaultValue) { argument 290 if (cursor.isNull(index)) { 293 return cursor.getString(index);
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
H A D | ExpressionDB.java | 21 // either just below the current minimum (negative) index, or just above the current 22 // maximum index. Currently no rows are deleted unless we clear the whole table. 28 // a positive index, and a flag indicates whether the expression is displayed as part of 30 // with a negative index. It would also make it easy to sort expressions in dependency order, 135 // We may eventually need an index by timestamp. We don't use it yet. 171 // If higher layers refer to an index outside this range, it will already be cached. 180 // Minimum index value in DB. 182 // Maximum index value in DB. 188 // Expression index corresponding to a zero absolute offset for mAllCursor. 199 // Expressions with index [MAXIMUM_MIN_INDE 227 inAccessibleRange(long index) argument 527 getRowDirect(long index) argument 565 getRow(long index) argument [all...] |
/packages/apps/Gallery2/src/com/android/photos/shims/ |
H A D | MediaItemsLoader.java | 116 public void consume(int index, MediaItem item) { 117 row[PhotoSetLoader.INDEX_ID] = index; 134 mediaItems.append(index, item); 151 int index = item.getInt(PhotoSetLoader.INDEX_ID); 152 drawable.setMediaItem(mMediaItems.get(index)); 162 int index = item.getInt(PhotoSetLoader.INDEX_ID); 163 MediaItem mi = mMediaItems.get(index); 182 int index = item.getInt(PhotoSetLoader.INDEX_ID); 183 MediaItem mi = mMediaItems.get(index);
|
H A D | MediaSetLoader.java | 141 int index = item.getInt(AlbumSetLoader.INDEX_ID); 142 drawable.setMediaItem(mCoverItems.get(index)); 152 int index = item.getInt(AlbumSetLoader.INDEX_ID); 153 MediaSet ms = mMediaSet.getSubMediaSet(index); 159 int index = item.getInt(AlbumSetLoader.INDEX_ID); 160 MediaSet ms = mMediaSet.getSubMediaSet(index); 165 public void consume(int index, MediaItem item) { 184 int index = item.getInt(AlbumSetLoader.INDEX_ID); 185 MediaSet ms = mMediaSet.getSubMediaSet(index);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | FileProvider.java | 50 for (int index = (fileId.startsWith("/") ? 1 : 0); index < fileId.length(); index++) { 51 final Character c = fileId.charAt(index);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | CompositeAdapter.java | 118 public void removePartition(final int index) { argument 119 final Partition partition = mPartitions[index]; 121 System.arraycopy(mPartitions, index + 1, mPartitions, index, 122 mSize - index - 1); 139 public Partition getPartition(final int index) { argument 140 return mPartitions[index]; 188 public int getCount(final int index) { argument 190 return mPartitions[index].getCount();
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | TetherService.java | 129 int index = mCurrentTethers.indexOf(type); 130 if (DEBUG) Log.d(TAG, "Removing tether " + type + ", index " + index); 131 if (index >= 0) { 132 removeTypeAtIndex(index); 175 private void removeTypeAtIndex(int index) { argument 176 mCurrentTethers.remove(index); 178 // index accordingly. 180 if (index <= mCurrentTypeIndex && mCurrentTypeIndex > 0) { 242 private void startProvisioning(int index) { argument 255 getProvisionBroadcastIntent(int index) argument 267 setEntitlementAppActive(int index) argument [all...] |
/packages/apps/TV/src/com/android/tv/dvr/data/ |
H A D | SeriesRecording.java | 177 int index = -1; 179 .setId(c.getLong(++index)) 180 .setInputId(c.getString(++index)) 181 .setChannelId(c.getLong(++index)) 182 .setPriority(c.getLong(++index)) 183 .setTitle(c.getString(++index)) 184 .setDescription(c.getString(++index)) 185 .setLongDescription(c.getString(++index)) 186 .setSeriesId(c.getString(++index)) 187 .setStartFromEpisode(c.getInt(++index)) [all...] |
H A D | RecordedProgram.java | 89 int index = 0; 91 .setId(cursor.getLong(index++)) 92 .setPackageName(cursor.getString(index++)) 93 .setInputId(cursor.getString(index++)) 94 .setChannelId(cursor.getLong(index++)) 95 .setTitle(cursor.getString(index++)) 96 .setSeasonNumber(cursor.getString(index++)) 97 .setSeasonTitle(cursor.getString(index++)) 98 .setEpisodeNumber(cursor.getString(index++)) 99 .setEpisodeTitle(cursor.getString(index [all...] |
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/ |
H A D | FileSampleExtractor.java | 107 public void selectTrack(int index) { argument 108 mSampleBuffer.selectTrack(index); 112 public void deselectTrack(int index) { argument 113 mSampleBuffer.deselectTrack(index);
|
/packages/apps/TV/src/com/android/tv/tuner/tvinput/ |
H A D | TunerRecordingSessionWorker.java | 492 int index = 0; 493 mChannelId = cursor.getLong(index++); 494 mTitle = cursor.getString(index++); 495 mSeasonTitle = cursor.getString(index++); 496 mEpisodeTitle = cursor.getString(index++); 497 mSeasonNumber = cursor.getString(index++); 498 mEpisodeNumber = cursor.getString(index++); 499 mDescription = cursor.getString(index++); 500 mPosterArtUri = cursor.getString(index++); 501 mThumbnailUri = cursor.getString(index [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/ |
H A D | AddressList.java | 58 public Address get(int index) { argument 59 if (0 > index || size() <= index) 61 return addresses.get(index);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | BinaryDictionaryUtils.java | 99 int index = 0; 101 keyArray[index] = key; 102 valueArray[index] = attributeMap.get(key); 103 index++;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | sparse_table.h | 49 int getPosInContentTable(const int id, const int index) const;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
H A D | ExpectedKeyboardBuilder.java | 223 for (int index = 0; index < keys.length; index++) { 224 setElementAt(row, column + index, expectedKeys[index], true /* insert */); 241 for (int index = keys.length - 1; index >= 0; index--) { 242 setElementAt(row, 1, expectedKeys[index], true /* insert */);
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
H A D | ScheduleRowAdapter.java | 183 int index = 0; 184 for (; index < size(); index++) { 185 if (get(index) instanceof ScheduleRow) { 186 ScheduleRow scheduleRow = (ScheduleRow) get(index); 191 pre = index; 201 } else if (index < size() && getHeaderRow(index).getDeadLineMs() == deadLine) { 202 SchedulesHeaderRow headerRow = ((ScheduleRow) get(index)).getHeaderRow(); 205 add(index, addedRo 218 getHeaderRow(int index) argument [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/ |
H A D | ChannelInfo.java | 86 int index = (logoIndex % 1000) + 1; 91 .appendPath("ch_" + index + "_logo").build().toString(); 97 int index = c.getColumnIndex(TvContract.Channels.COLUMN_DISPLAY_NUMBER); 98 if (index >= 0) { 99 builder.setNumber(c.getString(index)); 101 index = c.getColumnIndex(TvContract.Channels.COLUMN_DISPLAY_NAME); 102 if (index >= 0) { 103 builder.setName(c.getString(index)); 105 index = c.getColumnIndex(TvContract.Channels.COLUMN_ORIGINAL_NETWORK_ID); 106 if (index > [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
H A D | ProgramDataManagerTest.java | 112 int index = stub.getIndex(mClock.currentTimeMillis(), channelId); 113 long startTimeMs = stub.getStartTimeMs(index, channelId); 114 ProgramInfo programAt = stub.build(InstrumentationRegistry.getContext(), index); 150 int index = stub.getIndex(mClock.currentTimeMillis(), channelId); 152 ProgramInfo programInfoAt = stub.build(InstrumentationRegistry.getContext(), index); 153 long startTimeMs = stub.getStartTimeMs(index, channelId); 155 index++; 183 int index = stub.getIndex(mClock.currentTimeMillis(), testChannelId); 186 long nextProgramStartTimeMs = stub.getStartTimeMs(index + 1, testChannelId); 187 ProgramInfo nextProgramInfo = stub.build(InstrumentationRegistry.getContext(), index 270 private final int index; field in class:ProgramDataManagerTest.ProgramInfoWrapper 274 ProgramInfoWrapper(int index, long startTimeMs, ProgramInfo programInfo) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ReverseGeocoderTask.java | 56 int index = addr.getMaxAddressLineIndex(); 57 sb.append(addr.getAddressLine(index));
|