Merge "DO NOT MERGE - Disable warning on blocking one-way call from autofill server." into pi-dev
am: 8c55e8c306
Change-Id: Id7dbe84b8b33d94b7d60d2c8ae404e8dc5701e13
This commit is contained in:
@@ -2237,6 +2237,22 @@ public class AssistStructure implements Parcelable {
|
|||||||
return mWindowNodes.get(index);
|
return mWindowNodes.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(b/35708678): temporary method that disable one-way warning flag on binder.
|
||||||
|
/** @hide */
|
||||||
|
public void ensureDataForAutofill() {
|
||||||
|
if (mHaveData) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
mHaveData = true;
|
||||||
|
Binder.allowBlocking(mReceiveChannel);
|
||||||
|
try {
|
||||||
|
ParcelTransferReader reader = new ParcelTransferReader(mReceiveChannel);
|
||||||
|
reader.go();
|
||||||
|
} finally {
|
||||||
|
Binder.defaultBlocking(mReceiveChannel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
public void ensureData() {
|
public void ensureData() {
|
||||||
if (mHaveData) {
|
if (mHaveData) {
|
||||||
|
|||||||
@@ -254,7 +254,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
|
|||||||
// change AssistStructure so it provides a "one-way" writeToParcel() method that
|
// change AssistStructure so it provides a "one-way" writeToParcel() method that
|
||||||
// sends all the data
|
// sends all the data
|
||||||
try {
|
try {
|
||||||
structure.ensureData();
|
structure.ensureDataForAutofill();
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
wtf(e, "Exception lazy loading assist structure for %s: %s",
|
wtf(e, "Exception lazy loading assist structure for %s: %s",
|
||||||
structure.getActivityComponent(), e);
|
structure.getActivityComponent(), e);
|
||||||
|
|||||||
Reference in New Issue
Block a user