Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt25 import android.content.pm.PackageInstaller.SessionParams in <lambda>()
123 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
136 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
149 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
162 val params = SessionParams(SessionParams.MODE_FULL_INSTALL).apply { in <lambda>()
174 val params = SessionParams(SessionParams.MODE_FULL_INSTALL) in <lambda>()
216 installer.createSession(SessionParams(SessionParams.MODE_FULL_INSTALL) in <lambda>()
224 private fun invalidPackageName(maxLength: Int = SessionParams.MAX_PACKAGE_NAME_LENGTH): String { in <lambda>()
249 private fun createAndAbandonSession(params: SessionParams, block: (Int) -> Unit = {}) { in <lambda>()
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteSessionParamsAdapter.java22 import com.android.ide.common.rendering.api.SessionParams;
23 import com.android.ide.common.rendering.api.SessionParams.Key;
24 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
39 private final SessionParams mDelegate;
41 private RemoteSessionParamsAdapter(@NotNull SessionParams params) { in RemoteSessionParamsAdapter()
46 public static RemoteSessionParams create(@NotNull SessionParams params) throws RemoteException { in create()
DRemoteRenderParamsAdapter.java22 import com.android.ide.common.rendering.api.SessionParams;
23 import com.android.ide.common.rendering.api.SessionParams.Key;
44 public static RemoteSessionParams create(@NotNull SessionParams params) throws RemoteException { in create()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java23 import com.android.ide.common.rendering.api.SessionParams;
24 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
113 SessionParams params = getSessionParamsBuilder() in testActivityOnOldTheme()
129 SessionParams params = getSessionParamsBuilder() in testTranslucentBars()
160 SessionParams params = getSessionParamsBuilder() in testAllWidgets()
188 SessionParams params = getSessionParamsBuilder() in testAllWidgetsTablet()
224 SessionParams params = getSessionParamsBuilder() in testActivityActionBar()
280 SessionParams params = getSessionParamsBuilder() in testOnApplyInsetsCall()
308 SessionParams params = getSessionParamsBuilder() in testExpand()
349 SessionParams params = getSessionParamsBuilder() in testShrink()
[all …]
DHighQualityShadowsRenderTests.java19 import com.android.ide.common.rendering.api.SessionParams;
39 SessionParams params = getSessionParamsBuilder() in testHighQualityRectangleShadow()
58 SessionParams params = getSessionParamsBuilder() in testRoundedEdgeRectangle()
76 SessionParams params = getSessionParamsBuilder() in testLargeView()
94 SessionParams params = getSessionParamsBuilder() in testShadowSizes()
111 SessionParams params = getSessionParamsBuilder() in testWidgetWithScroll()
DPerformanceTests.java19 import com.android.ide.common.rendering.api.SessionParams;
45 SessionParams params = createSessionParams(layoutFileName, ConfigGenerator.NEXUS_5); in render()
DRenderTestBase.java22 import com.android.ide.common.rendering.api.SessionParams;
23 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
354 SessionParams params, in render()
361 SessionParams params, in render()
417 protected static RenderResult renderAndVerify(SessionParams params, String goldenFileName, in renderAndVerify()
431 protected static RenderResult renderAndVerify(SessionParams params, String goldenFileName) in renderAndVerify()
563 SessionParams params = createSessionParams(layoutFileName, deviceConfig); in renderAndVerify()
570 protected SessionParams createSessionParams(String layoutFileName, ConfigGenerator deviceConfig) in createSessionParams()
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java24 import android.content.pm.PackageInstaller.SessionParams;
143 final SessionParams params = new SessionParams(SessionParams.MODE_INVALID); in resolveInstallVolume()
159 public static String resolveInstallVolume(Context context, SessionParams params) in resolveInstallVolume()
167 SessionParams params) throws IOException { in checkFitOnVolume()
184 public static String resolveInstallVolume(Context context, SessionParams params, in resolveInstallVolume()
291 public static boolean fitsOnInternal(Context context, SessionParams params) throws IOException { in fitsOnInternal()
311 public static boolean fitsOnExternal(Context context, SessionParams params) { in fitsOnExternal()
322 final SessionParams params = new SessionParams(SessionParams.MODE_INVALID); in resolveInstallLocation()
338 public static int resolveInstallLocation(Context context, SessionParams params) in resolveInstallLocation()
/frameworks/layoutlib/bridge/tests/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;
60 private Map<SessionParams.Key, Object> mFlags = new HashMap<>();
145 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/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteSessionParams.java22 import com.android.ide.common.rendering.api.SessionParams;
23 import com.android.ide.common.rendering.api.SessionParams.Key;
24 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
/frameworks/layoutlib/remote/tests/src/
DRemoteBridgeTest.java19 import com.android.ide.common.rendering.api.SessionParams;
50 protected static RenderResult renderAndVerify(Bridge bridge, SessionParams params, in renderAndVerify()
95 SessionParams params = createSessionParams("activity.xml", ConfigGenerator.NEXUS_5); in testActivity()
119 SessionParams params = in testCustomClassLoading()
/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;
89 SessionParams params = new SessionParams(SessionParams.MODE_FULL_INSTALL); in installApk()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java19 import com.android.ide.common.rendering.api.SessionParams;
50 SessionParams params = getSessionParamsBuilder() in basic()
97 SessionParams params = getSessionParamsBuilder() in checkNoErrorWhenUsingDefaults()
/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/core/java/android/content/pm/
DPackageInstaller.java443 public int createSession(@NonNull SessionParams params) throws IOException { in createSession()
1495 public static class SessionParams implements Parcelable { class in PackageInstaller
1632 public SessionParams(int mode) { in SessionParams() method in PackageInstaller.SessionParams
1637 public SessionParams(Parcel source) { in SessionParams() method in PackageInstaller.SessionParams
1670 public SessionParams copy() { in copy()
1671 SessionParams ret = new SessionParams(mode); in copy()
2144 @SessionParams.UserActionRequirement int requireUserAction) { in setRequireUserAction()
2231 public static final Parcelable.Creator<SessionParams>
2232 CREATOR = new Parcelable.Creator<SessionParams>() {
2234 public SessionParams createFromParcel(Parcel p) {
[all …]
DPackageInstaller.aidl19 parcelable PackageInstaller.SessionParams;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java148 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in createSession()
149 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in createSession()
260 private void assertSessionParamsEquivalent(PackageInstaller.SessionParams expected, in assertSessionParamsEquivalent()
261 PackageInstaller.SessionParams actual) { in assertSessionParamsEquivalent()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/
DRemoteBridgeImpl.java22 import com.android.ide.common.rendering.api.SessionParams;
101 SessionParams params = new SessionParams( in createSession()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java28 import com.android.ide.common.rendering.api.SessionParams;
29 import com.android.ide.common.rendering.api.SessionParams.RenderingMode;
30 import com.android.ide.common.rendering.api.SessionParams.RenderingMode.SizeAction;
109 public class RenderSessionImpl extends RenderAction<SessionParams> {
152 public RenderSessionImpl(SessionParams params) { in RenderSessionImpl()
153 super(new SessionParams(params)); in RenderSessionImpl()
174 SessionParams params = getParams(); in init()
192 private void measureLayout(@NonNull SessionParams params) { in measureLayout()
293 SessionParams params = getParams(); in inflate()
458 SessionParams params = getParams(); in renderAndBuildResult()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DInstallStart.java86 if (!isTrustedSource && originatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) { in onCreate()
195 PackageInstaller.SessionParams.UID_UNKNOWN); in getOriginatingUid()
208 return PackageInstaller.SessionParams.UID_UNKNOWN; in getOriginatingUid()
DInstallInstalling.java19 import static android.content.pm.PackageInstaller.SessionParams.UID_UNKNOWN;
131 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in onCreate()
132 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in onCreate()
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/
DLayoutValidatorTests.java19 import com.android.ide.common.rendering.api.SessionParams;
50 SessionParams params = getSessionParamsBuilder() in testRenderAndVerify()
169 private SessionParams generateParams() throws Exception { in generateParams()
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/
DRemoteBridgeClient.java24 import com.android.ide.common.rendering.api.SessionParams;
81 public RenderSession createSession(SessionParams params) { in createSession()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java531 PackageInstaller.SessionParams parentParams = new PackageInstaller.SessionParams( in commit()
532 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit()
553 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in commit()
554 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit()

123