/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | WidgetUtils.java | 43 public static float getScaleRatio(Context context, Bundle options, int id) { argument 44 if (options == null) { 50 options = widgetManager.getAppWidgetOptions(id); 52 if (options != null) { 53 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH); 62 int minHeight = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT); 65 ratio = Math.min(ratio, getHeightScaleRatio(context, options, id)); 73 private static float getHeightScaleRatio(Context context, Bundle options, int id) { argument 74 if (options == null) { 80 options [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/ |
H A D | TestAuthenticator.java | 63 String authTokenType, String[] requiredFeatures, Bundle options) { 95 AccountAuthenticatorResponse response, Account account, Bundle options) { 62 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 94 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument
|
/packages/apps/Email/provider_src/com/android/email/service/ |
H A D | EasTestAuthenticatorService.java | 49 String authTokenType, String[] requiredFeatures, Bundle options) 54 if (options != null && options.containsKey(OPTIONS_PASSWORD) 55 && options.containsKey(OPTIONS_USERNAME)) { 56 final Account account = new Account(options.getString(OPTIONS_USERNAME), 59 account, options.getString(OPTIONS_PASSWORD), null); 80 Bundle options) { 48 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 79 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
|
H A D | AuthenticatorService.java | 57 String authTokenType, String[] requiredFeatures, Bundle options) 68 if (options != null && options.containsKey(OPTIONS_PASSWORD) 69 && options.containsKey(OPTIONS_USERNAME)) { 70 final Account account = new Account(options.getString(OPTIONS_USERNAME), 73 account, options.getString(OPTIONS_PASSWORD), null); 77 boolean syncContacts = options.getBoolean(OPTIONS_CONTACTS_SYNC_ENABLED, false); 85 boolean syncCalendar = options.getBoolean(OPTIONS_CALENDAR_SYNC_ENABLED, false); 94 if (options.containsKey(OPTIONS_EMAIL_SYNC_ENABLED) && 95 options 56 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 121 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
H A D | AppWidgetManagerCompatV16.java | 53 Bundle options) { 57 return mAppWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, info.provider, options); 52 bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, Bundle options) argument
|
H A D | AppWidgetManagerCompatVL.java | 74 Bundle options) { 76 appWidgetId, info.getProfile(), info.provider, options); 73 bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, Bundle options) argument
|
H A D | AppWidgetManagerCompat.java | 69 int appWidgetId, AppWidgetProviderInfo info, Bundle options); 68 bindAppWidgetIdIfAllowed( int appWidgetId, AppWidgetProviderInfo info, Bundle options) argument
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/ |
H A D | suggest_options.h | 26 SuggestOptions(const int *const options, const int length) argument 27 : mOptions(options), mLength(length) {} 53 // reorder options. 58 // Additional features options are stored after the other options and used as setting values of
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | BitmapManager.java | 55 s = "thread state = " + s + ", options = " + mOptions; 85 BitmapFactory.Options options) { 86 getOrCreateThreadStatus(t).mOptions = options; 139 BitmapFactory.Options options, boolean isVideo) { 178 BitmapFactory.Options options) { 179 if (options.mCancel) { 189 setDecodingOptions(thread, options); 190 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, options); 84 setDecodingOptions(Thread t, BitmapFactory.Options options) argument 138 getThumbnail(ContentResolver cr, long origId, int kind, BitmapFactory.Options options, boolean isVideo) argument 177 decodeFileDescriptor(FileDescriptor fd, BitmapFactory.Options options) argument
|
H A D | Util.java | 102 public static int computeSampleSize(BitmapFactory.Options options, argument 104 int initialSize = computeInitialSampleSize(options, minSideLength, 120 private static int computeInitialSampleSize(BitmapFactory.Options options, argument 122 double w = options.outWidth; 123 double h = options.outHeight; 280 BitmapFactory.Options options = null; 282 options = createNativeAllocOptions(); 285 options); 295 BitmapFactory.Options options = null; 297 options 303 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DecodeUtils.java | 46 public DecodeCanceller(Options options) { argument 47 mOptions = options; 57 public static void setOptionsMutable(Options options) { argument 58 if (ApiHelper.HAS_OPTIONS_IN_MUTABLE) options.inMutable = true; 61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { argument 62 if (options == null) options = new Options(); 63 jc.setCancelListener(new DecodeCanceller(options)); 64 setOptionsMutable(options); 66 BitmapFactory.decodeFileDescriptor(fd, null, options)); 69 decodeBounds(JobContext jc, FileDescriptor fd, Options options) argument 78 decode(JobContext jc, byte[] bytes, Options options) argument 82 decode(JobContext jc, byte[] bytes, int offset, int length, Options options) argument 91 decodeBounds(JobContext jc, byte[] bytes, int offset, int length, Options options) argument 100 decodeThumbnail( JobContext jc, String filePath, Options options, int targetSize, int type) argument 115 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument 169 decodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument 250 decodeUsingPool(JobContext jc, byte[] data, int offset, int length, BitmapFactory.Options options) argument 277 decodeUsingPool(JobContext jc, FileDescriptor fileDescriptor, Options options) argument 301 findCachedBitmap(JobContext jc, byte[] data, int offset, int length, Options options) argument 307 findCachedBitmap(JobContext jc, FileDescriptor fileDescriptor, Options options) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/ |
H A D | DeviceNameSummaryFragment.java | 40 * options that correspond to the ArrayList<String> passed in the 54 * @param options The options to present to the user. 57 ArrayList<String> options) { 62 args.putStringArrayList(ARG_OPTION_LIST, options); 56 createInstance(String title, String description, ArrayList<String> options) argument
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | AccountImageChangeObserver.java | 113 public synchronized void registerChangeUriIfPresent(BitmapWorkerOptions options) { argument 114 Uri imageUri = options.getResourceUri(); 127 Context context = options.getContext();
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | BitmapWorkerTask.java | 199 private Bitmap decodeBitmap(InputStream in, BitmapWorkerOptions options) argument 210 if (options.getBitmapConfig() != null) { 211 bitmapOptions.inPreferredConfig = options.getBitmapConfig(); 219 int height = options.getHeight(); 227 int width = options.getWidth(); 237 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x" 238 + options.getHeight() + "). Chosen scale: " + scale + " -> " 249 return scaleBitmapIfNecessary(options, 263 private Bitmap getBitmapFromHttp(BitmapWorkerOptions options) throws IOException { argument 264 URL url = new URL(options 281 getBitmapFromContent(BitmapWorkerOptions options) argument 352 getAccountImage(BitmapWorkerOptions options) argument [all...] |
H A D | BitmapDownloader.java | 131 public final Bitmap loadBitmapBlocking(BitmapWorkerOptions options) { argument 132 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); 135 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options); 137 bitmap = getBitmapFromMemCache(options); 152 return task.doInBackground(options); 160 public void loadBitmap(BitmapWorkerOptions options, final ImageView imageView) { argument 162 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); 165 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options); 167 bitmap = getBitmapFromMemCache(options); 184 task.execute(options); 193 getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) argument [all...] |
H A D | DrawableDownloader.java | 91 BitmapDrawable findDrawable(BitmapWorkerOptions options) { argument 99 // if specified width/height in options and is smaller than 101 if (options.getHeight() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) { 102 if (options.getHeight() <= d.getIntrinsicHeight()) { 105 } else if (options.getWidth() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) { 106 if (options.getWidth() <= d.getIntrinsicWidth()) { 114 BitmapDrawable findLargestDrawable(BitmapWorkerOptions options) { argument 223 public final Drawable loadBitmapBlocking(BitmapWorkerOptions options) { argument 224 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri()); 227 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options); 251 loadBitmap(BitmapWorkerOptions options, final ImageView imageView) argument 284 getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) argument 315 scheduleTask(DrawableLoader task, BitmapWorkerOptions options) argument [all...] |
H A D | DrawableLoader.java | 184 private Drawable decodeBitmap(InputStream in, BitmapWorkerOptions options) argument 195 if (options.getBitmapConfig() != null) { 196 bitmapOptions.inPreferredConfig = options.getBitmapConfig(); 205 int height = options.getHeight(); 211 int width = options.getWidth(); 230 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x" 231 + options.getHeight() + "). Chosen scale: " + scale + " -> " + scale); 260 options.getContext().getResources(), object); 273 private Drawable getBitmapFromHttp(BitmapWorkerOptions options) throws IOException { argument 274 URL url = new URL(options 291 getBitmapFromContent(BitmapWorkerOptions options) argument 358 getAccountImage(BitmapWorkerOptions options) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | ImageLoader.java | 236 BitmapFactory.Options options = new BitmapFactory.Options(); 237 options.inMutable = true; 238 options.inSampleSize = sampleSize; 239 return loadBitmap(context, uri, options); 243 * Returns the bitmap from the given uri loaded using the given options. 385 public static Bitmap decodeResourceWithBackouts(Resources res, BitmapFactory.Options options, argument 389 if (options.inSampleSize < 1) { 390 options.inSampleSize = 1; 398 res, id, options); 407 options [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
H A D | ImageLoader.java | 255 Uri uri, BitmapFactory.Options options, 260 if (options.inSampleSize != 0) { 278 options.inBitmap = reuse; 279 Bitmap bitmap = decoder.decodeRegion(imageBounds, options); 312 BitmapFactory.Options options = new BitmapFactory.Options(); 313 options.inMutable = true; 314 options.inSampleSize = sampleSize; 315 return loadBitmap(context, uri, options); 320 * Returns the bitmap from the given uri loaded using the given options. 419 BitmapFactory.Options options 254 loadRegionBitmap(Context context, BitmapCache cache, Uri uri, BitmapFactory.Options options, Rect bounds) argument 483 decodeResourceWithBackouts(Resources res, BitmapFactory.Options options, int id) argument [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | ThumbnailManager.java | 329 BitmapFactory.Options options = new BitmapFactory.Options(); 330 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 332 data.mOffset, data.mData.length - data.mOffset, options); 384 int length, Options options) { 385 if (options == null) { 386 options = new Options(); 389 BitmapFactory.decodeByteArray(bytes, offset, length, options)); 436 BitmapFactory.Options options = new BitmapFactory.Options(); 437 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 439 return requestDecode(uri, options, THUMBNAIL_TARGET_SIZ 383 requestDecode(byte[] bytes, int offset, int length, Options options) argument 451 requestDecode(final Uri uri, Options options, int targetSize) argument [all...] |
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
H A D | AppChooserActivity.java | 81 ArrayList<ApduServiceInfo> options, ComponentName failedComponent) { 88 if ((options == null || options.size() == 0) && failedComponent == null) { 119 if (options.size() == 0 && failedComponent != null) { 126 mListAdapter = new ListAdapter(this, options); 80 onCreate(Bundle savedInstanceState, String category, ArrayList<ApduServiceInfo> options, ComponentName failedComponent) argument
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
H A D | ContactsUtils.java | 130 * @param options the decoding options, can be set to null 134 BitmapFactory.Options options) { 140 return BitmapFactory.decodeByteArray(data, 0, data.length, options); 148 * @param options the decoding options, can be set to null 152 BitmapFactory.Options options) { 157 placeholderImageResource, options); 161 BitmapFactory.Options options) { 174 photoData.length, options); 133 loadContactPhoto(Cursor cursor, int bitmapColumnIndex, BitmapFactory.Options options) argument 151 loadPlaceholderPhoto(int placeholderImageResource, Context context, BitmapFactory.Options options) argument 160 loadContactPhoto(Context context, long photoId, BitmapFactory.Options options) argument [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoSource.java | 129 public Bitmap next(BitmapFactory.Options options, int longSide, int shortSide) { argument 143 image = load(imageData, options, longSide, shortSide); 153 options, longSide, shortSide); 159 public Bitmap load(ImageData data, BitmapFactory.Options options, int longSide, int shortSide) { argument 168 options.inJustDecodeBounds = true; 169 options.inSampleSize = 1; 170 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options); 171 int rawLongSide = Math.max(options.outWidth, options.outHeight); 172 int rawShortSide = Math.min(options 283 naturalNext(Bitmap current, BitmapFactory.Options options, int longSide, int shortSide) argument 297 naturalPrevious(Bitmap current, BitmapFactory.Options options, int longSide, int shortSide) argument [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 49 Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options); argument 89 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { argument 90 return mDecoder.decodeRegion(wantRegion, options); 121 public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) { argument 127 int sampleSize = Math.max(options.inSampleSize, 1); 221 public abstract Bitmap loadPreviewBitmap(BitmapFactory.Options options); argument 240 public Bitmap loadPreviewBitmap(BitmapFactory.Options options) { argument 241 return BitmapFactory.decodeFile(mPath, options); 289 public Bitmap loadPreviewBitmap(BitmapFactory.Options options) { argument 292 Bitmap b = BitmapFactory.decodeStream(is, null, options); 349 loadPreviewBitmap(BitmapFactory.Options options) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | ExifParser.java | 31 * {@link #parse(InputStream, int)} with given options. 201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument 212 mOptions = options; 234 * Parses the the given InputStream with the given options 239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument 241 return new ExifParser(inputStream, options, iRef); 245 * Parses the the given InputStream with default options; that is, every IFD
|