Home | History | Annotate | Download | only in com.example.android.xyztouristattractions.common

Lines Matching full:asset

34 import com.google.android.gms.wearable.Asset;
139 * Convert an asset into a bitmap object synchronously. Only call this
143 public static Bitmap loadBitmapFromAsset(GoogleApiClient googleApiClient, Asset asset) {
144 if (asset == null) {
145 throw new IllegalArgumentException("Asset must be non-null");
147 // convert asset into a file descriptor and block until it's ready
149 googleApiClient, asset).await().getInputStream();
152 Log.w(TAG, "Requested an unknown Asset.");
160 * Create a wearable asset from a bitmap.
162 public static Asset createAssetFromBitmap(Bitmap bitmap) {
166 return Asset.createFromBytes(byteStream.toByteArray());