14af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent/* 24af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * Copyright (C) 2017 The Android Open Source Project 34af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * 44af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * Licensed under the Apache License, Version 2.0 (the "License"); 54af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * you may not use this file except in compliance with the License. 64af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * You may obtain a copy of the License at 74af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * 84af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * http://www.apache.org/licenses/LICENSE-2.0 94af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * 104af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * Unless required by applicable law or agreed to in writing, software 114af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * distributed under the License is distributed on an "AS IS" BASIS, 124af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * See the License for the specific language governing permissions and 144af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * limitations under the License. 154af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent */ 164af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent 174af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargentpackage com.android.settingslib.applications.instantapps; 184af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent 194af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargentimport android.content.pm.ApplicationInfo; 204af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent 214af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent/** 224af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * This helps deal with the fact that robolectric does not yet have an implementation of the 234af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * isInstantApp method of ApplicationInfo, so we get a method not found exception when running tests 244af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent * if we try to call it directly. 254af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent */ 264af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargentpublic interface InstantAppDataProvider { 274af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent public boolean isInstantApp(ApplicationInfo info); 284af5b9276e48b606a2ec9f24adee2072eee0a1bfAntony Sargent} 29