/developers/samples/android/deprecated/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/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/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/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/ |
D | ChatListAdapter.java | 151 .row.setOnClickListener( in onBindViewHolder() 165 chatItemViewHolder.row.setOnClickListener( in onBindViewHolder() 242 private final ViewGroup row; field in ChatListAdapter.AddChatViewHolder 247 row = (ViewGroup) itemView.findViewById(R.id.percent_layout); in AddChatViewHolder() 253 private ViewGroup row; field in ChatListAdapter.ChatItemViewHolder 261 row = (ViewGroup) itemView.findViewById(R.id.layout_chat_list_item); in ChatItemViewHolder()
|
/developers/samples/android/deprecated/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/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/ |
D | ImageProvider.kt | 145 val row = result.newRow() in includeFile() constant 146 row.add(ImageContract.Columns.DISPLAY_NAME, file.name) in includeFile() 147 row.add(ImageContract.Columns.SIZE, file.length()) in includeFile() 148 row.add(ImageContract.Columns.ABSOLUTE_PATH, file.absolutePath) in includeFile()
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/ |
D | ImageProvider.java | 180 MatrixCursor.RowBuilder row = result.newRow(); in includeFile() local 181 row.add(ImageContract.Columns.DISPLAY_NAME, file.getName()); in includeFile() 182 row.add(ImageContract.Columns.SIZE, file.length()); in includeFile() 183 row.add(ImageContract.Columns.ABSOLUTE_PATH, file.getAbsolutePath()); in includeFile()
|