Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 62) sorted by relevance

123

/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageResizer.java120 final BitmapFactory.Options options = new BitmapFactory.Options(); in decodeSampledBitmapFromResource() local
121 options.inJustDecodeBounds = true; in decodeSampledBitmapFromResource()
122 BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromResource()
130 addInBitmapOptions(options, cache); in decodeSampledBitmapFromResource()
134 options.inJustDecodeBounds = false; in decodeSampledBitmapFromResource()
135 return BitmapFactory.decodeResource(res, resId, options); in decodeSampledBitmapFromResource()
152 final BitmapFactory.Options options = new BitmapFactory.Options(); in decodeSampledBitmapFromFile() local
153 options.inJustDecodeBounds = true; in decodeSampledBitmapFromFile()
154 BitmapFactory.decodeFile(filename, options); in decodeSampledBitmapFromFile()
[all …]
/development/tools/bugreport/src/com/android/bugreport/
DMain.java49 final Options options = Options.parseArgs(args); in run() local
50 if (options.errorIndex >= 0) { in run()
55 return run(options); in run()
72 public static int run(Options options) { in run() argument
78 bugreport = parser.parse(Lines.readLines(options.bugreport)); in run()
80 System.err.println("Error reading monkey file: " + options.bugreport); in run()
87 if (options.monkey != null) { in run()
90 parser.parse(bugreport, Lines.readLines(options.monkey)); in run()
92 System.err.println("Error reading bugreport file: " + options.bugreport); in run()
100 if (options.logcat != null) { in run()
[all …]
/development/testrunner/test_defs/
Dinstrumentation_test.py86 def GetBuildDependencies(self, options): argument
87 if options.coverage_target_path:
88 return [options.coverage_target_path]
91 def Run(self, options, adb): argument
105 if options.test_class is not None:
106 test_class = options.test_class.lstrip()
109 if options.test_method is not None:
110 test_class = "%s#%s" % (test_class, options.test_method)
113 if options.test_package:
114 test_package = options.test_package
[all …]
Dhost_test.py52 def GetBuildDependencies(self, options): argument
71 def Run(self, options, adb_interface): argument
94 path = os.path.join(options.host_lib_path, lib)
105 options.test_data_path)
107 if not options.preview:
Dgtest.py45 def Run(self, options, adb): argument
55 if options.test_class is not None:
56 test_class = options.test_class.lstrip()
57 if options.test_method is not None:
58 test_method = options.test_method.lstrip()
66 if not options.preview:
Dnative_test.py34 def Run(self, options, adb): argument
90 int(options.timeout))
94 if not success or options.verbose:
/development/tools/
Dmonkey206 options = parser.parse_args()
208 if not options.dir:
209 options.dir = "monkeys-%s" % CurrentTimestamp()
211 if not options.packages:
212 options.packages = [
234 return options
245 options = ParseOptions()
259 pattern = "%%0%dd" % len(str(options.runs-1))
262 if os.path.exists(options.dir) and not os.path.isdir(options.dir):
264 % options.dir)
[all …]
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DNotificationPresets.java72 NotificationPreset.BuildOptions options) { in applyBasicOptions() argument
73 builder.setContentTitle(options.titlePreset) in applyBasicOptions()
74 .setContentText(options.textPreset) in applyBasicOptions()
78 options.actionsPreset.apply(context, builder, wearableOptions); in applyBasicOptions()
79 options.priorityPreset.apply(builder, wearableOptions); in applyBasicOptions()
80 if (options.includeLargeIcon) { in applyBasicOptions()
84 if (options.isLocalOnly) { in applyBasicOptions()
87 if (options.hasContentIntent) { in applyBasicOptions()
91 if (options.vibrate) { in applyBasicOptions()
104 public Notification[] buildNotifications(Context context, BuildOptions options) { in buildNotifications() argument
[all …]
/development/gsi/gsi_util/gsi_util/utils/
Dsepolicy_utils.py20 def secilc(options, files): argument
64 for option in options:
71 if options[option] is not None:
72 cmd.append(options[option])
/development/scripts/
Darchitecture.py34 self.options = OPTIONS.get(name, {})
38 return [symbol.ToolPath(ASSEMBLE)] + self.options.get(ASSEMBLE, []) + args
42 return [symbol.ToolPath(LINK)] + self.options.get(LINK, []) + args
46 return ([symbol.ToolPath(DISASSEMBLE)] + self.options.get(DISASSEMBLE, []) +
58 return self.options.get(UNPACK, UnpackLittleEndian)(word)
Dstack47 options, arguments = getopt.getopt(sys.argv[1:], "",
53 for option, value in options:
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMyAccountAuthenticator.java38 String authTokenType, String[] requiredFeatures, Bundle options) { in addAccount() argument
43 String authTokenType, Bundle options) { in getAuthToken() argument
48 Bundle options) { in confirmCredentials() argument
66 String authTokenType, Bundle options) { in updateCredentials() argument
/development/vndk/tools/header-checker/src/dumper/
Dfrontend_action_factory.cpp27 HeaderCheckerOptions &options) in HeaderCheckerFrontendActionFactory() argument
28 : options_(options) {} in HeaderCheckerFrontendActionFactory()
Dfrontend_action.cpp35 HeaderCheckerOptions &options) in HeaderCheckerFrontendAction() argument
36 : options_(options) {} in HeaderCheckerFrontendAction()
Dfixed_argv.h57 const char *GetLastArg(T&& ...options) const { in GetLastArg() argument
58 std::array<const char *, sizeof...(options)> opts{ in GetLastArg()
59 std::forward<T&&>(options)...}; in GetLastArg()
Dast_processing.h38 HeaderASTVisitor(const HeaderCheckerOptions &options,
78 HeaderCheckerOptions &options);
/development/tools/winscope/src/
Dtransform.js90 function transform_json(obj, name, options) { argument
91 let {skip, formatter} = options;
99 children.push(transform_json(null, formatted, options));
102 children.push(transform_json(e, ""+i, options));
105 children.push(transform_json(null, obj, options));
107 children.push(transform_json(null, ""+obj, options));
110 children.push(transform_json(obj[key], key, options));
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageLoader.java362 final BitmapFactory.Options options = new BitmapFactory.Options(); in decodeSampledBitmapFromDescriptor() local
363 options.inJustDecodeBounds = true; in decodeSampledBitmapFromDescriptor()
364 BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options); in decodeSampledBitmapFromDescriptor()
367 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromDescriptor()
370 options.inJustDecodeBounds = false; in decodeSampledBitmapFromDescriptor()
371 return BitmapFactory.decodeFileDescriptor(fileDescriptor, null, options); in decodeSampledBitmapFromDescriptor()
388 public static int calculateInSampleSize(BitmapFactory.Options options, in calculateInSampleSize() argument
391 final int height = options.outHeight; in calculateInSampleSize()
392 final int width = options.outWidth; in calculateInSampleSize()
/development/tools/winscope/
Dwebpack.config.js33 options: { property
47 options: { property
57 options: { property
/development/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/
DMyAuthenticator.java73 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument
85 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument
91 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
97 String authTokenType, Bundle options) throws NetworkErrorException { in getAuthToken() argument
/development/samples/RenderScript/HelloCompute/src/com/example/android/rs/hellocompute/
DHelloCompute.java72 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadBitmap() local
73 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadBitmap()
74 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()
/development/ide/emacs/
Dandroid-compile.el148 (options
158 (concat "make -C " topdir options) ; Build the whole image.
160 " make -C " topdir options " files ")))
/development/samples/browseable/MultiWindowPlayground/src/com/android.multiwindowplayground/
DMainActivity.java92 ActivityOptions options = ActivityOptions.makeBasic(); in onStartLaunchBoundsActivity() local
93 options.setLaunchBounds(bounds); in onStartLaunchBoundsActivity()
97 startActivity(intent, options.toBundle()); in onStartLaunchBoundsActivity()
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNonsenseGenerator.java155 private String pickOneOf(String ... options) { in pickOneOf() argument
156 return options[mRandom.nextInt(options.length)]; in pickOneOf()
/development/samples/browseable/BasicRenderScript/src/com.example.android.basicrenderscript/
DMainActivity.java185 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadBitmap() local
186 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadBitmap()
187 return BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap()

123