Searched refs:mBackgroundBitmap (Results 1 – 3 of 3) sorted by relevance
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | SweepWatchFaceService.java | 90 private Bitmap mBackgroundBitmap; field in SweepWatchFaceService.Engine 122 mBackgroundBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.bg); in onCreate() 159 mBackgroundBitmap, in onCreate() 280 float scale = ((float) width) / (float) mBackgroundBitmap.getWidth(); in onSurfaceChanged() 282 mBackgroundBitmap = Bitmap.createScaledBitmap(mBackgroundBitmap, in onSurfaceChanged() 283 (int) (mBackgroundBitmap.getWidth() * scale), in onSurfaceChanged() 284 (int) (mBackgroundBitmap.getHeight() * scale), true); in onSurfaceChanged() 303 mBackgroundBitmap.getWidth(), in initGrayBackgroundBitmap() 304 mBackgroundBitmap.getHeight(), in initGrayBackgroundBitmap() 312 canvas.drawBitmap(mBackgroundBitmap, 0, 0, grayPaint); in initGrayBackgroundBitmap() [all …]
|
D | AnalogWatchFaceService.java | 99 private Bitmap mBackgroundBitmap; field in AnalogWatchFaceService.Engine 150 mBackgroundBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.bg); in onCreate() 187 mBackgroundBitmap, in onCreate() 315 float scale = ((float) width) / (float) mBackgroundBitmap.getWidth(); in onSurfaceChanged() 317 mBackgroundBitmap = Bitmap.createScaledBitmap(mBackgroundBitmap, in onSurfaceChanged() 318 (int) (mBackgroundBitmap.getWidth() * scale), in onSurfaceChanged() 319 (int) (mBackgroundBitmap.getHeight() * scale), true); in onSurfaceChanged() 338 mBackgroundBitmap.getWidth(), in initGrayBackgroundBitmap() 339 mBackgroundBitmap.getHeight(), in initGrayBackgroundBitmap() 347 canvas.drawBitmap(mBackgroundBitmap, 0, 0, grayPaint); in initGrayBackgroundBitmap() [all …]
|
D | ComplicationSimpleWatchFaceService.java | 121 private Bitmap mBackgroundBitmap; field in ComplicationSimpleWatchFaceService.Engine 196 mBackgroundBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.bg); in initializeBackground() 249 Palette.from(mBackgroundBitmap).generate( in initializeWatchFace() 506 float scale = ((float) width) / (float) mBackgroundBitmap.getWidth(); in onSurfaceChanged() 508 mBackgroundBitmap = Bitmap.createScaledBitmap(mBackgroundBitmap, in onSurfaceChanged() 509 (int) (mBackgroundBitmap.getWidth() * scale), in onSurfaceChanged() 510 (int) (mBackgroundBitmap.getHeight() * scale), true); in onSurfaceChanged() 529 mBackgroundBitmap.getWidth(), in initGrayBackgroundBitmap() 530 mBackgroundBitmap.getHeight(), in initGrayBackgroundBitmap() 538 canvas.drawBitmap(mBackgroundBitmap, 0, 0, grayPaint); in initGrayBackgroundBitmap() [all …]
|