当前位置: 首页>>代码示例>>Java>>正文


Java AccessibilityNodeProvider类代码示例

本文整理汇总了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;
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:23,代码来源:ContentViewCore.java

示例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;
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:23,代码来源:ContentViewCore.java

示例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;
}
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:11,代码来源:NumberPicker.java

示例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;
}
 
开发者ID:Gericop,项目名称:DateTimePicker,代码行数:12,代码来源:NumberPicker.java

示例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;
}
 
开发者ID:mobvoi,项目名称:ticdesign,代码行数:11,代码来源:NumberPicker.java

示例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;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:9,代码来源:AccessibilityDelegateCompat.java

示例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;
}
 
开发者ID:ChiangC,项目名称:FMTech,代码行数:9,代码来源:lg.java

示例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();
    }
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:10,代码来源:ContentView.java

示例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;
}
 
开发者ID:vuze,项目名称:vuze-remote-for-android,代码行数:12,代码来源:NumberPicker.java

示例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;
    }
}
 
开发者ID:cuplv,项目名称:droidel,代码行数:14,代码来源:View.java

示例11: getAccessibilityNodeProvider

import android.view.accessibility.AccessibilityNodeProvider; //导入依赖的package包/类
@Override
public AccessibilityNodeProvider getAccessibilityNodeProvider() {
    if (mAccessibilityNodeProvider == null) {
        mAccessibilityNodeProvider = new VirtualTreeProvider();
    }
    return mAccessibilityNodeProvider;
}
 
开发者ID:apptik,项目名称:MultiSlider,代码行数:8,代码来源:MultiSlider.java

示例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();
    }
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:10,代码来源:JellyBeanContentView.java

示例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;
    }
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:14,代码来源:ContentViewCore.java

示例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;
}
 
开发者ID:trapridge,项目名称:MEng,代码行数:14,代码来源:AccessibilityNodeProviderActivity.java

示例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();
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:15,代码来源:WebViewChromium.java


注:本文中的android.view.accessibility.AccessibilityNodeProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。