Loading packages/SystemUI/res/layout/operator_name.xml 0 → 100644 +31 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2017 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. --> <com.android.systemui.statusbar.AlphaOptimizedFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/operator_name_frame" android:layout_width="wrap_content" android:layout_height="match_parent" > <com.android.systemui.statusbar.OperatorNameView android:id="@+id/operator_name" android:layout_width="wrap_content" android:layout_height="match_parent" android:maxLength="20" android:gravity="center_vertical|start" android:textAppearance="?android:attr/textAppearanceSmall" android:singleLine="true" /> </com.android.systemui.statusbar.AlphaOptimizedFrameLayout> packages/SystemUI/res/layout/status_bar.xml +5 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,11 @@ android:paddingEnd="8dp" android:orientation="horizontal" > <ViewStub android:id="@+id/operator_name" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout="@layout/operator_name" /> <!-- The alpha of this area is controlled from both PhoneStatusBarTransitions and PhoneStatusBar (DISABLE_NOTIFICATION_ICONS). --> Loading packages/SystemUI/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -301,6 +301,9 @@ <!-- Enable the default volume dialog --> <bool name="enable_volume_ui">true</bool> <!-- Whether to show operator name in the status bar --> <bool name="config_showOperatorNameInStatusBar">false</bool> <!-- Duration of the full carrier network change icon animation. --> <integer name="carrier_network_change_anim_time">3000</integer> Loading packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +4 −0 Original line number Diff line number Diff line Loading @@ -1738,6 +1738,10 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { mFailedAttempts.delete(sCurrentUser); } public ServiceState getServiceState(int subId) { return mServiceStates.get(subId); } public int getFailedUnlockAttempts(int userId) { return mFailedAttempts.get(userId, 0); } Loading packages/SystemUI/src/com/android/systemui/DemoMode.java +1 −0 Original line number Diff line number Diff line Loading @@ -37,4 +37,5 @@ public interface DemoMode { public static final String COMMAND_STATUS = "status"; public static final String COMMAND_NOTIFICATIONS = "notifications"; public static final String COMMAND_VOLUME = "volume"; public static final String COMMAND_OPERATOR = "operator"; } Loading
packages/SystemUI/res/layout/operator_name.xml 0 → 100644 +31 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2017 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. --> <com.android.systemui.statusbar.AlphaOptimizedFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/operator_name_frame" android:layout_width="wrap_content" android:layout_height="match_parent" > <com.android.systemui.statusbar.OperatorNameView android:id="@+id/operator_name" android:layout_width="wrap_content" android:layout_height="match_parent" android:maxLength="20" android:gravity="center_vertical|start" android:textAppearance="?android:attr/textAppearanceSmall" android:singleLine="true" /> </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
packages/SystemUI/res/layout/status_bar.xml +5 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,11 @@ android:paddingEnd="8dp" android:orientation="horizontal" > <ViewStub android:id="@+id/operator_name" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout="@layout/operator_name" /> <!-- The alpha of this area is controlled from both PhoneStatusBarTransitions and PhoneStatusBar (DISABLE_NOTIFICATION_ICONS). --> Loading
packages/SystemUI/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -301,6 +301,9 @@ <!-- Enable the default volume dialog --> <bool name="enable_volume_ui">true</bool> <!-- Whether to show operator name in the status bar --> <bool name="config_showOperatorNameInStatusBar">false</bool> <!-- Duration of the full carrier network change icon animation. --> <integer name="carrier_network_change_anim_time">3000</integer> Loading
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +4 −0 Original line number Diff line number Diff line Loading @@ -1738,6 +1738,10 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { mFailedAttempts.delete(sCurrentUser); } public ServiceState getServiceState(int subId) { return mServiceStates.get(subId); } public int getFailedUnlockAttempts(int userId) { return mFailedAttempts.get(userId, 0); } Loading
packages/SystemUI/src/com/android/systemui/DemoMode.java +1 −0 Original line number Diff line number Diff line Loading @@ -37,4 +37,5 @@ public interface DemoMode { public static final String COMMAND_STATUS = "status"; public static final String COMMAND_NOTIFICATIONS = "notifications"; public static final String COMMAND_VOLUME = "volume"; public static final String COMMAND_OPERATOR = "operator"; }