initial push of android app and bt server. these are used to make a remote usable via phone

This commit is contained in:
Elias Quinn
2025-06-30 07:53:58 +01:00
parent 9e5b7a6999
commit 654af164ab
2009 changed files with 102252 additions and 2084 deletions

View File

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2020 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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="androidx.window" >
<uses-sdk android:minSdkVersion="14" />
<application>
<uses-library
android:name="androidx.window.extensions"
android:required="false" />
<uses-library
android:name="androidx.window.sidecar"
android:required="false" />
</application>
</manifest>

View File

@@ -0,0 +1,5 @@
aarFormatVersion=1.0
aarMetadataVersion=1.0
minCompileSdk=33
minCompileSdkExtension=0
minAndroidGradlePluginVersion=1.0.0

View File

@@ -0,0 +1,68 @@
int attr activityAction 0x0
int attr activityName 0x0
int attr alwaysExpand 0x0
int attr animationBackgroundColor 0x0
int attr clearTop 0x0
int attr finishPrimaryWithPlaceholder 0x0
int attr finishPrimaryWithSecondary 0x0
int attr finishSecondaryWithPrimary 0x0
int attr placeholderActivityName 0x0
int attr primaryActivityName 0x0
int attr secondaryActivityAction 0x0
int attr secondaryActivityName 0x0
int attr splitLayoutDirection 0x0
int attr splitMaxAspectRatioInLandscape 0x0
int attr splitMaxAspectRatioInPortrait 0x0
int attr splitMinHeightDp 0x0
int attr splitMinSmallestWidthDp 0x0
int attr splitMinWidthDp 0x0
int attr splitRatio 0x0
int attr stickyPlaceholder 0x0
int attr tag 0x0
int id adjacent 0x0
int id always 0x0
int id alwaysAllow 0x0
int id alwaysDisallow 0x0
int id androidx_window_activity_scope 0x0
int id bottomToTop 0x0
int id locale 0x0
int id ltr 0x0
int id never 0x0
int id rtl 0x0
int id topToBottom 0x0
int[] styleable ActivityFilter { 0x0, 0x0 }
int styleable ActivityFilter_activityAction 0
int styleable ActivityFilter_activityName 1
int[] styleable ActivityRule { 0x0, 0x0 }
int styleable ActivityRule_alwaysExpand 0
int styleable ActivityRule_tag 1
int[] styleable SplitPairFilter { 0x0, 0x0, 0x0 }
int styleable SplitPairFilter_primaryActivityName 0
int styleable SplitPairFilter_secondaryActivityAction 1
int styleable SplitPairFilter_secondaryActivityName 2
int[] styleable SplitPairRule { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
int styleable SplitPairRule_animationBackgroundColor 0
int styleable SplitPairRule_clearTop 1
int styleable SplitPairRule_finishPrimaryWithSecondary 2
int styleable SplitPairRule_finishSecondaryWithPrimary 3
int styleable SplitPairRule_splitLayoutDirection 4
int styleable SplitPairRule_splitMaxAspectRatioInLandscape 5
int styleable SplitPairRule_splitMaxAspectRatioInPortrait 6
int styleable SplitPairRule_splitMinHeightDp 7
int styleable SplitPairRule_splitMinSmallestWidthDp 8
int styleable SplitPairRule_splitMinWidthDp 9
int styleable SplitPairRule_splitRatio 10
int styleable SplitPairRule_tag 11
int[] styleable SplitPlaceholderRule { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 }
int styleable SplitPlaceholderRule_animationBackgroundColor 0
int styleable SplitPlaceholderRule_finishPrimaryWithPlaceholder 1
int styleable SplitPlaceholderRule_placeholderActivityName 2
int styleable SplitPlaceholderRule_splitLayoutDirection 3
int styleable SplitPlaceholderRule_splitMaxAspectRatioInLandscape 4
int styleable SplitPlaceholderRule_splitMaxAspectRatioInPortrait 5
int styleable SplitPlaceholderRule_splitMinHeightDp 6
int styleable SplitPlaceholderRule_splitMinSmallestWidthDp 7
int styleable SplitPlaceholderRule_splitMinWidthDp 8
int styleable SplitPlaceholderRule_splitRatio 9
int styleable SplitPlaceholderRule_stickyPlaceholder 10
int styleable SplitPlaceholderRule_tag 11

View File

@@ -0,0 +1,25 @@
# Copyright (C) 2020 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.
# A rule that will keep classes that implement SidecarInterface$SidecarCallback if Sidecar seems
# be used. See b/157286362 and b/165268619 for details.
# TODO(b/208543178) investigate how to pass header jar to R8 so we don't need this rule
-if class androidx.window.layout.adapter.sidecar.SidecarCompat {
public *** setExtensionCallback(androidx.window.layout.adapter.sidecar.ExtensionInterfaceCompat$ExtensionCallbackInterface);
}
-keep class androidx.window.layout.adapter.sidecar.SidecarCompat$TranslatingCallback,
androidx.window.layout.adapter.sidecar.DistinctElementSidecarCallback {
public *** onDeviceStateChanged(androidx.window.sidecar.SidecarDeviceState);
public *** onWindowLayoutChanged(android.os.IBinder, androidx.window.sidecar.SidecarWindowLayoutInfo);
}

View File

@@ -0,0 +1,21 @@
attr activityAction
attr activityName
attr alwaysExpand
attr animationBackgroundColor
attr clearTop
attr finishPrimaryWithPlaceholder
attr finishPrimaryWithSecondary
attr finishSecondaryWithPrimary
attr placeholderActivityName
attr primaryActivityName
attr secondaryActivityAction
attr secondaryActivityName
attr splitLayoutDirection
attr splitMaxAspectRatioInLandscape
attr splitMaxAspectRatioInPortrait
attr splitMinHeightDp
attr splitMinSmallestWidthDp
attr splitMinWidthDp
attr splitRatio
attr stickyPlaceholder
attr tag

View File

@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr format="color" name="animationBackgroundColor"/>
<attr format="enum" name="finishPrimaryWithPlaceholder">
<enum name="always" value="1"/>
<enum name="adjacent" value="2"/>
</attr>
<attr format="enum" name="finishPrimaryWithSecondary">
<enum name="never" value="0"/>
<enum name="always" value="1"/>
<enum name="adjacent" value="2"/>
</attr>
<attr format="enum" name="finishSecondaryWithPrimary">
<enum name="never" value="0"/>
<enum name="always" value="1"/>
<enum name="adjacent" value="2"/>
</attr>
<attr format="enum" name="splitLayoutDirection">
<enum name="locale" value="0"/>
<enum name="ltr" value="1"/>
<enum name="rtl" value="2"/>
<enum name="topToBottom" value="3"/>
<enum name="bottomToTop" value="4"/>
</attr>
<attr format="float" name="splitMaxAspectRatioInLandscape">
<enum name="alwaysAllow" value="0"/>
<enum name="alwaysDisallow" value="-1"/>
</attr>
<attr format="float" name="splitMaxAspectRatioInPortrait">
<enum name="alwaysAllow" value="0"/>
<enum name="alwaysDisallow" value="-1"/>
</attr>
<attr format="integer" name="splitMinHeightDp"/>
<attr format="integer" name="splitMinSmallestWidthDp"/>
<attr format="integer" name="splitMinWidthDp"/>
<attr format="float" name="splitRatio"/>
<attr format="string" name="tag"/>
<item name="androidx_window_activity_scope" type="id"/>
<declare-styleable name="ActivityFilter">
<attr format="string" name="activityName"/>
<attr format="string" name="activityAction"/>
</declare-styleable>
<declare-styleable name="ActivityRule">
<attr format="boolean" name="alwaysExpand"/>
<attr name="tag"/>
</declare-styleable>
<declare-styleable name="SplitPairFilter">
<attr format="string" name="primaryActivityName"/>
<attr format="string" name="secondaryActivityName"/>
<attr format="string" name="secondaryActivityAction"/>
</declare-styleable>
<declare-styleable name="SplitPairRule">
<attr format="boolean" name="clearTop"/>
<attr name="finishPrimaryWithSecondary"/>
<attr name="finishSecondaryWithPrimary"/>
<attr name="splitRatio"/>
<attr name="splitMinWidthDp"/>
<attr name="splitMinHeightDp"/>
<attr name="splitMinSmallestWidthDp"/>
<attr name="splitMaxAspectRatioInPortrait"/>
<attr name="splitMaxAspectRatioInLandscape"/>
<attr name="splitLayoutDirection"/>
<attr name="tag"/>
<attr name="animationBackgroundColor"/>
</declare-styleable>
<declare-styleable name="SplitPlaceholderRule">
<attr format="string" name="placeholderActivityName"/>
<attr format="boolean" name="stickyPlaceholder"/>
<attr name="finishPrimaryWithPlaceholder"/>
<attr name="splitRatio"/>
<attr name="splitMinWidthDp"/>
<attr name="splitMinHeightDp"/>
<attr name="splitMinSmallestWidthDp"/>
<attr name="splitMaxAspectRatioInPortrait"/>
<attr name="splitMaxAspectRatioInLandscape"/>
<attr name="splitLayoutDirection"/>
<attr name="tag"/>
<attr name="animationBackgroundColor"/>
</declare-styleable>
</resources>