Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12a20301 authored by shuanghao's avatar shuanghao
Browse files

Split EntryInfo implementations to creation and get.

BUG: 313497665
Test: It builds.
Change-Id: Ifaba1893347cbfca1b4321dc20b02b7cf784f695
parent 90f8ab6d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -39,12 +39,12 @@ import androidx.credentials.provider.PasswordCredentialEntry
import androidx.credentials.provider.PublicKeyCredentialEntry
import androidx.credentials.provider.RemoteEntry
import com.android.credentialmanager.IS_AUTO_SELECTED_KEY
import com.android.credentialmanager.model.ActionEntryInfo
import com.android.credentialmanager.model.AuthenticationEntryInfo
import com.android.credentialmanager.model.CredentialEntryInfo
import com.android.credentialmanager.model.get.ActionEntryInfo
import com.android.credentialmanager.model.get.AuthenticationEntryInfo
import com.android.credentialmanager.model.get.CredentialEntryInfo
import com.android.credentialmanager.model.CredentialType
import com.android.credentialmanager.model.ProviderInfo
import com.android.credentialmanager.model.RemoteEntryInfo
import com.android.credentialmanager.model.get.ProviderInfo
import com.android.credentialmanager.model.get.RemoteEntryInfo
import com.android.credentialmanager.TAG

fun CredentialEntryInfo.getIntentSenderRequest(
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ package com.android.credentialmanager.model
import android.app.PendingIntent
import android.content.Intent

sealed class EntryInfo (
open class EntryInfo (
    val providerId: String,
    val entryKey: String,
    val entrySubkey: String,
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package com.android.credentialmanager.model

import android.os.IBinder
import android.os.ResultReceiver
import com.android.credentialmanager.model.get.ProviderInfo

/**
 * Represents the request made by the CredentialManager API.
+2 −1
Original line number Diff line number Diff line
@@ -14,11 +14,12 @@
 * limitations under the License.
 */

package com.android.credentialmanager.model
package com.android.credentialmanager.model.creation

import android.app.PendingIntent
import android.content.Intent
import android.graphics.drawable.Drawable
import com.android.credentialmanager.model.EntryInfo
import java.time.Instant

class CreateOptionInfo(
+2 −1
Original line number Diff line number Diff line
@@ -14,10 +14,11 @@
 * limitations under the License.
 */

package com.android.credentialmanager.model
package com.android.credentialmanager.model.creation

import android.app.PendingIntent
import android.content.Intent
import com.android.credentialmanager.model.EntryInfo

class RemoteInfo(
    providerId: String,
Loading