本文整理匯總了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();
}