Loading core/java/android/app/assist/AssistStructure.java +16 −0 Original line number Diff line number Diff line Loading @@ -2237,6 +2237,22 @@ public class AssistStructure implements Parcelable { 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 */ public void ensureData() { if (mHaveData) { Loading services/autofill/java/com/android/server/autofill/Session.java +1 −1 Original line number Diff line number Diff line Loading @@ -254,7 +254,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState // change AssistStructure so it provides a "one-way" writeToParcel() method that // sends all the data try { structure.ensureData(); structure.ensureDataForAutofill(); } catch (RuntimeException e) { wtf(e, "Exception lazy loading assist structure for %s: %s", structure.getActivityComponent(), e); Loading Loading
core/java/android/app/assist/AssistStructure.java +16 −0 Original line number Diff line number Diff line Loading @@ -2237,6 +2237,22 @@ public class AssistStructure implements Parcelable { 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 */ public void ensureData() { if (mHaveData) { Loading
services/autofill/java/com/android/server/autofill/Session.java +1 −1 Original line number Diff line number Diff line Loading @@ -254,7 +254,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState // change AssistStructure so it provides a "one-way" writeToParcel() method that // sends all the data try { structure.ensureData(); structure.ensureDataForAutofill(); } catch (RuntimeException e) { wtf(e, "Exception lazy loading assist structure for %s: %s", structure.getActivityComponent(), e); Loading