Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 61) 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/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 …]
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:
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:
Dnative_test.py34 def Run(self, options, adb): argument
90 int(options.timeout))
94 if not success or options.verbose:
/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/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/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)
/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/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/tools/winscope/src/
Dtransform.js95 function transform_json(obj, name, options) { argument
96 let {skip, formatter} = options;
104 children.push(transform_json(null, formatted, options));
107 children.push(transform_json(e, ""+i, options));
110 children.push(transform_json(null, obj, options));
112 children.push(transform_json(null, ""+obj, options));
115 children.push(transform_json(obj[key], key, 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/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/tools/winscope/
Dwebpack.config.js56 options: { property
70 options: { property
80 options: { property
/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/vndk/tools/header-checker/src/dumper/
Dfrontend_action_factory.cpp29 HeaderCheckerOptions &options) in HeaderCheckerFrontendActionFactory() argument
30 : options_(options) {} in HeaderCheckerFrontendActionFactory()
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()
Dfrontend_action.cpp35 HeaderCheckerOptions &options) in HeaderCheckerFrontendAction() argument
36 : options_(options) {} in HeaderCheckerFrontendAction()
Dast_processing.cpp47 const HeaderCheckerOptions &options, clang::MangleContext *mangle_contextp, in HeaderASTVisitor() argument
52 : options_(options), mangle_contextp_(mangle_contextp), in HeaderASTVisitor()
201 clang::CompilerInstance *compiler_instancep, HeaderCheckerOptions &options) in HeaderASTConsumer() argument
202 : cip_(compiler_instancep), options_(options) {} in HeaderASTConsumer()
/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()
/development/testrunner/
Dcreate_test.py183 options, args = parser.parse_args(argv)
188 return (options, args)
220 options, args = _ParseArgs(argv)
/development/vndk/tools/header-checker/
DREADME.md37 For more command line options, run `header-abi-dumper --help`.
55 For more command line options, run `header-abi-linker --help`.
70 For more command line options, run `header-abi-diff --help`.
113 For more command line options, run `utils/create_reference_dumps.py --help`.

123