android-5.0.1-sources


android 5.0.1 源码
资源截图
代码片段和文件信息
/*
 * 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 android.view.accessibility.AccessibilityWindowInfo;

import com.android.internal.os.HandlerCaller;

import java.util.List;

/**
 * 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 onl

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

     文件      32555  2014-12-15 18:20  android-21androidaccessibilityserviceAccessibilityService.java

     文件      39935  2014-12-15 18:20  android-21androidaccessibilityserviceAccessibilityServiceInfo.java

     文件      27026  2014-12-15 18:20  android-21androidaccountsAbstractAccountAuthenticator.java

     文件       2574  2014-12-15 18:20  android-21androidaccountsAccount.java

     文件       1430  2014-12-15 18:20  android-21androidaccountsAccountAndUser.java

     文件       3350  2014-12-15 18:20  android-21androidaccountsAccountAuthenticatorActivity.java

     文件       3260  2014-12-15 18:20  android-21androidaccountsAccountAuthenticatorResponse.java

     文件     107173  2014-12-15 18:20  android-21androidaccountsAccountManager.java

     文件        739  2014-12-15 18:20  android-21androidaccountsAccountManagerCallback.java

     文件       5801  2014-12-15 18:20  android-21androidaccountsAccountManagerFuture.java

     文件       2283  2014-12-15 18:20  android-21androidaccountsAccountManagerResponse.java

     文件       1010  2014-12-15 18:20  android-21androidaccountsAccountsException.java

     文件       5142  2014-12-15 18:20  android-21androidaccountsAuthenticatorDescription.java

     文件       1044  2014-12-15 18:20  android-21androidaccountsAuthenticatorException.java

     文件       1262  2014-12-15 18:20  android-21androidaccountsCantAddAccountActivity.java

     文件       6767  2014-12-15 18:20  android-21androidaccountsChooseAccountActivity.java

     文件       7995  2014-12-15 18:20  android-21androidaccountsChooseAccountTypeActivity.java

     文件      24850  2014-12-15 18:20  android-21androidaccountsChooseTypeAndAccountActivity.java

     文件       7714  2014-12-15 18:20  android-21androidaccountsGrantCredentialsPermissionActivity.java

     文件       1037  2014-12-15 18:20  android-21androidaccountsNetworkErrorException.java

     文件        979  2014-12-15 18:20  android-21androidaccountsOnAccountsUpdateListener.java

     文件       1063  2014-12-15 18:20  android-21androidaccountsOperationCanceledException.java

     文件       3906  2014-12-15 18:20  android-21androidalsaAlsaCardsParser.java

     文件       9395  2014-12-15 18:20  android-21androidalsaAlsaDevicesParser.java

     文件       1728  2014-12-15 18:20  android-21androidalsaLineTokenizer.java

     文件       6413  2014-12-15 18:20  android-21androidanimationAnimationThread.java

     文件      17522  2014-12-15 18:20  android-21androidanimationAnimator.java

     文件      26349  2014-12-15 18:20  android-21androidanimationAnimatorInflater.java

     文件       1765  2014-12-15 18:20  android-21androidanimationAnimatorListenerAdapter.java

     文件      49241  2014-12-15 18:20  android-21androidanimationAnimatorSet.java

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

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

发表评论

评论列表(条)