本文整理汇总了Java中android.view.accessibility.AccessibilityNodeProvider类的典型用法代码示例。如果您正苦于以下问题:Java AccessibilityNodeProvider类的具体用法?Java AccessibilityNodeProvider怎么用?Java AccessibilityNodeProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AccessibilityNodeProvider类属于android.view.accessibility包,在下文中一共展示了AccessibilityNodeProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
/**
* If native accessibility is enabled and no other views are temporarily
* obscuring this one, returns an AccessibilityNodeProvider that
* implements native accessibility for this view. Returns null otherwise.
* Lazily initializes native accessibility here if it's allowed.
* @return The AccessibilityNodeProvider, if available, or null otherwise.
*/
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (mIsObscuredByAnotherView) return null;
if (mBrowserAccessibilityManager != null) {
return mBrowserAccessibilityManager.getAccessibilityNodeProvider();
}
if (mNativeAccessibilityAllowed && !mNativeAccessibilityEnabled
&& mNativeContentViewCore != 0) {
mNativeAccessibilityEnabled = true;
nativeSetAccessibilityEnabled(mNativeContentViewCore, true);
}
return null;
}
示例2: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
/**
* If native accessibility (not script injection) is enabled, and if this is
* running on JellyBean or later, returns an AccessibilityNodeProvider that
* implements native accessibility for this view. Returns null otherwise.
* Lazily initializes native accessibility here if it's allowed.
* @return The AccessibilityNodeProvider, if available, or null otherwise.
*/
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (mBrowserAccessibilityManager != null) {
return mBrowserAccessibilityManager.getAccessibilityNodeProvider();
}
if (mNativeAccessibilityAllowed &&
!mNativeAccessibilityEnabled &&
mNativeContentViewCore != 0 &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
mNativeAccessibilityEnabled = true;
nativeSetAccessibilityEnabled(mNativeContentViewCore, true);
}
return null;
}
示例3: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (!mHasSelectorWheel) {
return super.getAccessibilityNodeProvider();
}
if (mAccessibilityNodeProvider == null) {
mAccessibilityNodeProvider = new SupportAccessibilityNodeProvider();
}
return mAccessibilityNodeProvider.mProvider;
}
示例4: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (!mHasSelectorWheel) {
return super.getAccessibilityNodeProvider();
}
if (mAccessibilityNodeProvider == null) {
mAccessibilityNodeProvider = new AccessibilityNodeProviderImpl();
}
return mAccessibilityNodeProvider;
}
示例5: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (!mHasSelectorWheel) {
return super.getAccessibilityNodeProvider();
}
if (mAccessibilityNodeProvider == null) {
mAccessibilityNodeProvider = new AccessibilityNodeProviderImpl();
}
return mAccessibilityNodeProvider;
}
示例6: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
public final AccessibilityNodeProviderCompat getAccessibilityNodeProvider(Object paramObject, View paramView)
{
AccessibilityNodeProvider localAccessibilityNodeProvider = ((View.AccessibilityDelegate)paramObject).getAccessibilityNodeProvider(paramView);
if (localAccessibilityNodeProvider != null) {
return new AccessibilityNodeProviderCompat(localAccessibilityNodeProvider);
}
return null;
}
示例7: a
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
public final qb a(Object paramObject, View paramView)
{
AccessibilityNodeProvider localAccessibilityNodeProvider = ((View.AccessibilityDelegate)paramObject).getAccessibilityNodeProvider(paramView);
if (localAccessibilityNodeProvider != null) {
return new qb(localAccessibilityNodeProvider);
}
return null;
}
示例8: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
AccessibilityNodeProvider provider = mContentViewCore.getAccessibilityNodeProvider();
if (provider != null) {
return provider;
} else {
return super.getAccessibilityNodeProvider();
}
}
示例9: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (!mHasSelectorWheel) {
return super.getAccessibilityNodeProvider();
}
if (mAccessibilityNodeProvider == null) {
mAccessibilityNodeProvider = new SupportAccessibilityNodeProvider();
}
return mAccessibilityNodeProvider.mProvider;
}
示例10: createAccessibilityNodeInfoInternal
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
/**
* @see #createAccessibilityNodeInfo()
*/
AccessibilityNodeInfo createAccessibilityNodeInfoInternal() {
AccessibilityNodeProvider provider = getAccessibilityNodeProvider();
if (provider != null) {
return provider.createAccessibilityNodeInfo(View.NO_ID);
} else {
AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(this);
onInitializeAccessibilityNodeInfo(info);
return info;
}
}
示例11: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (mAccessibilityNodeProvider == null) {
mAccessibilityNodeProvider = new VirtualTreeProvider();
}
return mAccessibilityNodeProvider;
}
示例12: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
AccessibilityNodeProvider provider = getContentViewCore().getAccessibilityNodeProvider();
if (provider != null) {
return provider;
} else {
return super.getAccessibilityNodeProvider();
}
}
示例13: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
/**
* If native accessibility (not script injection) is enabled, and if this is
* running on JellyBean or later, returns an AccessibilityNodeProvider that
* implements native accessibility for this view. Returns null otherwise.
* @return The AccessibilityNodeProvider, if available, or null otherwise.
*/
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
if (mBrowserAccessibilityManager != null) {
return mBrowserAccessibilityManager.getAccessibilityNodeProvider();
} else {
return null;
}
}
示例14: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
// Instantiate the provide only when requested. Since the system
// will call this method multiple times it is a good practice to
// cache the provider instance.
if (mAccessibilityNodeProvider == null) {
mAccessibilityNodeProvider = new VirtualDescendantsProvider();
}
return mAccessibilityNodeProvider;
}
示例15: getAccessibilityNodeProvider
import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
mFactory.startYourEngines(false);
if (checkNeedsPost()) {
AccessibilityNodeProvider ret = runOnUiThreadBlocking(
new Callable<AccessibilityNodeProvider>() {
@Override
public AccessibilityNodeProvider call() {
return getAccessibilityNodeProvider();
}
});
return ret;
}
return mAwContents.getAccessibilityNodeProvider();
}