Home
last modified time | relevance | path

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

123

/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java60 Bundle options) throws NetworkErrorException { in addAccount() argument
66 if (options != null) { in addAccount()
67 accountName = options.getString(Fixtures.KEY_ACCOUNT_NAME); in addAccount()
68 isCallbackRequired = options.getBoolean(Fixtures.KEY_CALLBACK_REQUIRED, false); in addAccount()
72 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount()
92 if (options != null) { in addAccount()
93 errorCode = options.getInt(AccountManager.KEY_ERROR_CODE); in addAccount()
94 errorMsg = options.getString(AccountManager.KEY_ERROR_MESSAGE); in addAccount()
113 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
119 new ConfirmCredentialsTx(account, options, result)); in confirmCredentials()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java192 BitmapFactory.Options options = new BitmapFactory.Options(); in testDecodeStream4() local
194 options.inPreferredConfig = COLOR_CONFIGS[k]; in testDecodeStream4()
199 Bitmap bPng = BitmapFactory.decodeStream(iStreamPng, null, options); in testDecodeStream4()
206 Bitmap bWebp1 = BitmapFactory.decodeStream(iStreamWebp1, null, options); in testDecodeStream4()
217 Bitmap bWebp2 = BitmapFactory.decodeStream(iStreamWebp2, null, options); in testDecodeStream4()
226 BitmapFactory.Options options = new BitmapFactory.Options(); in testDecodeStream5() local
228 options.inPreferredConfig = COLOR_CONFIGS_RGBA[k]; in testDecodeStream5()
233 Bitmap bPng = BitmapFactory.decodeStream(iStreamPng, null, options); in testDecodeStream5()
241 Bitmap bWebP1 = BitmapFactory.decodeStream(iStreamWebP1, null, options); in testDecodeStream5()
253 Bitmap bWebP2 = BitmapFactory.decodeStream(iStreamWebp2, null, options); in testDecodeStream5()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRenderScriptTask.java96 public Bitmap applyRefocusFilter(DepthOfFieldOptions options) { in applyRefocusFilter() argument
100 prepareRefocusFilter(options); in applyRefocusFilter()
131 private void prepareRefocusFilter(DepthOfFieldOptions options) { in prepareRefocusFilter() argument
133 options.rgbz.getDepthTransform(), options.focalDepth, in prepareRefocusFilter()
134 options.depthOfField, options.blurInfinity, NUM_BLENDING_LAYERS); in prepareRefocusFilter()
136 rgbdImage = options.rgbz.getBitmap(); in prepareRefocusFilter()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAppSecurityTests.java119 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testSharedUidDifferentCerts() local
121 false, options); in testSharedUidDifferentCerts()
125 false, options); in testSharedUidDifferentCerts()
146 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testAppUpgradeDifferentCerts() local
148 false, options); in testAppUpgradeDifferentCerts()
152 true /* reinstall */, options); in testAppUpgradeDifferentCerts()
172 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testAppFailAccessPrivateData() local
174 false, options); in testAppFailAccessPrivateData()
181 false, options); in testAppFailAccessPrivateData()
201 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testUninstallRemovesData() local
[all …]
DExternalStorageHostTest.java94 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testExternalStorageNone() local
95 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone() local
118 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testExternalStorageRead() local
119 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead() local
142 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testExternalStorageWrite() local
143 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite() local
167 final String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in testExternalStorageGifts() local
171 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageGifts() local
176 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageGifts() local
177 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageGifts() local
[all …]
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
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()
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()
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()
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/libs/deviceutil/src/android/cts/util/
DWidgetTestUtils.java119 BitmapFactory.Options options = new BitmapFactory.Options(); in getUnscaledBitmap() local
120 options.inScaled = false; in getUnscaledBitmap()
121 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledBitmap()
132 BitmapFactory.Options options = new BitmapFactory.Options(); in getUnscaledAndDitheredBitmap() local
133 options.inDither = true; in getUnscaledAndDitheredBitmap()
134 options.inScaled = false; in getUnscaledAndDitheredBitmap()
135 options.inPreferredConfig = config; in getUnscaledAndDitheredBitmap()
136 return BitmapFactory.decodeResource(resources, resId, options); in getUnscaledAndDitheredBitmap()
/cts/hostsidetests/devicepolicy/app/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/hostsidetests/services/activitymanager/app/src/android/server/app/
DAlwaysFocusablePipActivity.java33 final ActivityOptions options = ActivityOptions.makeBasic(); in launchAlwaysFocusablePipActivity() local
34 options.setLaunchBounds(new Rect(0, 0, 500, 500)); in launchAlwaysFocusablePipActivity()
35 options.setLaunchStackId(4 /* ActivityManager.StackId.PINNED_STACK_ID */); in launchAlwaysFocusablePipActivity()
36 caller.startActivity(intent, options.toBundle()); in launchAlwaysFocusablePipActivity()
DFreeformActivity.java35 final ActivityOptions options = ActivityOptions.makeBasic(); in onResume() local
36 options.setLaunchBounds(new Rect(0, 0, 500, 500)); in onResume()
37 this.startActivity(intent, options.toBundle()); in onResume()
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java126 Bundle options = new Bundle(); in testSubscribeWithOptions() local
127 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testSubscribeWithOptions()
130 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeWithOptions()
131 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_ROOT, options, in testSubscribeWithOptions()
177 Bundle options = new Bundle(); in testSubscribeInvalidItemWithOptions() local
178 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testSubscribeInvalidItemWithOptions()
179 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeInvalidItemWithOptions()
180 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_INVALID, options, in testSubscribeInvalidItemWithOptions()
305 Bundle options) { in onChildrenLoaded() argument
308 mLastOptions = options; in onChildrenLoaded()
[all …]
DMediaBrowserServiceTest.java67 Bundle options) {
140 Bundle options = new Bundle(); in testNotifyChildrenChangedWithPagination() local
141 options.putInt(MediaBrowser.EXTRA_PAGE_SIZE, pageSize); in testNotifyChildrenChangedWithPagination()
142 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testNotifyChildrenChangedWithPagination()
144 mMediaBrowser.subscribe(StubMediaBrowserService.MEDIA_ID_ROOT, options, in testNotifyChildrenChangedWithPagination()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java91 private int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight){ in calculateInSampleSize() argument
93 final int height = options.outHeight; in calculateInSampleSize()
94 final int width = options.outWidth; in calculateInSampleSize()
147 BitmapFactory.Options options = new BitmapFactory.Options(); in onCreateDialog() local
148 options.inJustDecodeBounds = true; in onCreateDialog()
149 BitmapFactory.decodeStream(input, null, options); in onCreateDialog()
156 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in onCreateDialog()
158 options.inJustDecodeBounds = false; in onCreateDialog()
161 scaled = BitmapFactory.decodeStream(input, null, options); in onCreateDialog()
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java148 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument
154 this.mOptionsAddAccount = options; in addAccount()
165 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument
169 this.mOptionsUpdateCredentials = options; in updateCredentials()
190 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
193 this.mOptionsConfirmCredentials = options; in confirmCredentials()
195 if (options.containsKey(KEY_RETURN_INTENT)) { in confirmCredentials()
214 Bundle options) throws NetworkErrorException { in getAuthToken() argument
220 this.mOptionsGetAuthToken = options; in getAuthToken()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DAccountAuthenticator.java49 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument
61 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument
67 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
76 String authTokenType, Bundle options) throws NetworkErrorException { in getAuthToken() argument
/cts/tests/tests/content/src/android/content/cts/
DMockAccountAuthenticator.java51 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument
63 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument
69 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
78 String authTokenType, Bundle options) throws NetworkErrorException { in getAuthToken() argument
/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
DMockAccountAuthenticator.java51 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument
63 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument
69 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
78 String authTokenType, Bundle options) throws NetworkErrorException { in getAuthToken() argument
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DStaticAccountAuthenticator.java64 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument
71 Bundle options) throws NetworkErrorException { in confirmCredentials() argument
79 String authTokenType, Bundle options) throws NetworkErrorException { in getAuthToken() argument
90 String authTokenType, Bundle options) throws NetworkErrorException { in updateCredentials() argument
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionTest.java89 Bundle options = ActivityOptions.makeSceneTransitionAnimation(mActivity, in testOnSharedElementsArrived()
96 mActivity.startActivityForResult(intent, 0, options); in testOnSharedElementsArrived()
137 Bundle options = ActivityOptions.makeSceneTransitionAnimation(mActivity,
143 mActivity.startActivityForResult(intent, 0, options);
171 Bundle options = ActivityOptions.makeSceneTransitionAnimation(mActivity,
178 mActivity.startActivityForResult(intent, 0, options);
205 Bundle options = ActivityOptions.makeSceneTransitionAnimation(mActivity,
212 mActivity.startActivityForResult(intent, 0, options);
239 Bundle options = ActivityOptions.makeSceneTransitionAnimation(mActivity,
247 mActivity.startActivityForResult(intent, 0, options);
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DWrappedGTest.java95 String[] options = {AbiUtils.createAbiFlag(mAbi.getName())}; in installTest() local
96 String installCode = mDevice.installPackage(testApp, true, options); in installTest()
116 String options = mAbi == null ? "" : String.format("--abi %s ", mAbi.getName()); in runTest() local
117 … String command = String.format("am instrument -w %s%s/.%s", options, mAppNameSpace, mRunner); in runTest()
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DUtils.java85 public static final String toOptionsString(Option[] options) { in toOptionsString() argument
88 for (int i = 0; i < options.length; i++) { in toOptionsString()
92 sb.append(options[i].getLabel()); in toOptionsString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsProvider.java98 Bundle options = getAppWidgetOptions(mgr, widgetId); in onReceive() local
99 updateWidget(ctx, widgetId, mgr, options); in onReceive()
162 private TextData getInstruction(int state, Bundle options, int widgetId) { in getInstruction() argument
175 if (options != null) { in getInstruction()
176 widthP = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH, -1); in getInstruction()
177 heightP = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, -1); in getInstruction()
178 widthL = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH, -1); in getInstruction()
179 heightL = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT, -1); in getInstruction()
180 category = options.getInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, -1); in getInstruction()

123