Sources for Android SDK_api19


Sources for Android SDK_api19,eclipse F3查看源代码,解压后放到Android-SDK下的sources文件夹下
资源截图
代码片段和文件信息
/*
 * Copyright (C) 2009 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.accessibilityservice;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
import android.os.RemoteException;
import android.util.Log;
import android.view.KeyEvent;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityInteractionClient;
import android.view.accessibility.AccessibilityNodeInfo;

import com.android.internal.os.HandlerCaller;

/**
 * An accessibility service runs in the background and receives callbacks by the system
 * when {@link AccessibilityEvent}s are fired. Such events denote some state transition
 * in the user interface for example the focus has changed a button has been clicked
 * etc. Such a service can optionally request the capability for querying the content
 * of the active window. Development of an accessibility service requires extending this
 * class and implementing its abstract methods.
 *
 * 
 * 

Developer Guides


 * 

For more information about creating AccessibilityServices read the
 * Accessibility
 * developer guide.


 * 

 *
 * 

Lifecycle


 * 


 * The lifecycle of an accessibility service is managed exclusively by the system and
 * follows the established service life cycle. Additionally starting or stopping an
 * accessibility service is triggered exclusively by an explicit user action through
 * enabling or disabling it in the device settings. After the system binds to a service it
 * calls {@link AccessibilityService#onServiceConnected()}. This method can be
 * overriden by clients that want to perform post binding setup.
 * 


 * 

Declaration


 * 


 * An accessibility is declared as any other service in an AndroidManifest.xml but it
 * must also specify that it handles the “android.accessibilityservice.AccessibilityService“
 * {@link android.content.Intent}. Failure to declare this intent will cause the system to
 * ignore the accessibility service. Additionally an accessibility service must request the
 * {@link android.Manifest.permission#BIND_ACCESSIBILITY_SERVICE} permission to ensure
 * that only the system
 * can bind to it. Failure to declare this intent will cause the syste

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      27947  2015-03-27 14:44  android-19androidaccessibilityserviceAccessibilityService.java

     文件      37720  2015-03-27 14:44  android-19androidaccessibilityserviceAccessibilityServiceInfo.java

     文件      27026  2015-03-27 14:44  android-19androidaccountsAbstractAccountAuthenticator.java

     文件       2574  2015-03-27 14:44  android-19androidaccountsAccount.java

     文件       1430  2015-03-27 14:44  android-19androidaccountsAccountAndUser.java

     文件       3381  2015-03-27 14:44  android-19androidaccountsAccountAuthenticatorActivity.java

     文件       3260  2015-03-27 14:44  android-19androidaccountsAccountAuthenticatorResponse.java

     文件      99998  2015-03-27 14:44  android-19androidaccountsAccountManager.java

     文件        739  2015-03-27 14:44  android-19androidaccountsAccountManagerCallback.java

     文件       5847  2015-03-27 14:44  android-19androidaccountsAccountManagerFuture.java

     文件       2283  2015-03-27 14:44  android-19androidaccountsAccountManagerResponse.java

     文件       1010  2015-03-27 14:44  android-19androidaccountsAccountsException.java

     文件       5142  2015-03-27 14:44  android-19androidaccountsAuthenticatorDescription.java

     文件       1044  2015-03-27 14:44  android-19androidaccountsAuthenticatorException.java

     文件       1175  2015-03-27 14:44  android-19androidaccountsCantAddAccountActivity.java

     文件       6782  2015-03-27 14:44  android-19androidaccountsChooseAccountActivity.java

     文件       8010  2015-03-27 14:44  android-19androidaccountsChooseAccountTypeActivity.java

     文件      24850  2015-03-27 14:44  android-19androidaccountsChooseTypeAndAccountActivity.java

     文件       7796  2015-03-27 14:44  android-19androidaccountsGrantCredentialsPermissionActivity.java

     文件       1037  2015-03-27 14:44  android-19androidaccountsNetworkErrorException.java

     文件        979  2015-03-27 14:44  android-19androidaccountsOnAccountsUpdateListener.java

     文件       1063  2015-03-27 14:44  android-19androidaccountsOperationCanceledException.java

     文件       6413  2015-03-27 14:44  android-19androidanimationAnimationThread.java

     文件      15088  2015-03-27 14:44  android-19androidanimationAnimator.java

     文件      12043  2015-03-27 14:44  android-19androidanimationAnimatorInflater.java

     文件       1765  2015-03-27 14:44  android-19androidanimationAnimatorListenerAdapter.java

     文件      48195  2015-03-27 14:44  android-19androidanimationAnimatorSet.java

     文件       2870  2015-03-27 14:44  android-19androidanimationAnimatorSetEventsTest.java

     文件       2524  2015-03-27 14:44  android-19androidanimationArgbEvaluator.java

     文件       7025  2015-03-27 14:44  android-19androidanimationAutoCancelTest.java

............此处省略8833个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)