Home
last modified time | relevance | path

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

/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/android/
DPlatformRenderTestCase.java72 SessionParams params = getSessionParamsBuilder() in setUpContext() local
78 Configuration configuration = RenderAction.getConfiguration(params); in setUpContext()
79 context = new BridgeContext(params.getProjectKey(), metrics, params.getResources(), in setUpContext()
80 params.getAssets(), params.getLayoutlibCallback(), configuration, in setUpContext()
81 params.getTargetSdkVersion(), params.isRtlSupported()); in setUpContext()
83 context.initResources(params.getAssets()); in setUpContext()
84 bridgeInflater = new BridgeInflater(context, params.getLayoutlibCallback()); in setUpContext()
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DSetFlagsRuleTestCommon.java72 protected abstract Helper makeParameterizedHelper(FlagsParameterization params); in makeParameterizedHelper() argument
410 FlagsParameterization params = in paramEnabledFlagsGetEnabled() local
412 makeParameterizedHelper(params) in paramEnabledFlagsGetEnabled()
423 FlagsParameterization params = in paramDisabledFlagsGetDisabled() local
425 makeParameterizedHelper(params) in paramDisabledFlagsGetDisabled()
436 FlagsParameterization params = in paramSetFlagsGetSet() local
439 makeParameterizedHelper(params) in paramSetFlagsGetSet()
451 FlagsParameterization params = in settingParameterizedFlagFails() local
453 Helper helper = makeParameterizedHelper(params); in settingParameterizedFlagFails()
465 FlagsParameterization params = in settingNonParameterizedFlagDirectlyWorks() local
[all …]
DSetFlagsRuleClassRuleTest.java43 protected Helper makeParameterizedHelper(FlagsParameterization params) { in makeParameterizedHelper() argument
44 return makeClassRuleHelper(params, /* watchFlags= */ true); in makeParameterizedHelper()
47 private Helper makeClassRuleHelper(FlagsParameterization params, boolean watchFlags) { in makeClassRuleHelper() argument
50 SetFlagsRule rule = classRule.createSetFlagsRule(params); in makeClassRuleHelper()
112 FlagsParameterization params = in parameterizedFlagsMustBeWatched() local
114 makeClassRuleHelper(params, /* watchFlags= */ false) in parameterizedFlagsMustBeWatched()
123 FlagsParameterization params = in parameterizedFlagsCanBeMarkedAsWatchedWithUsesFlags() local
125 makeClassRuleHelper(params, /* watchFlags= */ false) in parameterizedFlagsCanBeMarkedAsWatchedWithUsesFlags()
261 FlagsParameterization params = in parameterizedFlagsCannotBeReadBeforeTest() local
263 makeParameterizedHelper(params) in parameterizedFlagsCannotBeReadBeforeTest()
[all …]
DSetFlagsRuleAnnotationsTest.java35 protected Helper makeParameterizedHelper(FlagsParameterization params) { in makeParameterizedHelper() argument
36 return new Helper(new SetFlagsRule(DEVICE_DEFAULT, params)); in makeParameterizedHelper()
DFlagsParameterizationTest.java51 FlagsParameterization params = new FlagsParameterization(Map.of()); in toStringIsNotEmpty() local
52 assertNotEquals("", params.toString()); in toStringIsNotEmpty()
59 FlagsParameterization params = new FlagsParameterization(original); in overridesCannotBeChanged() local
60 params.mOverrides.put("foo", false); in overridesCannotBeChanged()
67 FlagsParameterization params = new FlagsParameterization(original); in overridesIsACopy() local
69 assertTrue(params.mOverrides.get("foo")); in overridesIsACopy()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DSessionParamsBuilder.java203 SessionParams params = new SessionParams(mLayoutParser, mRenderingMode, mProjectKey /* for in build() local
206 params.setFlag(RenderParamsFlags.FLAG_ENABLE_LAYOUT_VALIDATOR, enableLayoutValidator); in build()
207 params.setFlag( in build()
211 params.setImageFactory(mImageFactory); in build()
214 mFlags.forEach(params::setFlag); in build()
215 params.setAssetRepository(mAssetRepository); in build()
218 params.setForceNoDecor(); in build()
222 params.setTransparentBackground(); in build()
225 return params; in build()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTestBase.java422 SessionParams params, in render() argument
424 return render(bridge, params, frameTimeNanos, null); in render()
429 SessionParams params, in render() argument
436 RenderSession session = bridge.createSession(params); in render()
485 protected static RenderResult renderAndVerify(SessionParams params, String goldenFileName, in renderAndVerify() argument
487 RenderResult result = RenderTestBase.render(sBridge, params, frameTimeNanos); in renderAndVerify()
499 protected static RenderResult renderAndVerify(SessionParams params, String goldenFileName) in renderAndVerify() argument
501 return RenderTestBase.renderAndVerify(params, goldenFileName, TimeUnit.SECONDS.toNanos(2)); in renderAndVerify()
638 SessionParams params = createSessionParams(layoutFileName, deviceConfig); in renderAndVerify() local
640 params.setForceNoDecor(); in renderAndVerify()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DInjectedTestCase.kt28 override fun invokeExplosively(target: Any?, vararg params: Any?): Any { in invokeExplosively()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DRootcanalUtils.java350 public void sendHciCmd(int ogf, int ocf, byte[] params) throws IOException { in sendHciCmd() argument
351 assertTrue("params length must be less than 256 bytes", params.length < 256); in sendHciCmd()
352 ByteBuffer cmd = ByteBuffer.allocate(4 + params.length).order(ByteOrder.LITTLE_ENDIAN); in sendHciCmd()
354 cmd.put((byte) 0x01).putShort((short) opcode).put((byte) params.length).put(params); in sendHciCmd()
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/
DAnnotationsRetriever.java271 public void assumeAllSetFlagsMatchParameterization(FlagsParameterization params) { in assumeAllSetFlagsMatchParameterization() argument
272 if (params == null) return; in assumeAllSetFlagsMatchParameterization()
275 final Boolean paramValue = params.mOverrides.get(flag); in assumeAllSetFlagsMatchParameterization()
/platform_testing/libraries/audio-test-harness/server/
DAndroid.bp146 "junit-params",
169 "junit-params",
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestRunner.java118 public void onCreate(Bundle params) { in onCreate() argument
120 InstrumentationRegistry.registerInstance(this, params); in onCreate()
122 mParams = params; in onCreate()
237 super.onCreate(params); in onCreate()
/platform_testing/libraries/audio-test-harness/client-lib/
DAndroid.bp77 "junit-params",