/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
D | PaginatedCursor.java | 129 for (int row = index; row < (index + PAGE_SIZE) && row < mRowCount; row++) { in loadCacheStartingFromPosition() 130 if (!mCachedRows[row]) { in loadCacheStartingFromPosition() 134 mByteArrayDataCache[row][mByteArrayCacheIndexMap[col]] = in loadCacheStartingFromPosition() 138 mFloatDataCache[row][mFloatCacheIndexMap[col]] = mCursor.getFloat(col); in loadCacheStartingFromPosition() 141 mIntDataCache[row][mIntCacheIndexMap[col]] = mCursor.getInt(col); in loadCacheStartingFromPosition() 144 mStringDataCache[row][mStringCacheIndexMap[col]] = in loadCacheStartingFromPosition() 149 mCachedRows[row] = true; in loadCacheStartingFromPosition()
|
/developers/build/prebuilts/gradle/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/ |
D | SampleGridPagerAdapter.java | 76 protected Drawable create(final Integer row) { 77 int resid = BG_IMAGES[row % BG_IMAGES.length]; 85 mRowBackgrounds.put(row, background); 86 notifyRowBackgroundChanged(row); 159 public Fragment getFragment(int row, int col) { in getFragment() argument 160 Row adapterRow = mRows.get(row); in getFragment() 165 public Drawable getBackgroundForRow(final int row) { in getBackgroundForRow() argument 166 return mRowBackgrounds.get(row); in getBackgroundForRow() 170 public Drawable getBackgroundForPage(final int row, final int column) { in getBackgroundForPage() argument 171 return mPageBackgrounds.get(new Point(column, row)); in getBackgroundForPage()
|
/developers/samples/android/wearable/wear/GridViewPager/Wearable/src/main/java/com/example/android/wearable/gridviewpager/ |
D | SampleGridPagerAdapter.java | 76 protected Drawable create(final Integer row) { 77 int resid = BG_IMAGES[row % BG_IMAGES.length]; 85 mRowBackgrounds.put(row, background); 86 notifyRowBackgroundChanged(row); 159 public Fragment getFragment(int row, int col) { in getFragment() argument 160 Row adapterRow = mRows.get(row); in getFragment() 165 public Drawable getBackgroundForRow(final int row) { in getBackgroundForRow() argument 166 return mRowBackgrounds.get(row); in getBackgroundForRow() 170 public Drawable getBackgroundForPage(final int row, final int column) { in getBackgroundForPage() argument 171 return mPageBackgrounds.get(new Point(column, row)); in getBackgroundForPage()
|
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
D | MyCloudProvider.java | 122 final MatrixCursor.RowBuilder row = result.newRow(); in queryRoots() local 124 row.add(Root.COLUMN_ROOT_ID, ROOT); in queryRoots() 125 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); in queryRoots() 131 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | in queryRoots() 136 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.app_name)); in queryRoots() 140 row.add(Root.COLUMN_DOCUMENT_ID, getDocIdForFile(mBaseDir)); in queryRoots() 144 row.add(Root.COLUMN_MIME_TYPES, getChildMimeTypes(mBaseDir)); in queryRoots() 145 row.add(Root.COLUMN_AVAILABLE_BYTES, mBaseDir.getFreeSpace()); in queryRoots() 146 row.add(Root.COLUMN_ICON, R.drawable.ic_launcher); in queryRoots() 508 final MatrixCursor.RowBuilder row = result.newRow(); [all …]
|
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
D | MyCloudProvider.java | 122 final MatrixCursor.RowBuilder row = result.newRow(); in queryRoots() local 124 row.add(Root.COLUMN_ROOT_ID, ROOT); in queryRoots() 125 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); in queryRoots() 131 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | in queryRoots() 136 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.app_name)); in queryRoots() 140 row.add(Root.COLUMN_DOCUMENT_ID, getDocIdForFile(mBaseDir)); in queryRoots() 144 row.add(Root.COLUMN_MIME_TYPES, getChildMimeTypes(mBaseDir)); in queryRoots() 145 row.add(Root.COLUMN_AVAILABLE_BYTES, mBaseDir.getFreeSpace()); in queryRoots() 146 row.add(Root.COLUMN_ICON, R.drawable.ic_launcher); in queryRoots() 508 final MatrixCursor.RowBuilder row = result.newRow(); [all …]
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
D | LeanbackDetailsFragment.java | 96 DetailsOverviewRow row = new DetailsOverviewRow(selectedMovie); in doInBackground() local 106 row.setImageBitmap(getActivity(), poster); in doInBackground() 110 row.addAction(new Action(ACTION_WATCH_TRAILER, getResources().getString( in doInBackground() 112 row.addAction(new Action(ACTION_RENT, getResources().getString(R.string.rent_1), in doInBackground() 114 row.addAction(new Action(ACTION_BUY, getResources().getString(R.string.buy_1), in doInBackground() 116 return row; in doInBackground() 175 public void onItemClicked(Object item, Row row) { in getDefaultItemClickedListener()
|
D | VerticalGridFragment.java | 72 public void onItemSelected(Object item, Row row) { in setupFragment() 78 public void onItemClicked(Object item, Row row) { in setupFragment()
|
D | MainFragment.java | 181 public void onItemSelected(Object item, Row row) { in getDefaultItemSelectedListener() 193 public void onItemClicked(Object item, Row row) {
|
D | SearchFragment.java | 110 public void onItemClicked(Object item, Row row) { in getDefaultItemClickedListener()
|
/developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/ |
D | AssetProvider.java | 148 Object[] row = new Object[projection.length]; in query() local 151 row[col] = path; in query() 156 row[col] = Long.valueOf(afd.getLength()); in query() 164 matrixCursor.addRow(row); in query()
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/ui/ |
D | AttractionsGridPagerAdapter.java | 100 public Object instantiateItem(ViewGroup container, int row, final int column) { in instantiateItem() argument 102 final Attraction attraction = mAttractions.get(row); in instantiateItem() 183 public Drawable getBackgroundForPage(int row, int column) { in getBackgroundForPage() argument 187 if (mAttractions.size() > 0 && mAttractions.get(row).image != null) { in getBackgroundForPage() 188 return new BitmapDrawable(mContext.getResources(), mAttractions.get(row).image); in getBackgroundForPage() 190 return super.getBackgroundForPage(row, column); in getBackgroundForPage() 194 public void destroyItem(ViewGroup viewGroup, int row, int column, Object object) { in destroyItem() argument 209 public void onPageSelected(int row, int col) {} in onPageSelected() argument
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Wearable/src/main/java/com/example/android/xyztouristattractions/ui/ |
D | AttractionsGridPagerAdapter.java | 100 public Object instantiateItem(ViewGroup container, int row, final int column) { in instantiateItem() argument 102 final Attraction attraction = mAttractions.get(row); in instantiateItem() 183 public Drawable getBackgroundForPage(int row, int column) { in getBackgroundForPage() argument 187 if (mAttractions.size() > 0 && mAttractions.get(row).image != null) { in getBackgroundForPage() 188 return new BitmapDrawable(mContext.getResources(), mAttractions.get(row).image); in getBackgroundForPage() 190 return super.getBackgroundForPage(row, column); in getBackgroundForPage() 194 public void destroyItem(ViewGroup viewGroup, int row, int column, Object object) { in destroyItem() argument 209 public void onPageSelected(int row, int col) {} in onPageSelected() argument
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/ |
D | MovieDetailsFragment.java | 182 final DetailsOverviewRow row = new DetailsOverviewRow(mSelectedMovie); in setupDetailsOverviewRow() local 183 row.setImageDrawable(getResources().getDrawable(R.drawable.default_background)); in setupDetailsOverviewRow() 198 row.setImageDrawable(resource); in setupDetailsOverviewRow() 203 row.addAction(new Action(ACTION_WATCH_TRAILER, getResources().getString( in setupDetailsOverviewRow() 205 row.addAction(new Action(ACTION_RENT, getResources().getString(R.string.rent_1), in setupDetailsOverviewRow() 207 row.addAction(new Action(ACTION_BUY, getResources().getString(R.string.buy_1), in setupDetailsOverviewRow() 210 mAdapter.add(row); in setupDetailsOverviewRow() 263 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemClicked() argument
|
D | VerticalGridFragment.java | 98 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemClicked() argument 119 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemSelected() argument
|
D | MainFragment.java | 260 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemClicked() argument 292 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemSelected() argument
|
D | PlaybackOverlayFragment.java | 151 RowPresenter.ViewHolder rowViewHolder, Row row) { in onCreate() 152 Log.i(TAG, "onItemSelected: " + item + " row " + row); in onCreate() 485 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemClicked() argument
|
D | SearchFragment.java | 134 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemClicked() argument
|
/developers/build/prebuilts/gradle/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/ |
D | GridExampleActivity.java | 83 public Drawable getBackgroundForPage(int row, int column) { in getBackgroundForPage() argument 84 Point pt = new Point(column, row); in getBackgroundForPage() 97 c.drawText(column+ "-" + row, 100, 100, p); in getBackgroundForPage()
|
/developers/samples/android/wearable/wear/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/ |
D | GridExampleActivity.java | 83 public Drawable getBackgroundForPage(int row, int column) { in getBackgroundForPage() argument 84 Point pt = new Point(column, row); in getBackgroundForPage() 97 c.drawText(column+ "-" + row, 100, 100, p); in getBackgroundForPage()
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/ |
D | RichSetupFragment.java | 159 DetailsOverviewRow row = new DetailsOverviewRow(mTvInput); in addSetupChannelDetailedRow() local 160 row.setImageBitmap(getActivity(), poster); in addSetupChannelDetailedRow() 162 row.addAction(mAddChannelAction); in addSetupChannelDetailedRow() 163 row.addAction(mCancelAction); in addSetupChannelDetailedRow() 184 mAdapter.add(row); in addSetupChannelDetailedRow()
|
D | RichSettingsFragment.java | 119 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemClicked() argument 131 RowPresenter.ViewHolder rowViewHolder, Row row) { in onItemSelected() argument
|
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
D | MainActivity.java | 297 public int getColumnCount(int row) { in getColumnCount() argument 302 public Fragment getFragment(int row, int column) { in getFragment() argument
|
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
D | MainActivity.java | 297 public int getColumnCount(int row) { in getColumnCount() argument 302 public Fragment getFragment(int row, int column) { in getFragment() argument
|