Skip to content

Commit

Permalink
Push to GitHub 2022-05-30
Browse files Browse the repository at this point in the history
  • Loading branch information
simplexatg committed May 30, 2022
1 parent 6c0b475 commit 771de7c
Show file tree
Hide file tree
Showing 1,348 changed files with 37,773 additions and 35,682 deletions.
6 changes: 6 additions & 0 deletions braille/brailledisplay/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apply plugin: 'com.android.library'
apply from: "../../shared.gradle"

dependencies {
implementation project(':brailleinterfaces')
}
4 changes: 4 additions & 0 deletions braille/brailledisplay/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.accessibility.braille.brailledisplay" />
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.android.accessibility.brailledisplay;
package com.google.android.accessibility.braille.brailledisplay;

import android.content.Context;
import android.content.res.Configuration;
import android.view.accessibility.AccessibilityEvent;
import com.google.android.accessibility.utils.brailledisplay.BrailleDisplayForTalkBack;
import com.google.android.accessibility.utils.brailledisplay.TalkBackForBrailleDisplay;
import com.google.android.accessibility.braille.interfaces.BrailleDisplayForBrailleIme;
import com.google.android.accessibility.braille.interfaces.BrailleDisplayForTalkBack;
import com.google.android.accessibility.braille.interfaces.TalkBackForBrailleDisplay;

/** Stub class for the build that doesn't include Braille display. */
public class BrailleDisplay implements BrailleDisplayForTalkBack {
Expand All @@ -33,8 +33,10 @@ public void start() {}
public void stop() {}

@Override
public void onConfigurationChanged(Configuration configuration) {}
public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) {}

@Override
public void onAccessibilityEvent(AccessibilityEvent accessibilityEvent) {}
public BrailleDisplayForBrailleIme getBrailleDisplayForBrailleIme() {
return null;
}
}
6 changes: 6 additions & 0 deletions braille/brailledisplayanalytics/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apply plugin: 'com.android.library'
apply from: "../../shared.gradle"

dependencies {
implementation project(':braillecommon')
}
4 changes: 4 additions & 0 deletions braille/brailledisplayanalytics/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.android.accessibility.braille.brailledisplay.analytics">
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.google.android.accessibility.braille.brailledisplay.analytics;

import android.content.Context;
import com.google.android.accessibility.braille.common.translate.BrailleLanguages.Code;

/** Stub braille display analytics. */
public class BrailleDisplayAnalytics {
private static BrailleDisplayAnalytics instance;

public static BrailleDisplayAnalytics getInstance(Context context) {
if (instance == null) {
instance = new BrailleDisplayAnalytics(context.getApplicationContext());
}
return instance;
}

private BrailleDisplayAnalytics(Context context) {}

public void logStartedEvent(String device, Code code, boolean wordWrappingEnabled) {}

public void logTypingBrailleCharacter(int count) {}

public void logReadingBrailleCharacter(int count) {}

public void logBrailleCodeSetting(Code code) {}

public void logWordWrappingSetting(boolean enabled) {}
}
10 changes: 10 additions & 0 deletions braille/brailleime/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apply plugin: 'com.android.library'
apply from: "../../shared.gradle"

dependencies {
implementation project(':utils')
implementation project(':braillecommon')
implementation project(':brailleinterfaces')
implementation project(':brailleimeanalytics')
implementation project(':brailletranslate')
}
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<!-- Required for haptic feedback. -->
<uses-permission android:name="android.permission.VIBRATE" />

<application>
<application
android:theme="@style/BrailleDisplayTheme">
<service
android:name="com.google.android.accessibility.brailleime.BrailleIme"
android:label="@string/braille_ime_service_name"
Expand Down Expand Up @@ -41,7 +42,7 @@
</intent-filter>
</activity>

<receiver android:name=".MyPackageReplacedReceiver"
<receiver android:name="com.google.android.accessibility.brailleime.MyPackageReplacedReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
Expand Down
Loading

0 comments on commit 771de7c

Please sign in to comment.