forked from google/talkback
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- enhanced support for Chrome and web views. - extended keyboard support for web views and native apps via "default" keymap. - Support for split-screen mode in Nougat. - updated TalkBack tutorial. - test app with code samples, widgets and patterns. - updates to Switch Access. - and more.
- Loading branch information
Victor Tsaran
committed
Dec 19, 2016
1 parent
1b30727
commit 12bdf20
Showing
1,063 changed files
with
147,571 additions
and
19,886 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Introduction | ||
This repository contains sources for two Android accessibility services: | ||
|
||
* TalkBack -- a screen reader for blind and visually impaired users. For usage instructions, see [TalkBack User Guide](https://support.google.com/accessibility/android/answer/6283677?hl=en). | ||
* Switch Access -- screen navigation tool for users with mobility limitations. For usage instructions, see [Switch Access User Guide](https://support.google.com/accessibility/android/answer/6122836?hl=en). | ||
|
||
When you build and install TalkBack package, both services will be installed under Settings -> Accessibility and will be turned off by default. It is *not recommended* running both services at the same time as they may conflict with each other. | ||
|
||
|
||
## Dependencies | ||
To build TalkBack sources you will need: | ||
|
||
1. Download android sdk from <https://developer.android.com/sdk/installing/index.html?pkg=tools> | ||
2. Set ANDROID_HOME to the path of Android sdk folder | ||
3. Open Android SDK manager and install | ||
- Tools/Android SDK Build-tools 22.0.1 | ||
- Android 7.0 (API 24) | ||
- Extras/Android Support Repository | ||
- Extras/Google Repository | ||
|
||
|
||
## Building, Installing and Testing | ||
TalkBack uses gradle as build system. | ||
Here are commands to build, install and test the project from command line: | ||
|
||
1. Assemble debug and release apks: ./gradlew assemble | ||
2. Assemble only debug apk: ./gradlew assembleDebug | ||
3. Install debug apk on connected device: ./gradlew installDebug | ||
4. Run robolectric tests: ./gradlew test | ||
|
||
|
||
## Test App | ||
This repository also includes a test app that you can use to: | ||
|
||
1. Test TalkBack's behavior against various standard widgets and interaction patterns. | ||
2. Explore source code for test cases to see the implementation of various TalkBack features. | ||
|
||
To build and install the app, do the following: | ||
|
||
1. Switch to the root directory of this repository. | ||
2. Change to the "tests" directory. | ||
3. To assemble debug and release apk: ./gradlew assemble | ||
4. To build debug apk: ./gradlew assembleDebug | ||
5. The apks will be located in the app/build/outputs/apk directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
function exitOnFailure() { | ||
rc=$? | ||
if [[ $rc != 0 ]] ; then | ||
exit 1 | ||
fi | ||
} | ||
|
||
if [ $1 == "assembleDebugTest" ] | ||
then | ||
./vendor/unbundled_google/packages/TalkBack/gradlew clean :robolectricTargetZip:assembleTargetZip :robolectricTest:assembleTestJar :robolectricTestSuite:assembleSuiteJar -PoutDir=$OUT_DIR/build | ||
exitOnFailure | ||
cp -r $OUT_DIR/build/robolectric/* $DIST_DIR | ||
exitOnFailure | ||
./vendor/unbundled_google/packages/TalkBack/gradlew clean assembleGoogleDebug assembleGoogleDebugAndroidTest -PoutDir=$OUT_DIR/build | ||
elif [ $1 == "assembleDebug" ] | ||
then | ||
./vendor/unbundled_google/packages/TalkBack/gradlew clean assembleGoogleDebug assembleGoogleRelease -PoutDir=$OUT_DIR/build | ||
elif [ $1 == "assembleRelease" ] | ||
then | ||
./vendor/unbundled_google/packages/TalkBack/gradlew clean assembleGoogleRelease -PoutDir=$OUT_DIR/build | ||
else | ||
./vendor/unbundled_google/packages/TalkBack/gradlew clean $1 -PoutDir=$OUT_DIR/build | ||
fi | ||
|
||
exitOnFailure | ||
cp -r $OUT_DIR/build/outputs/apk/* $DIST_DIR | ||
exitOnFailure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (C) 2016 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 com.android.switchaccess; | ||
|
||
import android.content.Context; | ||
|
||
public class HelpUtils { | ||
|
||
@SuppressWarnings("unused") | ||
private HelpUtils() { | ||
} | ||
|
||
public static void launchHelp(Context context) { | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/aosp/java/com/android/talkback/HelpAndFeedbackUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (C) 2016 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 com.android.talkback; | ||
|
||
import android.app.Activity; | ||
import android.content.Context; | ||
|
||
public final class HelpAndFeedbackUtils { | ||
public static void launchHelpAndFeedback(Activity activity) { | ||
} | ||
|
||
public static boolean supportsHelpAndFeedback(Context context) { | ||
return true; | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.