-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jhonboy121 <alfredmathew05@gmail.com>
- Loading branch information
jhonboy121
committed
Jun 25, 2022
1 parent
bd558dc
commit 348dc95
Showing
13 changed files
with
845 additions
and
4 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ | |
package="com.android.systemui.shared"> | ||
|
||
|
||
</manifest> | ||
</manifest> |
27 changes: 27 additions & 0 deletions
27
...ages/SystemUI/shared/src/com/android/systemui/statusbar/phone/GameSpaceConfigConstants.kt
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,27 @@ | ||
/* | ||
* Copyright (C) 2022 FlamingoOS 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.systemui.statusbar.phone | ||
|
||
// Setting defaults | ||
const val DEFAULT_GAMESPACE_ENABLED = false | ||
const val DEFAULT_GAMESPACE_DYNAMIC_MODE = true | ||
const val DEFAULT_GAMESPACE_DISABLE_HEADSUP = true | ||
const val DEFAULT_GAMESPACE_DISABLE_FULLSCREEN_INTENT = false | ||
|
||
// State config keys | ||
const val CONFIG_BACK_GESTURE_LOCKED = "back_gesture_locked" | ||
const val CONFIG_RINGER_MODE = "ringer_mode" |
31 changes: 31 additions & 0 deletions
31
packages/SystemUI/shared/src/com/android/systemui/statusbar/phone/IGameSpaceService.aidl
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,31 @@ | ||
/* | ||
* Copyright (C) 2022 FlamingoOS 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.systemui.statusbar.phone; | ||
|
||
import android.os.Bundle; | ||
|
||
import com.android.systemui.statusbar.phone.IGameSpaceServiceCallback; | ||
|
||
/** | ||
* @hide | ||
*/ | ||
interface IGameSpaceService { | ||
oneway void showGameUI(in String packageName); | ||
oneway void onGamePackageChanged(in String packageName); | ||
oneway void setCallback(in IGameSpaceServiceCallback callback); | ||
oneway void onStateChanged(in Bundle state); | ||
} |
26 changes: 26 additions & 0 deletions
26
...s/SystemUI/shared/src/com/android/systemui/statusbar/phone/IGameSpaceServiceCallback.aidl
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,26 @@ | ||
/* | ||
* Copyright (C) 2022 FlamingoOS 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.systemui.statusbar.phone; | ||
|
||
/** | ||
* @hide | ||
*/ | ||
interface IGameSpaceServiceCallback { | ||
oneway void setGesturalNavigationLocked(in boolean isLocked); | ||
oneway void setRingerMode(in int mode); | ||
oneway void setAdaptiveBrightnessDisabled(in boolean disabled); | ||
} |
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
Oops, something went wrong.