/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | DialogFrameTestActivity.java | 115 final LayoutParams params = w.getAttributes(); in doLayoutParamTest() local 116 setUp.accept(params); in doLayoutParamTest() 117 w.setAttributes(params); in doLayoutParamTest() 123 doLayoutParamTest(params -> { in testMatchParent() 124 params.width = MATCH_PARENT; in testMatchParent() 125 params.height = MATCH_PARENT; in testMatchParent() 130 doLayoutParamTest(params -> { in testExplicitSize() 131 params.width = 200; in testExplicitSize() 132 params.height = 200; in testExplicitSize() 137 doLayoutParamTest(params -> { in testExplicitSizeTopLeftGravity() [all …]
|
D | WindowManager_LayoutParamsTest.java | 108 WindowManager.LayoutParams params = new WindowManager.LayoutParams( in testCopyFrom() local 113 mLayoutParams.copyFrom(params)); in testCopyFrom() 118 params = new WindowManager.LayoutParams(WINDOW_WIDTH, WINDOW_HEIGHT, in testCopyFrom() 124 mLayoutParams.copyFrom(params)); in testCopyFrom() 130 params = new WindowManager.LayoutParams(); in testCopyFrom() 131 params.setTitle(PARAMS_TITLE); in testCopyFrom() 132 params.accessibilityTitle = PARAMS_TITLE; in testCopyFrom() 133 params.alpha = ALPHA - 0.5f; in testCopyFrom() 134 params.windowAnimations = WINDOW_ANIMATIONS; in testCopyFrom() 135 params.dimAmount = DIM_AMOUNT - 1.0f; in testCopyFrom() [all …]
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | MockImeSession.java | 322 private ImeCommand callCommandInternal(@NonNull String commandName, @NonNull Bundle params) { in callCommandInternal() argument 324 commandName, SystemClock.elapsedRealtimeNanos(), true, params); in callCommandInternal() 347 final Bundle params = new Bundle(); in memorizeCurrentInputConnection() local 348 return callCommandInternal("memorizeCurrentInputConnection", params); in memorizeCurrentInputConnection() 362 final Bundle params = new Bundle(); in unmemorizeCurrentInputConnection() local 363 return callCommandInternal("unmemorizeCurrentInputConnection", params); in unmemorizeCurrentInputConnection() 386 final Bundle params = new Bundle(); in callGetTextBeforeCursor() local 387 params.putInt("n", n); in callGetTextBeforeCursor() 388 params.putInt("flag", flag); in callGetTextBeforeCursor() 389 return callCommandInternal("getTextBeforeCursor", params); in callGetTextBeforeCursor() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
D | TimeoutResetActivity.java | 45 private static long getUserActivityTimeout(WindowManager.LayoutParams params) { in getUserActivityTimeout() argument 47 return getUserActivityTimeoutField(params).getLong(params); in getUserActivityTimeout() 54 private static Field getUserActivityTimeoutField(WindowManager.LayoutParams params) in getUserActivityTimeoutField() argument 56 return params.getClass().getField("userActivityTimeout"); in getUserActivityTimeoutField() 59 private static void setUserActivityTimeout(WindowManager.LayoutParams params, long timeout) { in setUserActivityTimeout() argument 61 getUserActivityTimeoutField(params).setLong(params, timeout); in setUserActivityTimeout() 73 WindowManager.LayoutParams params = activity.getWindow().getAttributes(); in turnOffScreen() 76 final long oldTimeout = getUserActivityTimeout(params); in turnOffScreen() 79 setUserActivityTimeout(params, timeout); in turnOffScreen() 82 activity.getWindow().setAttributes(params); in turnOffScreen() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2485/ |
D | poc.cpp | 82 OMX_PARAM_PORTDEFINITIONTYPE *params = (OMX_PARAM_PORTDEFINITIONTYPE *)malloc( in main() local 84 if (!params) { in main() 89 params->nPortIndex = OMX_UTILS_IP_PORT; in main() 90 params->nBufferSize = INPUT_BUFFER_SIZE; in main() 91 params->nBufferCountActual = params->nBufferCountMin = NUMBER_OF_BUFFERS; in main() 92 omxUtilsSetParameter(OMX_UTILS_IP_PORT, params); in main() 93 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in main() 94 omxUtilsGetParameter(OMX_UTILS_IP_PORT, params); in main() 97 int inMemSize = params->nBufferCountActual * params->nBufferSize; in main() 98 int inBufferCnt = params->nBufferCountActual; in main() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13241/ |
D | poc.cpp | 54 OMX_PARAM_PORTDEFINITIONTYPE *params = in main() local 57 params->nPortIndex = OMX_UTILS_IP_PORT; in main() 58 params->format.video.nFrameWidth = FRAME_WIDTH; in main() 59 params->format.video.nFrameHeight = FRAME_HEIGHT; in main() 60 params->format.video.xFramerate = FRAME_RATE; in main() 61 params->format.video.eCompressionFormat = OMX_VIDEO_CodingUnused; in main() 62 params->format.video.eColorFormat = OMX_COLOR_FormatAndroidOpaque; in main() 63 params->nBufferSize = BUFFER_SIZE; in main() 64 params->nBufferCountActual = params->nBufferCountMin = BUFFER_COUNT; in main() 65 err = omxUtilsSetParameter(OMX_UTILS_IP_PORT, params); in main() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2482/ |
D | poc.cpp | 92 OMX_PARAM_PORTDEFINITIONTYPE *params = (OMX_PARAM_PORTDEFINITIONTYPE *)malloc( in fuzzIOMXSetParameterChangeCount() local 95 if (params == NULL) { in fuzzIOMXSetParameterChangeCount() 101 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in fuzzIOMXSetParameterChangeCount() 103 params->eDir = (OMX_DIRTYPE)OMX_DirInput; in fuzzIOMXSetParameterChangeCount() 105 params->nBufferCountActual = 1024 * 1024 / 16; in fuzzIOMXSetParameterChangeCount() 106 params->nBufferSize = 0x31000; in fuzzIOMXSetParameterChangeCount() 107 params->format.video.nFrameHeight = 0; in fuzzIOMXSetParameterChangeCount() 113 err = node->setParameter(OMX_IndexParamPortDefinition, params, in fuzzIOMXSetParameterChangeCount() 118 free(params); in fuzzIOMXSetParameterChangeCount() 131 free(params); in fuzzIOMXSetParameterChangeCount() [all …]
|
/cts/tests/tests/permission3/UsePermissionAppWithOverlay/src/android/permission3/cts/usepermission/ |
D | OverlayActivity.kt | 17 val params = window.attributes in onCreate() constant 18 params.flags = (WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS or in onCreate() 24 params.gravity = Gravity.LEFT or Gravity.TOP in onCreate() 25 val left = intent.getIntExtra(DIALOG_LEFT, params.x) in onCreate() 26 val top = intent.getIntExtra(DIALOG_TOP, params.y) in onCreate() 27 val right = intent.getIntExtra(DIALOG_RIGHT, params.x + params.width) in onCreate() 29 params.x = left in onCreate() 30 params.y = top in onCreate() 31 params.width = right - left in onCreate() 32 params.height = bottom - top in onCreate()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0684/ |
D | poc.cpp | 54 OMX_PARAM_PORTDEFINITIONTYPE *params = in main() local 57 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in main() 58 omxUtilsGetParameter(OMX_UTILS_IP_PORT, params); in main() 59 int ipBufferCount = params->nBufferCountActual; in main() 64 params->format.video.nFrameWidth, params->format.video.nFrameHeight, in main() 73 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in main() 74 omxUtilsGetParameter(OMX_UTILS_OP_PORT, params); in main() 75 int opBufferSize = params->nBufferSize; in main() 76 int opBufferCount = params->nBufferCountActual; in main() 105 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in main() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AdminPermissionControlParamsTests.java | 40 AdminPermissionControlParams params = createViaParcel( in gettersReturnConstructorValue() local 43 assertThat(params.getGranteePackageName()).isEqualTo(PKG); in gettersReturnConstructorValue() 44 assertThat(params.getPermission()).isEqualTo(PERMISSION); in gettersReturnConstructorValue() 45 assertThat(params.getGrantState()).isEqualTo(GRANT_STATE); in gettersReturnConstructorValue() 46 assertThat(params.canAdminGrantSensorsPermissions()).isEqualTo(CAN_ADMIN_GRANT); in gettersReturnConstructorValue() 51 AdminPermissionControlParams params = createViaParcel(); in correctParcelingAndUnparceling() local 54 params.writeToParcel(parcel, 0); in correctParcelingAndUnparceling() 59 assertThat(params.getGranteePackageName()).isEqualTo(loadedParams.getGranteePackageName()); in correctParcelingAndUnparceling() 60 assertThat(params.getPermission()).isEqualTo(loadedParams.getPermission()); in correctParcelingAndUnparceling() 61 assertThat(params.getGrantState()).isEqualTo(loadedParams.getGrantState()); in correctParcelingAndUnparceling() [all …]
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | CecMessage.java | 29 StringBuilder params = new StringBuilder(""); in formatParams() local 34 params.append(":" + rawParams.substring(position, endPosition)); in formatParams() 38 return params.toString(); in formatParams() 42 StringBuilder params = new StringBuilder(""); in formatParams() local 45 params.insert(0, ":" + String.format("%02x", rawParam % 256)); in formatParams() 49 return params.toString(); in formatParams() 57 StringBuilder params = new StringBuilder(""); in formatParams() local 60 params.insert(0, ":" + String.format("%02x", rawParam % 256)); in formatParams() 65 return params.toString(); in formatParams() 73 String params = getNibbles(message).substring(4); in getAsciiString() local [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsoluteLayoutTest.java | 104 LayoutParams params = (LayoutParams) mAbsoluteLayout.generateLayoutParams( in testGenerateLayoutParamsFromAttributeSet() local 107 assertNotNull(params); in testGenerateLayoutParamsFromAttributeSet() 108 assertEquals(LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParamsFromAttributeSet() 109 assertEquals(LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParamsFromAttributeSet() 110 assertEquals(0, params.x); in testGenerateLayoutParamsFromAttributeSet() 111 assertEquals(0, params.y); in testGenerateLayoutParamsFromAttributeSet() 117 LayoutParams params = in testGenerateLayoutParamsFromLayoutParams() local 120 assertEquals(DEFAULT_WIDTH, params.width); in testGenerateLayoutParamsFromLayoutParams() 121 assertEquals(DEFAULT_HEIGHT, params.height); in testGenerateLayoutParamsFromLayoutParams() 122 assertEquals(0, params.x); in testGenerateLayoutParamsFromLayoutParams() [all …]
|
/cts/tests/tests/app/src/android/app/cts/ |
D | PictureInPictureParamsBuilderTest.java | 50 PictureInPictureParams params = builder.build(); in testBuildParams() local 51 assertTrue(Float.compare(0.5f, params.getAspectRatio()) == 0); in testBuildParams() 52 assertTrue(params.getActions().isEmpty()); in testBuildParams() 53 assertEquals(new Rect(0, 0, 100, 100), params.getSourceRectHint()); in testBuildParams() 59 params = builder.build(); in testBuildParams() 61 assertTrue(Float.compare(0f, params.getAspectRatio()) == 0); in testBuildParams() 62 assertNull(params.getActions()); in testBuildParams() 63 assertNull(params.getSourceRectHint()); in testBuildParams()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VideoCodecTest.java | 99 EncoderOutputStreamParameters params = getDefaultEncodingParameters( in internalTestBasic() local 111 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params, codecConfigs); in internalTestBasic() 119 if (params.bitrateType == VIDEO_ControlRateConstant) { in internalTestBasic() 127 } else if (params.bitrateType == VIDEO_ControlRateVariable in internalTestBasic() 138 decode(params.outputIvfFilename, null, codecMimeType, FPS, in internalTestBasic() 139 params.forceGoogleEncoder, codecConfigs); in internalTestBasic() 159 EncoderOutputStreamParameters params = getDefaultEncodingParameters( in internalTestAsyncEncoding() local 171 ArrayList<MediaCodec.BufferInfo> bufInfos = encodeAsync(params, codecConfigs); in internalTestAsyncEncoding() 177 decode(params.outputIvfFilename, OUTPUT_YUV, codecMimeType, FPS, in internalTestAsyncEncoding() 178 params.forceGoogleEncoder, codecConfigs); in internalTestAsyncEncoding() [all …]
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | JobParametersTest.java | 49 JobParameters params = kTestEnvironment.getLastStartJobParameters(); in testClipData() local 50 assertEquals(clipData.getItemCount(), params.getClipData().getItemCount()); in testClipData() 51 assertEquals(clipData.getItemAt(0).getText(), params.getClipData().getItemAt(0).getText()); in testClipData() 52 assertEquals(grantFlags, params.getClipGrantFlags()); in testClipData() 67 JobParameters params = kTestEnvironment.getLastStartJobParameters(); in testExtras() local 68 final PersistableBundle extras = params.getExtras(); in testExtras() 84 JobParameters params = kTestEnvironment.getLastStartJobParameters(); in testExpedited() local 85 assertTrue(params.isExpeditedJob()); in testExpedited() 96 params = kTestEnvironment.getLastStartJobParameters(); in testExpedited() 97 assertFalse(params.isExpeditedJob()); in testExpedited() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0840/ |
D | poc.cpp | 49 OMX_PARAM_PORTDEFINITIONTYPE *params = in main() local 52 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in main() 53 omxUtilsGetParameter(OMX_UTILS_IP_PORT, params); in main() 55 params->format.video.nFrameWidth, params->format.video.nFrameHeight, in main() 59 int inMemSize = params->nBufferCountActual * params->nBufferSize; in main() 60 int inBufferCnt = params->nBufferCountActual; in main() 71 memset(params, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE)); in main() 72 omxUtilsGetParameter(OMX_UTILS_OP_PORT, params); in main() 74 int outMemSize = params->nBufferCountActual * params->nBufferSize; in main() 75 int outBufferCnt = params->nBufferCountActual; in main()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListScenario.java | 262 protected abstract void init(Params params); in init() argument 296 final Params params = createParams(); in onCreate() local 297 init(params); in onCreate() 299 readAndValidateParams(params); in onCreate() 321 if (params.mConnectAdapter) { in onCreate() 353 if (params.mFadingEdgeScreenSizeFactor != null) { in onCreate() 354 … mListView.setFadingEdgeLength((int) (params.mFadingEdgeScreenSizeFactor * mScreenHeight)); in onCreate() 431 protected void readAndValidateParams(Params params) { in readAndValidateParams() argument 432 if (params.mMustFillScreen ) { in readAndValidateParams() 434 for (int i = 0; i < params.mNumItems; i++) { in readAndValidateParams() [all …]
|
/cts/tests/framework/base/windowmanager/appSecondUid/src/android/server/wm/second/ |
D | SecondActivity.java | 35 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in onCreate() local 36 params.height = WindowManager.LayoutParams.WRAP_CONTENT; in onCreate() 37 params.width = WindowManager.LayoutParams.WRAP_CONTENT; in onCreate() 38 params.type = WindowManager.LayoutParams.TYPE_BASE_APPLICATION; in onCreate() 39 params.setTitle("CustomView"); in onCreate() 40 getWindowManager().addView(view, params); in onCreate()
|
/cts/hostsidetests/securitybulletin/securityPatch/includes/ |
D | omxUtils.h | 56 static void InitOMXParams(T *params) { in InitOMXParams() argument 57 params->nSize = sizeof(T); in InitOMXParams() 58 params->nVersion.s.nVersionMajor = 1; in InitOMXParams() 59 params->nVersion.s.nVersionMinor = 0; in InitOMXParams() 60 params->nVersion.s.nRevision = 0; in InitOMXParams() 61 params->nVersion.s.nStep = 0; in InitOMXParams() 72 OMX_PARAM_PORTDEFINITIONTYPE *params); 74 OMX_PARAM_PORTDEFINITIONTYPE *params);
|
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobService.java | 32 public boolean onStartJob(JobParameters params) { in onStartJob() argument 33 Log.i(TAG, "Test job executing: " + params.getJobId()); in onStartJob() 35 reportJobStartIntent.putExtra(JOB_PARAMS_EXTRA_KEY, params); in onStartJob() 41 public boolean onStopJob(JobParameters params) { in onStopJob() argument 42 Log.i(TAG, "Test job stopped executing: " + params.getJobId()); in onStopJob() 44 reportJobStopIntent.putExtra(JOB_PARAMS_EXTRA_KEY, params); in onStopJob()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/intents/ |
D | CameraContentJobService.java | 48 public boolean onStartJob(JobParameters params) { in onStartJob() argument 49 Log.i(TAG, "Test job executing: " + params.getJobId()); in onStartJob() 50 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 55 public boolean onStopJob(JobParameters params) { in onStopJob() argument 95 private void notifyExecution(JobParameters params) { in notifyExecution() argument 96 Log.d(TAG, "Job executed:" + params.getJobId()); in notifyExecution() 97 mExecutedJobParameters = params; in notifyExecution()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/ |
D | poc.cpp | 29 ThreadParams *params = (ThreadParams *)p; in thread_getParameter() local 34 data.writeInterfaceToken(params->service->getInterfaceDescriptor()); in thread_getParameter() 37 err = params->service->transact(/*GET_PARAMETER_ID*/ 31, data, &reply, 0); in thread_getParameter() 73 ThreadParams *params = new ThreadParams(); in main() local 74 params->service = binder; in main() 75 pthread_create(&t1, nullptr, thread_getParameter, params); in main() 76 pthread_create(&t2, nullptr, thread_getParameter, params); in main() 95 delete params; in main()
|
/cts/tests/tests/toast/src/android/widget/toast/cts/ |
D | BaseToastTest.java | 78 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in showToastsViaAddingWindow() local 79 params.height = WindowManager.LayoutParams.WRAP_CONTENT; in showToastsViaAddingWindow() 80 params.width = WindowManager.LayoutParams.WRAP_CONTENT; in showToastsViaAddingWindow() 81 params.format = PixelFormat.TRANSLUCENT; in showToastsViaAddingWindow() 82 params.type = WindowManager.LayoutParams.TYPE_TOAST; in showToastsViaAddingWindow() 83 params.flags = WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; in showToastsViaAddingWindow() 85 params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; in showToastsViaAddingWindow() 93 windowManager.addView(textView, params); in showToastsViaAddingWindow()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 74 public boolean onStartJob(JobParameters params) { in onStartJob() argument 75 Log.i(TAG, "Test job executing: " + params.getJobId()); in onStartJob() 80 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 83 mRunningParams = params; in onStartJob() 87 mRunningParams = params; in onStartJob() 96 public boolean onStopJob(JobParameters params) { in onStopJob() argument 167 private void notifyExecution(JobParameters params) { in notifyExecution() argument 168 Log.d(TAG, "Job executed:" + params.getJobId()); in notifyExecution() 169 mExecutedJobParameters = params; in notifyExecution()
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | TriggerContentJobService.java | 74 public boolean onStartJob(JobParameters params) { in onStartJob() argument 75 Log.i(TAG, "Test job executing: " + params.getJobId()); in onStartJob() 80 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 83 mRunningParams = params; in onStartJob() 87 mRunningParams = params; in onStartJob() 96 public boolean onStopJob(JobParameters params) { in onStopJob() argument 167 private void notifyExecution(JobParameters params) { in notifyExecution() argument 168 Log.d(TAG, "Job executed:" + params.getJobId()); in notifyExecution() 169 mExecutedJobParameters = params; in notifyExecution()
|