| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
package android.service.autofill.augmented; |
| 17 |
|
| 18 |
import android.annotation.NonNull; |
| 19 |
import android.annotation.Nullable; |
| 20 |
import android.annotation.SystemApi; |
| 21 |
import android.annotation.TestApi; |
| 22 |
import android.app.assist.AssistStructure.ViewNode; |
| 23 |
import android.content.ComponentName; |
| 24 |
import android.service.autofill.augmented.AugmentedAutofillService.AutofillProxy; |
| 25 |
import android.view.autofill.AutofillId; |
| 26 |
import android.view.autofill.AutofillValue; |
| 27 |
import android.view.inputmethod.InlineSuggestionsRequest; |
| 28 |
|
| 29 |
import com.android.internal.util.DataClass; |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
@SystemApi |
| 36 |
|
| 37 |
@TestApi |
| 38 |
@DataClass( |
| 39 |
genToString = true, |
| 40 |
genBuilder = false, |
| 41 |
genHiddenConstructor = true) |
| 42 |
@DataClass.Suppress({"getProxy"}) |
| 43 |
public final class FillRequest { |
| 44 |
|
| 45 |
private final @NonNull AutofillProxy mProxy; |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
private final @Nullable InlineSuggestionsRequest mInlineSuggestionsRequest; |
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
public int getTaskId() { |
| 57 |
return mProxy.mTaskId; |
| 58 |
} |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
@NonNull |
| 64 |
public ComponentName getActivityComponent() { |
| 65 |
return mProxy.mComponentName; |
| 66 |
} |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
@NonNull |
| 72 |
public AutofillId getFocusedId() { |
| 73 |
return mProxy.getFocusedId(); |
| 74 |
} |
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
@NonNull |
| 80 |
public AutofillValue getFocusedValue() { |
| 81 |
return mProxy.getFocusedValue(); |
| 82 |
} |
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
@Nullable |
| 88 |
public ViewNode getFocusedViewNode() { |
| 89 |
return mProxy.getFocusedViewNode(); |
| 90 |
} |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
@Nullable |
| 98 |
public PresentationParams getPresentationParams() { |
| 99 |
return mProxy.getSmartSuggestionParams(); |
| 100 |
} |
| 101 |
|
| 102 |
String proxyToString() { |
| 103 |
return "FillRequest[act=" + getActivityComponent().flattenToShortString() |
| 104 |
+ ", id=" + mProxy.getFocusedId() + "]"; |
| 105 |
} |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
|
| 130 |
@DataClass.Generated.Member |
| 131 |
public FillRequest( |
| 132 |
@NonNull AutofillProxy proxy, |
| 133 |
@Nullable InlineSuggestionsRequest inlineSuggestionsRequest) { |
| 134 |
this.mProxy = proxy; |
| 135 |
com.android.internal.util.AnnotationValidations.validate( |
| 136 |
NonNull.class, null, mProxy); |
| 137 |
this.mInlineSuggestionsRequest = inlineSuggestionsRequest; |
| 138 |
|
| 139 |
|
| 140 |
} |
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
@DataClass.Generated.Member |
| 146 |
public @Nullable InlineSuggestionsRequest getInlineSuggestionsRequest() { |
| 147 |
return mInlineSuggestionsRequest; |
| 148 |
} |
| 149 |
|
| 150 |
@Override |
| 151 |
@DataClass.Generated.Member |
| 152 |
public String toString() { |
| 153 |
|
| 154 |
|
| 155 |
|
| 156 |
return "FillRequest { " + |
| 157 |
"proxy = " + proxyToString() + ", " + |
| 158 |
"inlineSuggestionsRequest = " + mInlineSuggestionsRequest + |
| 159 |
" }"; |
| 160 |
} |
| 161 |
|
| 162 |
@DataClass.Generated( |
| 163 |
time = 1608160139217L, |
| 164 |
codegenVersion = "1.0.22", |
| 165 |
sourceFile = "frameworks/base/core/java/android/service/autofill/augmented/FillRequest.java", |
| 166 |
inputSignatures = "private final @android.annotation.NonNull android.service.autofill.augmented.AugmentedAutofillService.AutofillProxy mProxy\nprivate final @android.annotation.Nullable android.view.inputmethod.InlineSuggestionsRequest mInlineSuggestionsRequest\npublic int getTaskId()\npublic @android.annotation.NonNull android.content.ComponentName getActivityComponent()\npublic @android.annotation.NonNull android.view.autofill.AutofillId getFocusedId()\npublic @android.annotation.NonNull android.view.autofill.AutofillValue getFocusedValue()\npublic @android.annotation.Nullable android.app.assist.AssistStructure.ViewNode getFocusedViewNode()\npublic @android.annotation.Nullable android.service.autofill.augmented.PresentationParams getPresentationParams()\n java.lang.String proxyToString()\nclass FillRequest extends java.lang.Object implements []\n@com.android.internal.util.DataClass(genToString=true, genBuilder=false, genHiddenConstructor=true)") |
| 167 |
@Deprecated |
| 168 |
private void __metadata() {} |
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
} |