Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java92 WindowManager.LayoutParams params = new WindowManager.LayoutParams( in testCopyFrom() local
97 mLayoutParams.copyFrom(params)); in testCopyFrom()
102 params = new WindowManager.LayoutParams(WINDOW_WIDTH, WINDOW_HEIGHT, in testCopyFrom()
108 mLayoutParams.copyFrom(params)); in testCopyFrom()
114 params = new WindowManager.LayoutParams(); in testCopyFrom()
115 params.setTitle(PARAMS_TITLE); in testCopyFrom()
116 params.alpha = ALPHA - 0.5f; in testCopyFrom()
117 params.windowAnimations = WINDOW_ANIMATIONS; in testCopyFrom()
118 params.dimAmount = DIM_AMOUNT - 1.0f; in testCopyFrom()
124 mLayoutParams.copyFrom(params)); in testCopyFrom()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DAbsoluteLayoutTest.java100 LayoutParams params = (LayoutParams) layout.generateLayoutParams(getAttributeSet()); in testGenerateLayoutParams1() local
102 assertNotNull(params); in testGenerateLayoutParams1()
103 assertEquals(LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams1()
104 assertEquals(LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParams1()
105 assertEquals(0, params.x); in testGenerateLayoutParams1()
106 assertEquals(0, params.y); in testGenerateLayoutParams1()
110 LayoutParams params = in testGenerateLayoutParams2() local
113 assertEquals(DEFAULT_WIDTH, params.width); in testGenerateLayoutParams2()
114 assertEquals(DEFAULT_HEIGHT, params.height); in testGenerateLayoutParams2()
115 assertEquals(0, params.x); in testGenerateLayoutParams2()
[all …]
DAbsoluteLayout_LayoutParamsTest.java51 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor() local
52 assertEquals(1, params.width); in testConstructor()
53 assertEquals(2, params.height); in testConstructor()
54 assertEquals(0, params.x); in testConstructor()
55 assertEquals(0, params.y); in testConstructor()
DFrameLayoutTest.java203 ViewGroup.LayoutParams params = myFrameLayout.generateLayoutParams(p); in testGenerateLayoutParams1() local
204 assertNotNull(params); in testGenerateLayoutParams1()
205 assertTrue(params instanceof FrameLayout.LayoutParams); in testGenerateLayoutParams1()
206 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams1()
207 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, params.height); in testGenerateLayoutParams1()
213 FrameLayout.LayoutParams params = mFrameLayout.generateLayoutParams(attrs); in testGenerateLayoutParams2() local
214 assertNotNull(params); in testGenerateLayoutParams2()
215 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams2()
216 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParams2()
217 assertEquals(Gravity.BOTTOM, params.gravity); in testGenerateLayoutParams2()
[all …]
DGallery_LayoutParamsTest.java39 LayoutParams params = new LayoutParams(320, 480); in testConstructor() local
40 new LayoutParams(params); in testConstructor()
DTwoLineListItemTest.java97 LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, in testOnFinishInflate() local
99 twoLineListItem.addView(text1, params); in testOnFinishInflate()
100 twoLineListItem.addView(text2, params); in testOnFinishInflate()
DLinearLayoutTest.java193 ViewGroup.LayoutParams params = new AbsoluteLayout.LayoutParams(240, 320, 0, 0); in testCheckLayoutParams() local
194 assertFalse(mockLinearLayout.checkLayoutParams(params)); in testCheckLayoutParams()
196 params = new LinearLayout.LayoutParams(240, 320); in testCheckLayoutParams()
197 assertTrue(mockLinearLayout.checkLayoutParams(params)); in testCheckLayoutParams()
/cts/tests/src/android/widget/cts/util/
DListScenario.java267 protected abstract void init(Params params); in init() argument
310 final Params params = createParams(); in onCreate() local
311 init(params); in onCreate()
313 readAndValidateParams(params); in onCreate()
335 if (params.mConnectAdapter) { in onCreate()
365 if (params.mFadingEdgeScreenSizeFactor != null) { in onCreate()
366 … mListView.setFadingEdgeLength((int) (params.mFadingEdgeScreenSizeFactor * mScreenHeight)); in onCreate()
456 protected void readAndValidateParams(Params params) { in readAndValidateParams() argument
457 if (params.mMustFillScreen ) { in readAndValidateParams()
459 for (int i = 0; i < params.mNumItems; i++) { in readAndValidateParams()
[all …]
DExpandableListScenario.java65 protected void readAndValidateParams(Params params) { in readAndValidateParams() argument
66 ExpandableParams expandableParams = (ExpandableParams) params; in readAndValidateParams()
77 super.readAndValidateParams(params); in readAndValidateParams()
378 protected final void init(Params params) { in init() argument
379 init((ExpandableParams) params); in init()
385 protected abstract void init(ExpandableParams params); in init() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/
DColorCheckerTest.java68 Camera.Parameters params = mTestCamera.getParameters(); in updateCamera() local
69 List<String> supportedFocusModes = params.getSupportedFocusModes(); in updateCamera()
72 if (supportedFocusModes.contains(params.FOCUS_MODE_AUTO)) { in updateCamera()
74 params.setFocusMode(params.FOCUS_MODE_AUTO); in updateCamera()
75 mTestCamera.setParameters(params); in updateCamera()
DAutoLockTest.java793 Camera.Parameters params = mTestCamera.getParameters(); in restartCamera() local
794 params.setPictureFormat(ImageFormat.JPEG); in restartCamera()
795 params.setPictureSize(640, 480); in restartCamera()
796 mTestCamera.setParameters(params); in restartCamera()
893 Camera.Parameters params = mTestCamera.getParameters(); in setLock() local
895 params.setAutoExposureLock(true); in setLock()
896 params.setAutoWhiteBalanceLock(true); in setLock()
897 mTestCamera.setParameters(params); in setLock()
911 Camera.Parameters params = mTestCamera.getParameters(); in releaseLock() local
913 params.setAutoExposureLock(false); in releaseLock()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java170 Camera.Parameters params = mCamera.getParameters(); in onCreate()
171 params.setPictureSize(resolution.width, resolution.height); in onCreate()
172 mCamera.setParameters(params); in onCreate()
248 Camera.Parameters params = mCamera.getParameters(); in onPictureTaken() local
249 mReportedFovDegrees = params.getHorizontalViewAngle(); in onPictureTaken()
413 Camera.Parameters params = setCameraParams(mCamera); in initializeCamera() local
418 getBestPreviewSize(mSurfaceSize.width, mSurfaceSize.height, params); in initializeCamera()
420 params.setPreviewSize(selectedPreviewSize.width, selectedPreviewSize.height); in initializeCamera()
421 mCamera.setParameters(params); in initializeCamera()
476 Camera.Parameters params = camera.getParameters(); in setCameraParams() local
[all …]
/cts/tests/src/android/widget/cts/
DExpandableListSimple.java29 protected void init(ExpandableParams params) { in init() argument
30 params.setNumChildren(NUM_CHILDREN).setItemScreenSizeFactor(0.14); in init()
DExpandableListWithHeaders.java29 protected void init(ExpandableParams params) { in init() argument
30 params.setStackFromBottom(false) in init()
/cts/tests/tests/holo/src/android/holo/cts/
DReferenceViewGroup.java56 LayoutParams params = child.getLayoutParams(); in onMeasure() local
57 int width = getMeasureSpec(params.width, mWidthDp); in onMeasure()
58 int height = getMeasureSpec(params.height, mHeightDp); in onMeasure()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java91 HashMap<String, String> params = new HashMap<String,String>(); in createParams() local
92 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, UTTERANCE_ID); in createParams()
93 return params; in createParams()
DTextToSpeechTest.java131 HashMap<String, String> params = new HashMap<String,String>(); in createParams() local
132 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, UTTERANCE_ID); in createParams()
133 return params; in createParams()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerFlakyNetworkTest.java30 import org.apache.http.params.HttpParams;
265 Socket socket, int buffersize, HttpParams params) throws IOException { in createHttpDataTransmitter() argument
266 return createSessionOutputBuffer(socket, buffersize, params); in createHttpDataTransmitter()
270 Socket socket, int buffersize, HttpParams params) throws IOException { in createSessionOutputBuffer() argument
271 return new SocketOutputBuffer(socket, buffersize, params) { in createSessionOutputBuffer()
/cts/tests/SignatureTest/src/android/tests/sigtest/
DJDiffClassDescription.java342 private static String convertParamList(final ArrayList<String> params) { in convertParamList() argument
346 if (params != null) { in convertParamList()
347 for (String str : params) { in convertParamList()
350 if (params.size() > 0) { in convertParamList()
556 Type[] params = method.getGenericParameterTypes(); in matches() local
560 if (jdiffParamList.size() == params.length) { in matches()
564 if (!compareParam(jdiffParamList.get(i), params[i])) { in matches()
674 Type[] params = c.getGenericParameterTypes(); in findMatchingConstructor() local
678 int numberOfParams = params.length; in findMatchingConstructor()
682 if (mClass.isMemberClass() && !isStaticClass && params.length >= 1) { in findMatchingConstructor()
[all …]
/cts/tests/src/android/view/animation/cts/
DGridLayoutAnimStubActivity.java96 AbsListView.LayoutParams params = new AbsListView.LayoutParams( in getView() local
98 newView.setLayoutParams(params); in getView()
/cts/suite/cts/hostTests/jank/app/src/com/android/cts/jank/
DCtsJankTestBase.java38 protected String getPropertyString(Bundle params, String key) in getPropertyString() argument
46 return super.getPropertyString(params, key); in getPropertyString()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DSensorCtsHelper.java301 Object ... params) { in formatAssertionMessage() argument
302 return formatAssertionMessage(verificationName, null, sensor, format, params); in formatAssertionMessage()
320 Object ... params) { in formatAssertionMessage() argument
337 builder.append(String.format(format, params)); in formatAssertionMessage()
/cts/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java154 protected Long doInBackground(String... params) { in doInBackground() argument
156 parameters = params; in doInBackground()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListAdapter.java142 protected RefreshResult doInBackground(Void... params) { in doInBackground() argument
210 protected Void doInBackground(Void... params) { in doInBackground() argument
232 protected Void doInBackground(Void... params) { in doInBackground() argument
/cts/tests/src/android/app/cts/
DActivityManagerMemoryClassTestActivity.java53 protected Void doInBackground(Void... params) { in doInBackground() argument

12