Home
last modified time | relevance | path

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

1234

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactory_OptionsTest.java58 BitmapFactory.Options options = new BitmapFactory.Options(); in testExtractMetaData() local
59 options.inJustDecodeBounds = true; in testExtractMetaData()
67 b = BitmapFactory.decodeStream(in, null, options); in testExtractMetaData()
72 assertEquals(64, options.outWidth); in testExtractMetaData()
73 assertEquals(64, options.outHeight); in testExtractMetaData()
74 assertEquals("image/png", options.outMimeType); in testExtractMetaData()
75 assertEquals(Bitmap.Config.RGBA_F16, options.outConfig); in testExtractMetaData()
78 b = BitmapFactory.decodeResource(resources, R.drawable.alpha, options); in testExtractMetaData()
80 assertEquals(Bitmap.Config.ARGB_8888, options.outConfig); in testExtractMetaData()
83 options.inPreferredConfig = Bitmap.Config.RGB_565; in testExtractMetaData()
[all …]
DBitmapFactoryTest.java218 BitmapFactory.Options options = new BitmapFactory.Options(); in testDecodeStream4() local
220 options.inPreferredConfig = COLOR_CONFIGS[k]; in testDecodeStream4()
225 Bitmap bPng = BitmapFactory.decodeStream(iStreamPng, null, options); in testDecodeStream4()
232 Bitmap bWebp1 = BitmapFactory.decodeStream(iStreamWebp1, null, options); in testDecodeStream4()
243 Bitmap bWebp2 = BitmapFactory.decodeStream(iStreamWebp2, null, options); in testDecodeStream4()
253 BitmapFactory.Options options = new BitmapFactory.Options(); in testDecodeStream5() local
255 options.inPreferredConfig = COLOR_CONFIGS_RGBA[k]; in testDecodeStream5()
260 Bitmap bPng = BitmapFactory.decodeStream(iStreamPng, null, options); in testDecodeStream5()
268 Bitmap bWebP1 = BitmapFactory.decodeStream(iStreamWebP1, null, options); in testDecodeStream5()
280 Bitmap bWebP2 = BitmapFactory.decodeStream(iStreamWebp2, null, options); in testDecodeStream5()
[all …]
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java64 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 …]
DTestDefaultAuthenticator.java56 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/renderscript/src/android/renderscript/cts/refocus/
DRenderScriptTask.java96 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/src/android/accounts/cts/
DAbstractAuthenticatorTests.java76 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 …]
DAccountManagerUnaffiliatedAuthenticatorTests.java283 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 …]
DMockAccountAuthenticator.java161 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 …]
DAccountManagerTest.java299 private void validateSystemOptions(Bundle options) { in validateSystemOptions() argument
300 assertNotNull(options.getString(AccountManager.KEY_ANDROID_PACKAGE_NAME)); in validateSystemOptions()
301 assertTrue(options.containsKey(AccountManager.KEY_CALLER_UID)); in validateSystemOptions()
302 assertTrue(options.containsKey(AccountManager.KEY_CALLER_PID)); in validateSystemOptions()
316 String[] requiredFeatures, Bundle options, Activity activity, in addAccount() argument
324 options, in addAccount()
2283 Bundle options = new Bundle();
2284 options.putBoolean(MockAccountAuthenticator.KEY_RETURN_INTENT, true);
2287 options,// OPTIONS_BUNDLE,
2361 final Bundle options = createOptionsWithAccountName(accountName);
[all …]
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
DStartUpdateCredentialsSessionTx.java26 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()
DConfirmCredentialsTx.java25 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()
DUpdateCredentialsTx.java26 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()
DGetAuthTokenTx.java26 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()
DStartAddAccountSessionTx.java29 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()
DAddAccountTx.java29 public final Bundle options; field in AddAccountTx
36 options = in.readBundle(); in AddAccountTx()
44 Bundle options, in AddAccountTx() argument
53 this.options = options; in AddAccountTx()
67 out.writeBundle(options); in writeToParcel()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppSecurityTests.java113 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testSharedUidDifferentCerts() local
115 false, options); in testSharedUidDifferentCerts()
119 false, options); in testSharedUidDifferentCerts()
142 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testAppUpgradeDifferentCerts() local
144 false, options); in testAppUpgradeDifferentCerts()
148 true /* reinstall */, options); in testAppUpgradeDifferentCerts()
170 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testAppFailAccessPrivateData() local
172 false, options); in testAppFailAccessPrivateData()
179 false, options); in testAppFailAccessPrivateData()
201 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testUninstallRemovesData() local
[all …]
DExternalStorageHostTest.java88 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testExternalStorageNone() local
89 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone() local
112 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testExternalStorageRead() local
113 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead() local
136 String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testExternalStorageWrite() local
137 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite() local
161 final String[] options = {AbiUtils.createAbiFlag(getAbi().getName())}; in testExternalStorageGifts() local
165 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageGifts() local
170 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageGifts() local
171 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageGifts() local
[all …]
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIpv4Packet.java39 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/activitymanager/app/src/android/server/am/
DAlwaysFocusablePipActivity.java39 final ActivityOptions options = ActivityOptions.makeBasic(); in launchAlwaysFocusablePipActivity() local
40 options.setLaunchBounds(new Rect(0, 0, 500, 500)); in launchAlwaysFocusablePipActivity()
41 options.setLaunchWindowingMode(WINDOWING_MODE_PINNED); in launchAlwaysFocusablePipActivity()
42 caller.startActivity(intent, options.toBundle()); in launchAlwaysFocusablePipActivity()
DFreeformActivity.java35 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()
DTranslucentAssistantActivity.java41 final ActivityOptions options = ActivityOptions.makeBasic(); in launchActivityIntoAssistantStack() local
42 options.setLaunchActivityType(ACTIVITY_TYPE_ASSISTANT); in launchActivityIntoAssistantStack()
43 caller.startActivity(intent, options.toBundle()); in launchActivityIntoAssistantStack()
/cts/tests/tests/jvmti/attaching/jni/
Dagent.c25 Agent_OnAttach(JavaVM* vm, char* options, void* reserved) { in Agent_OnAttach() argument
26 if (options != NULL && options[0] == 'a') { in Agent_OnAttach()
/cts/hostsidetests/incident/apps/boundwidgetapp/src/android/appwidget/cts/
DAppWidgetTest.java63 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/media/src/android/media/cts/
DMediaBrowserTest.java219 Bundle options = new Bundle(); in testSubscribeWithOptions() local
220 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testSubscribeWithOptions()
223 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeWithOptions()
224 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_ROOT, options, in testSubscribeWithOptions()
285 Bundle options = new Bundle(); in testSubscribeInvalidItemWithOptions() local
286 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testSubscribeInvalidItemWithOptions()
287 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeInvalidItemWithOptions()
288 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_INVALID, options, in testSubscribeInvalidItemWithOptions()
332 Bundle options = new Bundle(); in testUnsubscribeForMultipleSubscriptions() local
333 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testUnsubscribeForMultipleSubscriptions()
[all …]
/cts/tests/app/src/android/app/cts/
DActivityOptionsTest.java26 ActivityOptions options = ActivityOptions.makeBasic(); in testActivityOptionsBundle_makeBasic() local
27 Bundle bundle = options.toBundle(); in testActivityOptionsBundle_makeBasic()

1234