101ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy/* 201ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * Copyright (C) 2016 The Android Open Source Project 301ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * 401ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * Licensed under the Apache License, Version 2.0 (the "License"); 501ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * you may not use this file except in compliance with the License. 601ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * You may obtain a copy of the License at 701ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * 801ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * http://www.apache.org/licenses/LICENSE-2.0 901ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * 1001ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * Unless required by applicable law or agreed to in writing, software 1101ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * distributed under the License is distributed on an "AS IS" BASIS, 1201ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1301ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * See the License for the specific language governing permissions and 1401ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * limitations under the License. 1501ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy */ 1601ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy 1701ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedypackage android.content.pm; 1801ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy 1901ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedyimport android.content.Intent; 200606861de50995e997d7c117e3bab1eb5db06da8Chad Brubakerimport android.os.Bundle; 2101ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy 2201ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy/** 231fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedy * Information needed to make an instant application resolution request. 2401ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy * @hide 2501ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy */ 261fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedypublic final class InstantAppRequest { 271fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedy /** Response from the first phase of instant application resolution */ 28e991022423c2e5b4386553af7ef3b54da7c54be1Todd Kennedy public final AuxiliaryResolveInfo responseObj; 291fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedy /** The original intent that triggered instant application resolution */ 3001ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy public final Intent origIntent; 3101ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy /** Resolved type of the intent */ 3201ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy public final String resolvedType; 331fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedy /** The name of the package requesting the instant application */ 3401ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy public final String callingPackage; 351fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedy /** ID of the user requesting the instant application */ 3601ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy public final int userId; 370606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker /** 380606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker * Optional extra bundle provided by the source application to the installer for additional 390606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker * verification. */ 400606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker public final Bundle verificationBundle; 4101ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy 421fb3404b2ba69a823e961bec2d9ed61622107052Todd Kennedy public InstantAppRequest(AuxiliaryResolveInfo responseObj, Intent origIntent, 430606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker String resolvedType, String callingPackage, int userId, Bundle verificationBundle) { 4401ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy this.responseObj = responseObj; 4501ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy this.origIntent = origIntent; 4601ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy this.resolvedType = resolvedType; 4701ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy this.callingPackage = callingPackage; 4801ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy this.userId = userId; 490606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker this.verificationBundle = verificationBundle; 5001ad0c7e403794b272494f187d91f57bdfa07c9dTodd Kennedy } 510606861de50995e997d7c117e3bab1eb5db06da8Chad Brubaker} 52