Home
last modified time | relevance | path

Searched refs:SessionParams (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt26 import android.content.pm.PackageInstaller.SessionParams in <lambda>()
215 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
228 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
241 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
254 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
266 val params = SessionParams(SessionParams.MODE_FULL_INSTALL) in <lambda>()
324 val params = SessionParams(SessionParams.MODE_FULL_INSTALL) in <lambda>()
325 params.setRequireUserAction(SessionParams.USER_ACTION_REQUIRED) in <lambda>()
366 val params = SessionParams(SessionParams.MODE_FULL_INSTALL) in <lambda>()
367 params.setRequireUserAction(SessionParams.USER_ACTION_REQUIRED) in <lambda>()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DShadowsRenderTests.java19 import com.android.ide.common.rendering.api.SessionParams;
39 SessionParams params = getSessionParamsBuilder() in testRectangleShadow()
55 SessionParams params = getSessionParamsBuilder() in testRoundedEdgeRectangle()
70 SessionParams params = getSessionParamsBuilder() in testLargeView()
86 SessionParams params = getSessionParamsBuilder() in testShadowSizes()
101 SessionParams params = getSessionParamsBuilder() in testWidgetWithScroll()
DRenderTests.java24 import com.android.ide.common.rendering.api.SessionParams;
25 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
124 SessionParams params = getSessionParamsBuilder() in testActivityOnOldTheme()
140 SessionParams params = getSessionParamsBuilder() in testTranslucentBars()
171 SessionParams params = getSessionParamsBuilder() in testAllWidgets()
191 SessionParams params = getSessionParamsBuilder() in testAllWidgetsTablet()
228 SessionParams params = getSessionParamsBuilder() in testActivityActionBar()
284 SessionParams params = getSessionParamsBuilder() in testOnApplyInsetsCall()
312 SessionParams params = getSessionParamsBuilder() in testExpand()
353 SessionParams params = getSessionParamsBuilder() in testShrink()
[all …]
DPerformanceTests.java19 import com.android.ide.common.rendering.api.SessionParams;
46 SessionParams params = createSessionParams(layoutFileName, ConfigGenerator.NEXUS_5); in render()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/
DSessionParamsBuilder.java26 import com.android.ide.common.rendering.api.SessionParams;
27 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
61 private Map<SessionParams.Key, Object> mFlags = new HashMap<>();
151 public SessionParamsBuilder setFlag(@NonNull SessionParams.Key flag, Object value) { in setFlag()
193 public SessionParams build() { in build()
210 SessionParams params = new SessionParams(mLayoutParser, mRenderingMode, mProjectKey /* for in build()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageInstallerSessionTest.kt20 import android.content.pm.PackageInstaller.SessionParams in <lambda>()
21 import android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_DEFAULT in <lambda>()
22 import android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_DENIED in <lambda>()
23 import android.content.pm.PackageInstaller.SessionParams.PERMISSION_STATE_GRANTED in <lambda>()
154 block: (SessionParams) -> Unit = {}, in <lambda>()
156 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
272 private fun assertSessionParamsEquivalent(expected: SessionParams, actual: SessionParams) { in <lambda>()
309 SessionParams.CREATOR.createFromParcel(parcel).also { in <lambda>()
/frameworks/base/core/java/com/android/internal/content/
DInstallLocationUtils.java25 import android.content.pm.PackageInstaller.SessionParams;
149 final SessionParams params = new SessionParams(SessionParams.MODE_INVALID); in resolveInstallVolume()
165 public static String resolveInstallVolume(Context context, SessionParams params) in resolveInstallVolume()
173 SessionParams params) throws IOException { in checkFitOnVolume()
190 public static String resolveInstallVolume(Context context, SessionParams params, in resolveInstallVolume()
305 public static boolean fitsOnInternal(Context context, SessionParams params) throws IOException { in fitsOnInternal()
325 public static boolean fitsOnExternal(Context context, SessionParams params) { in fitsOnExternal()
337 public static int resolveInstallLocation(Context context, SessionParams params) in resolveInstallLocation()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DAccessibilityTest.java21 import com.android.ide.common.rendering.api.SessionParams;
22 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
58 SessionParams params = getSessionParamsBuilder() in accessibilityNodeInfoCreation()
89 SessionParams params = getSessionParamsBuilder() in customHierarchyParserTest()
141 SessionParams params = getSessionParamsBuilder() in testDialogAccessibility()
DBridgeContextTest.java19 import com.android.ide.common.rendering.api.SessionParams;
69 SessionParams params = getSessionParamsBuilder() in basic()
116 SessionParams params = getSessionParamsBuilder() in checkNoErrorWhenUsingDefaults()
149 SessionParams params = getSessionParamsBuilder() in noExceptionForCustomService()
170 SessionParams params = getSessionParamsBuilder() in dynamicTheming()
204SessionParams params = getSessionParamsBuilder().setParser(parser).setCallback(layoutLibCallback).… in noCrashInPowerManager()
228 SessionParams params = getSessionParamsBuilder() in testTypedValue()
283SessionParams params = getSessionParamsBuilder().setParser(parser).setCallback(layoutLibCallback).… in testWindowMetrics()
DBitmapTest.java19 import com.android.ide.common.rendering.api.SessionParams;
89 SessionParams params = getSessionParamsBuilder() in testImageDecoder()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DBridgeActionBar.java22 import com.android.ide.common.rendering.api.SessionParams;
41 @NonNull protected final SessionParams mParams;
51 public BridgeActionBar(@NonNull BridgeContext context, @NonNull SessionParams params) { in BridgeActionBar()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DRestoreUtils.java31 import android.content.pm.PackageInstaller.SessionParams;
90 SessionParams params = new SessionParams(SessionParams.MODE_FULL_INSTALL); in installApk()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStaging.java139 PackageInstaller.SessionParams params = createSessionParams( in onResume()
183 private static PackageInstaller.SessionParams createSessionParams( in createSessionParams()
186 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in createSessionParams()
187 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in createSessionParams()
203 PackageInstaller.SessionParams.PERMISSION_STATE_DENIED); in createSessionParams()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DTestPackageInstaller.java62 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in installPackage()
63 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in installPackage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageSessionVerifierTest.java143 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in createStagedSession()
144 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in createStagedSession()
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java196 PackageInstaller.SessionParams params = in installPackage()
197 new PackageInstaller.SessionParams( in installPackage()
198 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in installPackage()
199 params.setRequireUserAction(PackageInstaller.SessionParams.USER_ACTION_NOT_REQUIRED); in installPackage()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java27 import com.android.ide.common.rendering.api.SessionParams;
28 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
29 import com.android.ide.common.rendering.api.SessionParams.RenderingMode.SizeAction;
111 public class RenderSessionImpl extends RenderAction<SessionParams> {
167 public RenderSessionImpl(SessionParams params) { in RenderSessionImpl()
168 super(new SessionParams(params)); in RenderSessionImpl()
189 SessionParams params = getParams(); in init()
209 private void measureLayout(@NonNull SessionParams params) { in measureLayout()
316 SessionParams params = getParams(); in inflate()
489 SessionParams params = getParams(); in renderAndBuildResult()
[all …]
DLayout.java23 import com.android.ide.common.rendering.api.SessionParams;
272 private SessionParams getParams() { in getParams()
303 @NonNull SessionParams params, boolean appCompatActionBar) { in createActionBar()
422 private final SessionParams mParams;
439 public Builder(@NonNull SessionParams params, @NonNull BridgeContext context) { in Builder()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/
DBridgeClient.java22 import com.android.ide.common.rendering.api.SessionParams;
23 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
538 SessionParams params, in render()
545 SessionParams params, in render()
601 protected RenderResult renderAndVerify(SessionParams params, String goldenFileName, in renderAndVerify()
615 protected RenderResult renderAndVerify(SessionParams params, String goldenFileName) in renderAndVerify()
659 SessionParams params = createSessionParams(layoutFileName, deviceConfig); in renderAndVerify()
666 protected SessionParams createSessionParams(String layoutFileName, ConfigGenerator deviceConfig) in createSessionParams()
/frameworks/base/core/java/android/content/pm/
DPackageInstaller.aidl20 parcelable PackageInstaller.SessionParams;
DIPackageInstaller.aidl35 int createSession(in PackageInstaller.SessionParams params, String installerPackageName, in createSession()
90 in PackageInstaller.SessionParams params, in installPackageArchived()
DPackageInstaller.java806 public int createSession(@NonNull SessionParams params) throws IOException { in createSession()
1142 @NonNull SessionParams sessionParams, in installPackageArchived()
2584 public long calculateInstalledSize(@NonNull SessionParams params) throws IOException { in calculateInstalledSize()
2597 public long calculateInstalledSize(@NonNull SessionParams params, in calculateInstalledSize()
2627 public static class SessionParams implements Parcelable { class in PackageInstaller
2812 public SessionParams(int mode) { in SessionParams() method in PackageInstaller.SessionParams
2818 public SessionParams(Parcel source) { in SessionParams() method in PackageInstaller.SessionParams
2859 public SessionParams copy() { in copy()
2860 SessionParams ret = new SessionParams(mode); in copy()
3054 public SessionParams setPermissionState(@NonNull String permissionName, in setPermissionState()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DPackageInstallerImpl.java207 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in innerCreateSession()
208 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in innerCreateSession()
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/
DLayoutValidatorTests.java19 import com.android.ide.common.rendering.api.SessionParams;
70 SessionParams params = getSessionParamsBuilder() in testRenderAndVerify()
227 private SessionParams generateParams() throws Exception { in generateParams()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java548 PackageInstaller.SessionParams parentParams = new PackageInstaller.SessionParams( in commit()
549 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit()
570 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in commit()
571 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit()

123