當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。