/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/tests/tests/view/src/android/view/cts/ |
D | WindowManager_LayoutParamsTest.java | 92 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/media/src/android/media/cts/ |
D | Vp8EncoderTest.java | 89 EncoderOutputStreamParameters params = getDefaultEncodingParameters( in testBasic() local 99 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in testBasic() 112 decode(params.outputIvfFilename, null, FPS, params.forceGoogleEncoder); in testBasic() 132 EncoderOutputStreamParameters params = getDefaultEncodingParameters( in testAsyncEncoding() local 142 ArrayList<MediaCodec.BufferInfo> bufInfos = encodeAsync(params); in testAsyncEncoding() 148 decode(params.outputIvfFilename, OUTPUT_YUV, FPS, params.forceGoogleEncoder); in testAsyncEncoding() 150 params.inputYuvFilename, R.raw.football_qvga, OUTPUT_YUV, in testAsyncEncoding() 151 params.frameWidth, params.frameHeight); in testAsyncEncoding() 156 params = getDefaultEncodingParameters( in testAsyncEncoding() 166 bufInfos = encode(params); in testAsyncEncoding() [all …]
|
D | Vp8CodecTestBase.java | 252 EncoderOutputStreamParameters params = new EncoderOutputStreamParameters(); in getDefaultEncodingParameterList() local 254 params.inputYuvFilename = SDCARD_DIR + File.separator + inputYuvName; in getDefaultEncodingParameterList() 256 params.inputYuvFilename = null; in getDefaultEncodingParameterList() 258 params.scaledYuvFilename = SDCARD_DIR + File.separator + in getDefaultEncodingParameterList() 260 params.inputResourceId = R.raw.football_qvga; in getDefaultEncodingParameterList() 261 params.outputIvfFilename = SDCARD_DIR + File.separator + in getDefaultEncodingParameterList() 263 params.forceGoogleEncoder = false; in getDefaultEncodingParameterList() 264 params.frameCount = encodeSeconds * frameRate; in getDefaultEncodingParameterList() 265 params.frameRate = frameRate; in getDefaultEncodingParameterList() 266 params.frameWidth = Math.min(frameWidth * resolutionScales[i], 1280); in getDefaultEncodingParameterList() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsoluteLayoutTest.java | 101 LayoutParams params = (LayoutParams) layout.generateLayoutParams(getAttributeSet()); in testGenerateLayoutParams1() local 103 assertNotNull(params); in testGenerateLayoutParams1() 104 assertEquals(LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams1() 105 assertEquals(LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParams1() 106 assertEquals(0, params.x); in testGenerateLayoutParams1() 107 assertEquals(0, params.y); in testGenerateLayoutParams1() 111 LayoutParams params = in testGenerateLayoutParams2() local 114 assertEquals(DEFAULT_WIDTH, params.width); in testGenerateLayoutParams2() 115 assertEquals(DEFAULT_HEIGHT, params.height); in testGenerateLayoutParams2() 116 assertEquals(0, params.x); in testGenerateLayoutParams2() [all …]
|
D | AbsoluteLayout_LayoutParamsTest.java | 52 LayoutParams params = new AbsoluteLayout.LayoutParams(layoutParams); in testConstructor() local 53 assertEquals(1, params.width); in testConstructor() 54 assertEquals(2, params.height); in testConstructor() 55 assertEquals(0, params.x); in testConstructor() 56 assertEquals(0, params.y); in testConstructor()
|
D | FrameLayoutTest.java | 210 ViewGroup.LayoutParams params = myFrameLayout.generateLayoutParams(p); in testGenerateLayoutParams1() local 211 assertNotNull(params); in testGenerateLayoutParams1() 212 assertTrue(params instanceof FrameLayout.LayoutParams); in testGenerateLayoutParams1() 213 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams1() 214 assertEquals(ViewGroup.LayoutParams.WRAP_CONTENT, params.height); in testGenerateLayoutParams1() 220 FrameLayout.LayoutParams params = mFrameLayout.generateLayoutParams(attrs); in testGenerateLayoutParams2() local 221 assertNotNull(params); in testGenerateLayoutParams2() 222 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.width); in testGenerateLayoutParams2() 223 assertEquals(ViewGroup.LayoutParams.MATCH_PARENT, params.height); in testGenerateLayoutParams2() 224 assertEquals(Gravity.BOTTOM, params.gravity); in testGenerateLayoutParams2() [all …]
|
D | ExpandableListSimple.java | 29 protected void init(ExpandableParams params) { in init() argument 30 params.setNumChildren(NUM_CHILDREN).setItemScreenSizeFactor(0.14); in init()
|
D | Gallery_LayoutParamsTest.java | 40 LayoutParams params = new LayoutParams(320, 480); in testConstructor() local 41 new LayoutParams(params); in testConstructor()
|
D | ExpandableListWithHeaders.java | 29 protected void init(ExpandableParams params) { in init() argument 30 params.setStackFromBottom(false) in init()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 46 public boolean onStartJob(JobParameters params) { in onStartJob() argument 47 Log.i(TAG, "Test job executing: " + params.getJobId()); in onStartJob() 49 TestEnvironment.getTestEnvironment().notifyExecution(params); in onStartJob() 54 public boolean onStopJob(JobParameters params) { in onStopJob() argument 100 private void notifyExecution(JobParameters params) { in notifyExecution() argument 101 Log.d(TAG, "Job executed:" + params.getJobId()); in notifyExecution() 102 mExecutedJobParameters = params; in notifyExecution()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListScenario.java | 266 protected abstract void init(Params params); in init() argument 309 final Params params = createParams(); in onCreate() local 310 init(params); in onCreate() 312 readAndValidateParams(params); in onCreate() 334 if (params.mConnectAdapter) { in onCreate() 364 if (params.mFadingEdgeScreenSizeFactor != null) { in onCreate() 365 … mListView.setFadingEdgeLength((int) (params.mFadingEdgeScreenSizeFactor * mScreenHeight)); in onCreate() 455 protected void readAndValidateParams(Params params) { in readAndValidateParams() argument 456 if (params.mMustFillScreen ) { in readAndValidateParams() 458 for (int i = 0; i < params.mNumItems; i++) { in readAndValidateParams() [all …]
|
D | ExpandableListScenario.java | 65 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/jobscheduler/ |
D | MockJobService.java | 46 public boolean onStartJob(JobParameters params) { in onStartJob() argument 47 Log.i(TAG, "Test job executing: " + params.getJobId()); in onStartJob() 49 TestEnvironment.getTestEnvironment().notifyExecution(params.getJobId()); in onStartJob() 54 public boolean onStopJob(JobParameters params) { in onStopJob() argument
|
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/ |
D | LauncherCallbackTestsService.java | 82 Bundle params = null; in handleMessage() local 84 params = (Bundle) (msg.obj); in handleMessage() 90 boolean exists = eventExists(params, mPackagesAdded); in handleMessage() 98 boolean exists = eventExists(params, mPackagesRemoved); in handleMessage() 106 boolean exists = eventExists(params, mPackagesChanged); in handleMessage() 114 boolean exists = eventExists(params, mPackagesAdded); in handleMessage() 171 private boolean eventExists(Bundle params, BlockingQueue<Pair<String, UserHandle>> events) { in eventExists() argument 172 UserHandle user = params.getParcelable(USER_EXTRA); in eventExists() 173 String packageName = params.getString(PACKAGE_EXTRA); in eventExists()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorTestPlatformException.java | 24 public SensorTestPlatformException(String format, Object ... params) { in SensorTestPlatformException() argument 25 this(String.format(format, params)); in SensorTestPlatformException()
|
D | SensorTestStateNotSupportedException.java | 25 public SensorTestStateNotSupportedException(String format, Object ... params) { in SensorTestStateNotSupportedException() argument 26 super(String.format(format, params)); in SensorTestStateNotSupportedException()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AESECBCipherTestBase.java | 51 protected byte[] getIv(AlgorithmParameters params) throws InvalidParameterSpecException { in getIv() argument 52 if (params != null) { in getIv()
|
D | AESCBCCipherTestBase.java | 53 protected byte[] getIv(AlgorithmParameters params) throws InvalidParameterSpecException { in getIv() argument 54 IvParameterSpec spec = params.getParameterSpec(IvParameterSpec.class); in getIv()
|
D | AESCTRCipherTestBase.java | 53 protected byte[] getIv(AlgorithmParameters params) throws InvalidParameterSpecException { in getIv() argument 54 IvParameterSpec spec = params.getParameterSpec(IvParameterSpec.class); in getIv()
|
D | CipherTest.java | 82 private final AlgorithmParameterSpec params; field in CipherTest.KatVector 88 private KatVector(String plaintextHex, AlgorithmParameterSpec params, in KatVector() argument 90 this(HexEncoding.decode(plaintextHex), params, HexEncoding.decode(ciphertextHex)); in KatVector() 97 private KatVector(byte[] plaintext, AlgorithmParameterSpec params, byte[] ciphertext) { in KatVector() argument 100 this.params = params; in KatVector() 263 AlgorithmParameters params = cipher.getParameters(); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() local 268 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, params); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 273 if (params != null) { in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 274 cipher.init(Cipher.UNWRAP_MODE, decryptionKey, params); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 330 AlgorithmParameters params = cipher.getParameters(); in testEmptyPlaintextEncryptsAndDecrypts() local [all …]
|
/cts/hostsidetests/theme/app/src/android/theme/app/ |
D | ReferenceViewGroup.java | 56 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/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | PhotoCaptureActivity.java | 246 Camera.Parameters params = mCamera.getParameters(); in onPictureTaken() local 247 mReportedFovDegrees = params.getHorizontalViewAngle(); in onPictureTaken() 417 Camera.Parameters params = setCameraParams(mCamera); in initializeCamera() local 422 getBestPreviewSize(mSurfaceSize.width, mSurfaceSize.height, params); in initializeCamera() 424 params.setPreviewSize(selectedPreviewSize.width, selectedPreviewSize.height); in initializeCamera() 425 mCamera.setParameters(params); in initializeCamera() 483 Camera.Parameters params = camera.getParameters(); in setCameraParams() local 484 params.setJpegThumbnailSize(0, 0); in setCameraParams() 485 params.setJpegQuality(100); in setCameraParams() 486 params.setRotation(mJpegOrientation); in setCameraParams() [all …]
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowQueryTest.java | 730 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in addTwoAppPanelWindows() 731 params.gravity = Gravity.TOP; in addTwoAppPanelWindows() 732 params.width = WindowManager.LayoutParams.MATCH_PARENT; in addTwoAppPanelWindows() 733 params.height = WindowManager.LayoutParams.WRAP_CONTENT; in addTwoAppPanelWindows() 734 params.flags = WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN in addTwoAppPanelWindows() 738 params.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL; in addTwoAppPanelWindows() 739 params.token = getActivity().getWindow().getDecorView().getWindowToken(); in addTwoAppPanelWindows() 743 getActivity().getWindowManager().addView(button, params); in addTwoAppPanelWindows() 761 WindowManager.LayoutParams params = new WindowManager.LayoutParams(); in addTwoAppPanelWindows() 762 params.gravity = Gravity.BOTTOM; in addTwoAppPanelWindows() [all …]
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechServiceTest.java | 117 HashMap<String, String> params = new HashMap<String,String>(); in createParams() local 118 params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, UTTERANCE_ID); in createParams() 119 return params; in createParams()
|