1 /* 2 * Copyright (C) 2017 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.layout.remote.api; 18 19 import com.android.ide.common.rendering.api.IImageFactory; 20 import com.android.ide.common.rendering.api.SessionParams.Key; 21 import com.android.tools.layoutlib.annotations.Nullable; 22 23 import java.rmi.Remote; 24 import java.rmi.RemoteException; 25 26 public interface RemoteRenderParams extends Remote { 27 @Nullable 28 String getProjectKey() throws RemoteException; 29 30 RemoteHardwareConfig getRemoteHardwareConfig() throws RemoteException; 31 32 int getMinSdkVersion() throws RemoteException; 33 34 int getTargetSdkVersion() throws RemoteException; 35 36 RemoteRenderResources getRemoteResources() throws RemoteException; 37 38 RemoteAssetRepository getAssets() throws RemoteException; 39 40 RemoteLayoutlibCallback getRemoteLayoutlibCallback() throws RemoteException; 41 42 RemoteLayoutLog getLog() throws RemoteException; 43 44 boolean isBgColorOverridden() throws RemoteException; 45 46 int getOverrideBgColor() throws RemoteException; 47 48 long getTimeout() throws RemoteException; 49 50 IImageFactory getImageFactory() throws RemoteException; 51 52 String getAppIcon() throws RemoteException; 53 54 String getAppLabel() throws RemoteException; 55 56 String getLocale() throws RemoteException; 57 58 String getActivityName() throws RemoteException; 59 60 boolean isForceNoDecor() throws RemoteException; 61 62 boolean isRtlSupported() throws RemoteException; 63 64 <T> T getFlag(Key<T> key) throws RemoteException; 65 } 66