diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/assist/AssistStructure.java | 10 | ||||
| -rw-r--r-- | core/java/android/view/ViewAssistStructure.java | 24 | ||||
| -rw-r--r-- | core/java/android/view/ViewStructure.java | 4 |
3 files changed, 7 insertions, 31 deletions
diff --git a/core/java/android/app/assist/AssistStructure.java b/core/java/android/app/assist/AssistStructure.java index 1a0489525131..284dfd62173a 100644 --- a/core/java/android/app/assist/AssistStructure.java +++ b/core/java/android/app/assist/AssistStructure.java @@ -15,7 +15,7 @@ import android.os.SystemClock; import android.text.TextUtils; import android.util.Log; import android.view.View; -import android.view.ViewAssistStructure; +import android.view.ViewStructure; import android.view.ViewRootImpl; import android.view.WindowManager; import android.view.WindowManagerGlobal; @@ -616,7 +616,7 @@ public class AssistStructure implements Parcelable { } } - static class ViewNodeBuilder extends ViewAssistStructure { + static class ViewNodeBuilder extends ViewStructure { final AssistStructure mAssist; final ViewNode mNode; final boolean mAsync; @@ -827,14 +827,14 @@ public class AssistStructure implements Parcelable { } @Override - public ViewAssistStructure newChild(int index) { + public ViewStructure newChild(int index) { ViewNode node = new ViewNode(); mNode.mChildren[index] = node; return new ViewNodeBuilder(mAssist, node, false); } @Override - public ViewAssistStructure asyncNewChild(int index) { + public ViewStructure asyncNewChild(int index) { synchronized (mAssist) { ViewNode node = new ViewNode(); mNode.mChildren[index] = node; @@ -849,7 +849,7 @@ public class AssistStructure implements Parcelable { synchronized (mAssist) { if (!mAsync) { throw new IllegalStateException("Child " + this - + " was not created with ViewAssistStructure.asyncNewChild"); + + " was not created with ViewStructure.asyncNewChild"); } if (!mAssist.mPendingAsyncChildren.remove(this)) { throw new IllegalStateException("Child " + this + " already committed"); diff --git a/core/java/android/view/ViewAssistStructure.java b/core/java/android/view/ViewAssistStructure.java deleted file mode 100644 index a66d93c8cc05..000000000000 --- a/core/java/android/view/ViewAssistStructure.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (C) 2015 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package android.view; - -/** - * @deprecated Temporary until old apps can move off this. - */ -@Deprecated -public abstract class ViewAssistStructure extends ViewStructure { -} diff --git a/core/java/android/view/ViewStructure.java b/core/java/android/view/ViewStructure.java index 3572f1e00be3..9ab0ace4d7e0 100644 --- a/core/java/android/view/ViewStructure.java +++ b/core/java/android/view/ViewStructure.java @@ -221,7 +221,7 @@ public abstract class ViewStructure { * children at <var>index</var>. * @return Returns an fresh {@link ViewStructure} ready to be filled in. */ - public abstract ViewAssistStructure newChild(int index); + public abstract ViewStructure newChild(int index); /** * Like {@link #newChild}, but allows the caller to asynchronously populate the returned @@ -231,7 +231,7 @@ public abstract class ViewStructure { * population is done. * @return Returns an fresh {@link ViewStructure} ready to be filled in. */ - public abstract ViewAssistStructure asyncNewChild(int index); + public abstract ViewStructure asyncNewChild(int index); /** * Call when done populating a {@link ViewStructure} returned by |
