/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | BitmapFactory_OptionsTest.java | 61 BitmapFactory.Options options = new BitmapFactory.Options(); in testExtractMetaData() local 62 options.inJustDecodeBounds = true; in testExtractMetaData() 70 b = BitmapFactory.decodeStream(in, null, options); in testExtractMetaData() 75 assertEquals(64, options.outWidth); in testExtractMetaData() 76 assertEquals(64, options.outHeight); in testExtractMetaData() 77 assertEquals("image/png", options.outMimeType); in testExtractMetaData() 78 assertEquals(Bitmap.Config.RGBA_F16, options.outConfig); in testExtractMetaData() 81 b = BitmapFactory.decodeResource(resources, R.drawable.alpha, options); in testExtractMetaData() 83 assertEquals(Bitmap.Config.ARGB_8888, options.outConfig); in testExtractMetaData() 86 options.inPreferredConfig = Bitmap.Config.RGB_565; in testExtractMetaData() [all …]
|
D | BitmapFactoryTest.java | 234 private Bitmap decodeOpaqueImage(int resId, BitmapFactory.Options options) { in decodeOpaqueImage() argument 235 return decodeOpaqueImage(obtainInputStream(resId), options); in decodeOpaqueImage() 238 private Bitmap decodeOpaqueImage(InputStream stream, BitmapFactory.Options options) { in decodeOpaqueImage() argument 239 Bitmap bitmap = BitmapFactory.decodeStream(stream, null, options); in decodeOpaqueImage() 249 BitmapFactory.Options options = new BitmapFactory.Options(); in testWebpStreamDecode() local 250 options.inPreferredConfig = config; in testWebpStreamDecode() 254 Bitmap bPng = decodeOpaqueImage(R.drawable.png_test, options); in testWebpStreamDecode() 256 Bitmap bWebp = decodeOpaqueImage(R.drawable.webp_test, options); in testWebpStreamDecode() 263 BitmapFactory.Options options = new BitmapFactory.Options(); in testWebpStreamEncode() local 264 options.inPreferredConfig = config; in testWebpStreamEncode() [all …]
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
D | TestAccountAuthenticator.java | 64 Bundle options) throws NetworkErrorException { in addAccount() argument 70 if (options != null) { in addAccount() 71 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount() 72 isCallbackRequired = options.getBoolean(Fixtures.KEY_CALLBACK_REQUIRED, false); in addAccount() 76 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount() 94 fillDefaultError(result, options); in addAccount() 110 Bundle options) throws NetworkErrorException { in confirmCredentials() argument 116 new ConfirmCredentialsTx(account, options, result)); in confirmCredentials() 119 options != null && options.getBoolean(Fixtures.KEY_CALLBACK_REQUIRED); in confirmCredentials() 140 fillDefaultError(result, options); in confirmCredentials() [all …]
|
D | TestDefaultAuthenticator.java | 56 Bundle options) throws NetworkErrorException { in addAccount() argument 62 if (options != null) { in addAccount() 63 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount() 73 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount() 81 Bundle options) throws NetworkErrorException { in confirmCredentials() argument 91 Bundle options) throws NetworkErrorException { in getAuthToken() argument 107 Bundle options) throws NetworkErrorException { in updateCredentials() argument 115 new UpdateCredentialsTx(account, authTokenType, options, result)); in updateCredentials()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AbstractAuthenticatorTests.java | 76 Bundle options = new Bundle(); in testStartAddAccountSessionDefaultImpl() local 78 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testStartAddAccountSessionDefaultImpl() 84 options, in testStartAddAccountSessionDefaultImpl() 112 Bundle options = new Bundle(); in testStartUpdateCredentialsSessionDefaultImpl() local 114 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testStartUpdateCredentialsSessionDefaultImpl() 119 options, in testStartUpdateCredentialsSessionDefaultImpl() 150 Bundle options = new Bundle(); in testFinishSessionAndStartAddAccountSessionDefaultImpl() local 152 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testFinishSessionAndStartAddAccountSessionDefaultImpl() 160 options, in testFinishSessionAndStartAddAccountSessionDefaultImpl() 199 validateSystemOptions(addAccountTx.options); in testFinishSessionAndStartAddAccountSessionDefaultImpl() [all …]
|
D | AccountManagerUnaffiliatedAuthenticatorTests.java | 283 Bundle options = createOptionsWithAccountName(accountName); in testStartAddAccountSession() local 289 options, in testStartAddAccountSession() 298 validateStartAddAccountSessionParameters(options); in testStartAddAccountSession() 321 Bundle options = createOptionsWithAccountName(accountName); in testStartUpdateCredentialsSession() local 326 options, in testStartUpdateCredentialsSession() 335 validateStartUpdateCredentialsSessionParameters(options); in testStartUpdateCredentialsSession() 359 Bundle options = new Bundle(); in testDefaultFinishSessiontWithStartAddAccountSessionImpl() local 360 options.putString(Fixtures.KEY_ACCOUNT_NAME, accountName); in testDefaultFinishSessiontWithStartAddAccountSessionImpl() 361 options.putBundle(Fixtures.KEY_ACCOUNT_SESSION_BUNDLE, sessionBundle); in testDefaultFinishSessiontWithStartAddAccountSessionImpl() 368 options, in testDefaultFinishSessiontWithStartAddAccountSessionImpl() [all …]
|
D | MockAccountAuthenticator.java | 161 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument 167 this.mOptionsAddAccount = options; in addAccount() 178 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument 182 this.mOptionsUpdateCredentials = options; in updateCredentials() 203 Bundle options) throws NetworkErrorException { in confirmCredentials() argument 206 this.mOptionsConfirmCredentials = options; in confirmCredentials() 208 if (options.containsKey(KEY_RETURN_INTENT)) { in confirmCredentials() 227 Bundle options) throws NetworkErrorException { in getAuthToken() argument 233 this.mOptionsGetAuthToken = options; in getAuthToken() 337 Bundle options) throws NetworkErrorException { in startAddAccountSession() argument [all …]
|
D | AccountManagerTest.java | 297 private void validateSystemOptions(Bundle options) { in validateSystemOptions() argument 298 assertNotNull(options.getString(AccountManager.KEY_ANDROID_PACKAGE_NAME)); in validateSystemOptions() 299 assertTrue(options.containsKey(AccountManager.KEY_CALLER_UID)); in validateSystemOptions() 300 assertTrue(options.containsKey(AccountManager.KEY_CALLER_PID)); in validateSystemOptions() 314 String[] requiredFeatures, Bundle options, Activity activity, in addAccount() argument 322 options, in addAccount() 2281 Bundle options = new Bundle(); 2282 options.putBoolean(MockAccountAuthenticator.KEY_RETURN_INTENT, true); 2285 options,// OPTIONS_BUNDLE, 2359 final Bundle options = createOptionsWithAccountName(accountName); [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RenderScriptTask.java | 96 public Bitmap applyRefocusFilter(DepthOfFieldOptions options) { in applyRefocusFilter() argument 100 prepareRefocusFilter(options); in applyRefocusFilter() 133 private void prepareRefocusFilter(DepthOfFieldOptions options) { in prepareRefocusFilter() argument 135 options.rgbz.getDepthTransform(), options.focalDepth, in prepareRefocusFilter() 136 options.depthOfField, options.blurInfinity, NUM_BLENDING_LAYERS); in prepareRefocusFilter() 138 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/ |
D | ConfirmCredentialsTx.java | 25 public final Bundle options; field in ConfirmCredentialsTx 30 options = in.readBundle(); in ConfirmCredentialsTx() 36 Bundle options, in ConfirmCredentialsTx() argument 39 this.options = options; in ConfirmCredentialsTx() 51 out.writeBundle(options); in writeToParcel()
|
D | StartUpdateCredentialsSessionTx.java | 26 public final Bundle options; field in StartUpdateCredentialsSessionTx 31 options = in.readBundle(); in StartUpdateCredentialsSessionTx() 37 Bundle options) { in StartUpdateCredentialsSessionTx() argument 40 this.options = options; in StartUpdateCredentialsSessionTx() 52 out.writeBundle(options); in writeToParcel()
|
D | GetAuthTokenTx.java | 26 public final Bundle options; field in GetAuthTokenTx 32 options = in.readBundle(); in GetAuthTokenTx() 39 Bundle options, in GetAuthTokenTx() argument 43 this.options = options; in GetAuthTokenTx() 56 out.writeBundle(options); in writeToParcel()
|
D | UpdateCredentialsTx.java | 26 public final Bundle options; field in UpdateCredentialsTx 32 options = in.readBundle(); in UpdateCredentialsTx() 39 Bundle options, in UpdateCredentialsTx() argument 43 this.options = options; in UpdateCredentialsTx() 56 out.writeBundle(options); in writeToParcel()
|
D | StartAddAccountSessionTx.java | 29 public final Bundle options; field in StartAddAccountSessionTx 35 options = in.readBundle(); in StartAddAccountSessionTx() 42 Bundle options) { in StartAddAccountSessionTx() argument 50 this.options = options; in StartAddAccountSessionTx() 63 out.writeBundle(options); in writeToParcel()
|
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/ |
D | Ipv4Packet.java | 39 byte[] options; field in Ipv4Packet 67 options = new byte[headerLength - HEADER_MIN_LENGTH]; in Ipv4Packet() 68 stream.read(options, 0, options.length); in Ipv4Packet() 86 options = newOptions; in setOptions() 87 headerLength = HEADER_MIN_LENGTH + options.length; in setOptions() 111 stream.write(options, 0, options.length); in getEncoded() 138 for (int i = 0 ; i < options.length; i++) { in toString() 142 out.append(String.format(" %02X", options[i] & 0xFF)); in toString()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityLauncher.java | 204 ActivityOptions options = extras.getBoolean(KEY_LAUNCH_TASK_BEHIND) in launchActivityFromExtras() local 208 if (options == null) { in launchActivityFromExtras() 209 options = ActivityOptions.makeBasic(); in launchActivityFromExtras() 211 options.setLaunchDisplayId(displayId); in launchActivityFromExtras() 218 if (options == null) { in launchActivityFromExtras() 219 options = ActivityOptions.makeBasic(); in launchActivityFromExtras() 221 options.setLaunchWindowingMode(windowingMode); in launchActivityFromExtras() 228 if (options == null) { in launchActivityFromExtras() 229 options = ActivityOptions.makeBasic(); in launchActivityFromExtras() 231 options.setLaunchActivityType(activityType); in launchActivityFromExtras() [all …]
|
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
D | AlwaysFocusablePipActivity.java | 49 final ActivityOptions options = ActivityOptions.makeBasic(); in launchAlwaysFocusablePipActivity() local 50 options.setLaunchBounds(new Rect(0, 0, 500, 500)); in launchAlwaysFocusablePipActivity() 51 options.setLaunchWindowingMode(WINDOWING_MODE_PINNED); in launchAlwaysFocusablePipActivity() 52 caller.startActivity(intent, options.toBundle()); in launchAlwaysFocusablePipActivity()
|
D | FreeformActivity.java | 35 final ActivityOptions options = ActivityOptions.makeBasic(); in onResume() local 36 options.setLaunchBounds(new Rect(0, 0, 900, 900)); in onResume() 37 this.startActivity(intent, options.toBundle()); in onResume()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | EnvironmentTest.java | 66 final String options = fields[3]; in testNoAtime() local 68 if (source.startsWith("/dev/block/") && !options.startsWith("ro,") in testNoAtime() 69 && !options.contains("noatime")) { in testNoAtime() 86 final String options = fields[3]; in testHidePid2() local 88 if (source.equals("proc") && !options.contains("hidepid=2") in testHidePid2() 89 && !options.contains("hidepid=invisible")) { in testHidePid2()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | SmaliBuildStep.java | 40 SmaliOptions options = new SmaliOptions(); in build() local 41 options.verboseErrors = true; in build() 42 options.outputDexFile = outputFile.fileName.getAbsolutePath(); in build() 48 return Smali.assemble(options, inputFiles); in build()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | NoOpHotwordDetectionService.java | 48 @Nullable PersistableBundle options, in onDetect() argument 50 super.onDetect(audioStream, audioFormat, options, callback); in onDetect() 65 @Nullable PersistableBundle options, in onUpdateState() 69 super.onUpdateState(options, sharedMemory, callbackTimeoutMillis, statusCallback); in onUpdateState()
|
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 63 Bundle options = new Bundle(); in testBindWidget2() local 64 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH, 1); in testBindWidget2() 65 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT, 2); in testBindWidget2() 66 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH, 3); in testBindWidget2() 67 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, 4); in testBindWidget2() 68 setupWidget(getSecondAppWidgetProviderInfo(), options, true); in testBindWidget2() local 85 …private void setupWidget(AppWidgetProviderInfo prov, Bundle options, boolean bindWidget) throws Ex… in setupWidget() argument 105 prov.getProfile(), prov.provider, options); in setupWidget()
|
/cts/tests/tests/jvmti/attaching/jni/ |
D | agent.c | 25 Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument 26 if (options != NULL && options[0] == 'a') { in Agent_OnAttach()
|
/cts/tests/tests/libnativehelper/jni/ |
D | jni_invocation_api_ndk_test.cpp | 24 JavaVMOption options[] = { in TEST_F() local 28 vm_args.nOptions = std::size(options); in TEST_F() 29 vm_args.options = options; in TEST_F()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaBrowserTest.java | 288 Bundle options = new Bundle(); in testSubscribeWithOptions() local 289 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testSubscribeWithOptions() 292 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeWithOptions() 293 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_ROOT, options, in testSubscribeWithOptions() 354 Bundle options = new Bundle(); in testSubscribeInvalidItemWithOptions() local 355 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testSubscribeInvalidItemWithOptions() 356 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeInvalidItemWithOptions() 357 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_INVALID, options, in testSubscribeInvalidItemWithOptions() 429 Bundle options = new Bundle(); in testUnsubscribeForMultipleSubscriptions() local 430 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testUnsubscribeForMultipleSubscriptions() [all …]
|