diff --git a/frameworks/base/packages/SystemUI/res/layout/poweroff.xml b/frameworks/base/packages/SystemUI/res/layout/poweroff.xml
new file mode 100644
index 0000000000..487b563103
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/layout/poweroff.xml
@@ -0,0 +1,14 @@
+
+
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:systemui="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/poweroff"
+ android:layout_width="@dimen/navigation_key_width"
+ android:layout_height="match_parent"
+ android:layout_weight="0"
+ systemui:keyCode="-1"
+ android:scaleType="center"
+ android:contentDescription="@string/accessibility_home"
+ android:paddingStart="@dimen/navigation_key_padding"
+ android:paddingEnd="@dimen/navigation_key_padding"
+ />
No newline at end of file
frameworks/base/packages/SystemUI/res/layout/rotation.xml
diff --git a/frameworks/base/packages/SystemUI/res/layout/rotation.xml b/frameworks/base/packages/SystemUI/res/layout/rotation.xml
new file mode 100644
index 0000000000..20ab401782
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/layout/rotation.xml
@@ -0,0 +1,14 @@
+
+
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:systemui="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/rotation"
+ android:layout_width="@dimen/navigation_key_width"
+ android:layout_height="match_parent"
+ android:layout_weight="0"
+ systemui:keyCode="-2"
+ android:scaleType="center"
+ android:contentDescription="@string/accessibility_home"
+ android:paddingStart="@dimen/navigation_key_padding"
+ android:paddingEnd="@dimen/navigation_key_padding"
+ />
No newline at end of file
frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
diff --git a/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml b/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
index d5c4303003..07ea9ba760 100644
--- a/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
+++ b/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
@@ -34,7 +34,7 @@
true
-
left;volume_sub,back,home,recent,volume_add,screenshot;right
+
left;poweroff,hide_bar,volume_sub,back,home,recent,volume_add,screenshot,rotation;right
290
frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml
diff --git a/frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml b/frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml
new file mode 100644
index 0000000000..d2d323ef24
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml
@@ -0,0 +1,9 @@
+
+
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+
"系统栏已经被隐藏n您可以在屏幕下边缘拖拉再次显示它。"
+
+
+
菜单键更多选项
+
No newline at end of file
frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml
diff --git a/frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml b/frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml
new file mode 100644
index 0000000000..6850f153b3
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml
@@ -0,0 +1,9 @@
+
+
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+
"系統欄已經被隱藏n您可以在荧幕下邊緣拖拉再次顯示它。"
+
+
+
選單鍵更多選項
+ s
No newline at end of file
frameworks/base/packages/SystemUI/res/values/config.xml
diff --git a/frameworks/base/packages/SystemUI/res/values/config.xml b/frameworks/base/packages/SystemUI/res/values/config.xml
index 8511fed05c..94eb8a676b 100644
--- a/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -107,12 +107,12 @@
- wifi,bt,dnd,flashlight,rotation,battery,cell,airplane,cast
+ wifi,bt,dnd,flashlight,rotation,battery,cell,airplane,cast,screenshot
- wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,location,hotspot,inversion,saver,work,cast,night
+ wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,location,hotspot,inversion,saver,work,cast,screenshot,night
@@ -320,7 +320,7 @@
com.android.systemui.SystemUIFactory
-
left;volume_sub,back,home,recent,volume_add,screenshot;right
+
left;poweroff,hide_bar,volume_sub,back,home,recent,volume_add,screenshot,rotation;right
false
frameworks/base/packages/SystemUI/res/values/custom_strings.xml
diff --git a/frameworks/base/packages/SystemUI/res/values/custom_strings.xml b/frameworks/base/packages/SystemUI/res/values/custom_strings.xml
new file mode 100644
index 0000000000..3c3fdefe10
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/values/custom_strings.xml
@@ -0,0 +1,11 @@
+
+
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+
"System Bar has hiddennyou can swipe from the bottom of screen to show it again."
+
+
+
Screenshot
+
+
Press Menu Edit
+ s
No newline at end of file
frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
diff --git a/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java b/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
index 6349275037..59e738a375 100644
--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
@@ -83,6 +83,9 @@ public class CommandQueue extends IStatusBar.Stub {
private static final int MSG_SHOW_SHUTDOWN_UI = 36 << MSG_SHIFT;
private static final int MSG_SET_TOP_APP_HIDES_STATUS_BAR = 37 << MSG_SHIFT;
+ /**firefly_modify_songjf, add bar interface**/
+ private static final int MSG_ADD_BAR = 38 << MSG_SHIFT;
+
public static final int FLAG_EXCLUDE_NONE = 0;
public static final int FLAG_EXCLUDE_SEARCH_PANEL = 1 << 0;
public static final int FLAG_EXCLUDE_RECENTS_PANEL = 1 << 1;
@@ -142,6 +145,9 @@ public class CommandQueue extends IStatusBar.Stub {
default void handleSystemKey(int arg1) { }
default void handleShowGlobalActionsMenu() { }
default void handleShowShutdownUi(boolean isReboot, String reason) { }
+
+ /**firefly_modify_songjf, add bar interface **/
+ default void addBar(){ }
}
@VisibleForTesting
@@ -343,6 +349,14 @@ public class CommandQueue extends IStatusBar.Stub {
}
}
+ /**firefly_modify_songjf, add bar interface **/
+ public void addBar() {
+ synchronized (mLock) {
+ mHandler.removeMessages(MSG_ADD_BAR);
+ mHandler.obtainMessage(MSG_ADD_BAR, 0, 0, null).sendToTarget();
+ }
+ }
+
public void showScreenPinningRequest(int taskId) {
synchronized (mLock) {
mHand
写文章的时候板子不在身边,就找张的状态控制的效果是一样的。
/****/
/** Broadcast Action:Status bar show
*/
public static final String ACTION_ALWAYS_HIDE_BAR_CHANGE = "action.ALWAYS_HIDE_STATUSBAR_CHENAGE";
public static final String CNBOT_ACTION_ALWAYS_HIDE = "cnbot_always_hide_bar";
/**
* 系统的状态栏控制
* @param context
* @param hide 是否隐藏
*/
public static void changeBarHideStatus(Context context , boolean hide){
if (context == null){
return;
}
Intent i = new Intent(ACTION_ALWAYS_HIDE_BAR_CHANGE);
i.putExtra(CNBOT_ACTION_ALWAYS_HIDE,hide?1:0);
context.sendBroadcast(i);
}
diff --git a/frameworks/base/packages/SystemUI/res/layout/poweroff.xml b/frameworks/base/packages/SystemUI/res/layout/poweroff.xml
new file mode 100644
index 0000000000..487b563103
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/layout/poweroff.xml
@@ -0,0 +1,14 @@
+
+
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:systemui="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/poweroff"
+ android:layout_width="@dimen/navigation_key_width"
+ android:layout_height="match_parent"
+ android:layout_weight="0"
+ systemui:keyCode="-1"
+ android:scaleType="center"
+ android:contentDescription="@string/accessibility_home"
+ android:paddingStart="@dimen/navigation_key_padding"
+ android:paddingEnd="@dimen/navigation_key_padding"
+ />
No newline at end of file
frameworks/base/packages/SystemUI/res/layout/rotation.xml
diff --git a/frameworks/base/packages/SystemUI/res/layout/rotation.xml b/frameworks/base/packages/SystemUI/res/layout/rotation.xml
new file mode 100644
index 0000000000..20ab401782
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/layout/rotation.xml
@@ -0,0 +1,14 @@
+
+
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:systemui="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/rotation"
+ android:layout_width="@dimen/navigation_key_width"
+ android:layout_height="match_parent"
+ android:layout_weight="0"
+ systemui:keyCode="-2"
+ android:scaleType="center"
+ android:contentDescription="@string/accessibility_home"
+ android:paddingStart="@dimen/navigation_key_padding"
+ android:paddingEnd="@dimen/navigation_key_padding"
+ />
No newline at end of file
frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
diff --git a/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml b/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
index d5c4303003..07ea9ba760 100644
--- a/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
+++ b/frameworks/base/packages/SystemUI/res/values-sw600dp/config.xml
@@ -34,7 +34,7 @@
true
- left;volume_sub,back,home,recent,volume_add,screenshot;right
+ left;poweroff,hide_bar,volume_sub,back,home,recent,volume_add,screenshot,rotation;right
290
frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml
diff --git a/frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml b/frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml
new file mode 100644
index 0000000000..d2d323ef24
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/values-zh-rCN/custom_strings.xml
@@ -0,0 +1,9 @@
+
+
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ "系统栏已经被隐藏n您可以在屏幕下边缘拖拉再次显示它。"
+
+
+ 菜单键更多选项
+
No newline at end of file
frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml
diff --git a/frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml b/frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml
new file mode 100644
index 0000000000..6850f153b3
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/values-zh-rHK/custom_strings.xml
@@ -0,0 +1,9 @@
+
+
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ "系統欄已經被隱藏n您可以在荧幕下邊緣拖拉再次顯示它。"
+
+
+ 選單鍵更多選項
+ s
No newline at end of file
frameworks/base/packages/SystemUI/res/values/config.xml
diff --git a/frameworks/base/packages/SystemUI/res/values/config.xml b/frameworks/base/packages/SystemUI/res/values/config.xml
index 8511fed05c..94eb8a676b 100644
--- a/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -107,12 +107,12 @@
- wifi,bt,dnd,flashlight,rotation,battery,cell,airplane,cast
+ wifi,bt,dnd,flashlight,rotation,battery,cell,airplane,cast,screenshot
- wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,location,hotspot,inversion,saver,work,cast,night
+ wifi,cell,battery,dnd,flashlight,rotation,bt,airplane,location,hotspot,inversion,saver,work,cast,screenshot,night
@@ -320,7 +320,7 @@
com.android.systemui.SystemUIFactory
- left;volume_sub,back,home,recent,volume_add,screenshot;right
+ left;poweroff,hide_bar,volume_sub,back,home,recent,volume_add,screenshot,rotation;right
false
frameworks/base/packages/SystemUI/res/values/custom_strings.xml
diff --git a/frameworks/base/packages/SystemUI/res/values/custom_strings.xml b/frameworks/base/packages/SystemUI/res/values/custom_strings.xml
new file mode 100644
index 0000000000..3c3fdefe10
--- /dev/null
+++ b/frameworks/base/packages/SystemUI/res/values/custom_strings.xml
@@ -0,0 +1,11 @@
+
+
+ xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ "System Bar has hiddennyou can swipe from the bottom of screen to show it again."
+
+
+ Screenshot
+
+ Press Menu Edit
+ s
No newline at end of file
frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
diff --git a/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java b/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
index 6349275037..59e738a375 100644
--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/statu***ar/CommandQueue.java
@@ -83,6 +83,9 @@ public class CommandQueue extends IStatusBar.Stub {
private static final int MSG_SHOW_SHUTDOWN_UI = 36 << MSG_SHIFT;
private static final int MSG_SET_TOP_APP_HIDES_STATUS_BAR = 37 << MSG_SHIFT;
+ /**firefly_modify_songjf, add bar interface**/
+ private static final int MSG_ADD_BAR = 38 << MSG_SHIFT;
+
public static final int FLAG_EXCLUDE_NONE = 0;
public static final int FLAG_EXCLUDE_SEARCH_PANEL = 1 << 0;
public static final int FLAG_EXCLUDE_RECENTS_PANEL = 1 << 1;
@@ -142,6 +145,9 @@ public class CommandQueue extends IStatusBar.Stub {
default void handleSystemKey(int arg1) { }
default void handleShowGlobalActionsMenu() { }
default void handleShowShutdownUi(boolean isReboot, String reason) { }
+
+ /**firefly_modify_songjf, add bar interface **/
+ default void addBar(){ }
}
@VisibleForTesting
@@ -343,6 +349,14 @@ public class CommandQueue extends IStatusBar.Stub {
}
}
+ /**firefly_modify_songjf, add bar interface **/
+ public void addBar() {
+ synchronized (mLock) {
+ mHandler.removeMessages(MSG_ADD_BAR);
+ mHandler.obtainMessage(MSG_ADD_BAR, 0, 0, null).sendToTarget();
+ }
+ }
+
public void showScreenPinningRequest(int taskId) {
synchronized (mLock) {
mHand
写文章的时候板子不在身边,就找张的状态控制的效果是一样的。
/****/
/** Broadcast Action:Status bar show
*/
public static final String ACTION_ALWAYS_HIDE_BAR_CHANGE = "action.ALWAYS_HIDE_STATUSBAR_CHENAGE";
public static final String CNBOT_ACTION_ALWAYS_HIDE = "cnbot_always_hide_bar";
/**
* 系统的状态栏控制
* @param context
* @param hide 是否隐藏
*/
public static void changeBarHideStatus(Context context , boolean hide){
if (context == null){
return;
}
Intent i = new Intent(ACTION_ALWAYS_HIDE_BAR_CHANGE);
i.putExtra(CNBOT_ACTION_ALWAYS_HIDE,hide?1:0);
context.sendBroadcast(i);
}
举报