Loading core/res/res/layout/permission_confirmation_dialog.xmldeleted 100644 → 0 +0 −69 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- /* ** Copyright (c) 2013, The Linux Foundation. All rights reserved. ** Not a Contribution. ** ** Copyright 2012 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. */ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/parentPanel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="8dip" android:layout_marginRight="8dip" android:orientation="vertical"> <TextView android:id="@+id/permission_text" style="?android:attr/textAppearanceMedium" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="20dip" android:paddingRight="20dip" android:paddingTop="16dip" android:paddingBottom="16dip" /> <TableLayout android:id="@+id/permission_remember_layout" android:shrinkColumns="1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="16dip" android:paddingRight="16dip"> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" > <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="12dip" android:paddingLeft="8dip" > <CheckBox android:id="@+id/permission_remember_choice_checkbox" android:paddingTop="11dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> <TextView android:id="@+id/permission_remember_choice_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="18dip" android:text="@string/permission_remember_choice" /> </TableRow> </TableLayout> </LinearLayout> core/res/res/values-zh-rCN/strings.xml +0 −1 Original line number Diff line number Diff line Loading @@ -1669,7 +1669,6 @@ <string name="immersive_mode_confirmation" msgid="7227416894979047467">"从顶部向下滑动即可退出全屏模式。"</string> <!-- App Ops --> <string name="permission_remember_choice">记住</string> <string name="permission">权限</string> <string-array name="app_ops_labels"> <item>试图获取位置信息</item> Loading core/res/res/values/strings.xml +0 −2 Original line number Diff line number Diff line Loading @@ -4547,7 +4547,5 @@ <string name="stk_cc_ss_to_ussd">SS request is modified to USSD request.</string> <string name="stk_cc_ss_to_ss">SS request is modified to new SS request.</string> <!-- Text of the checkbox for the permission confirmation dialog to remember the user's choice. [CHAR LIMIT=40] --> <string name="permission_remember_choice">Remember</string> <string name="permission">Permission</string> </resources> core/res/res/values/symbols.xml +0 −5 Original line number Diff line number Diff line Loading @@ -224,10 +224,6 @@ <java-symbol type="id" name="pin_confirm_text" /> <java-symbol type="id" name="pin_error_message" /> <java-symbol type="id" name="timePickerLayout" /> <java-symbol type="id" name="permission_text" /> <java-symbol type="id" name="permission_remember_layout" /> <java-symbol type="id" name="permission_remember_choice_checkbox" /> <java-symbol type="id" name="permission_remember_choice_text" /> <java-symbol type="attr" name="actionModeShareDrawable" /> <java-symbol type="attr" name="alertDialogCenterButtons" /> Loading Loading @@ -1189,7 +1185,6 @@ <java-symbol type="layout" name="locale_picker_item" /> <java-symbol type="layout" name="media_controller" /> <java-symbol type="layout" name="overlay_display_window" /> <java-symbol type="layout" name="permission_confirmation_dialog" /> <java-symbol type="layout" name="preference" /> <java-symbol type="layout" name="preference_header_item" /> <java-symbol type="layout" name="preference_list_content" /> Loading services/java/com/android/server/PermissionDialog.java +2 −12 Original line number Diff line number Diff line Loading @@ -39,8 +39,6 @@ class PermissionDialog extends BasePermissionDialog { private final AppOpsService mService; private final String mPackageName; private final int mCode; private View mView; private CheckBox mChoice; private int mUid; final CharSequence[] mOpLabels; private Context mContext; Loading Loading @@ -83,18 +81,10 @@ class PermissionDialog extends BasePermissionDialog { | WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; getWindow().setAttributes(attrs); mView = getLayoutInflater().inflate( com.android.internal.R.layout.permission_confirmation_dialog, null); TextView tv = (TextView) mView.findViewById( com.android.internal.R.id.permission_text); mChoice = (CheckBox) mView.findViewById( com.android.internal.R.id.permission_remember_choice_checkbox); String name = getAppName(mPackageName); if(name == null) name = mPackageName; tv.setText(name + ": " + mOpLabels[mCode]); setView(mView); setMessage(name + ": " + mOpLabels[mCode]); // After the timeout, pretend the user clicked the quit button //mHandler.sendMessageDelayed( Loading @@ -121,7 +111,7 @@ class PermissionDialog extends BasePermissionDialog { private final Handler mHandler = new Handler() { public void handleMessage(Message msg) { int mode; boolean remember = mChoice.isChecked(); boolean remember = true; switch(msg.what) { case ACTION_ALLOWED: mode = AppOpsManager.MODE_ALLOWED; Loading Loading
core/res/res/layout/permission_confirmation_dialog.xmldeleted 100644 → 0 +0 −69 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- /* ** Copyright (c) 2013, The Linux Foundation. All rights reserved. ** Not a Contribution. ** ** Copyright 2012 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. */ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/parentPanel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="8dip" android:layout_marginRight="8dip" android:orientation="vertical"> <TextView android:id="@+id/permission_text" style="?android:attr/textAppearanceMedium" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="20dip" android:paddingRight="20dip" android:paddingTop="16dip" android:paddingBottom="16dip" /> <TableLayout android:id="@+id/permission_remember_layout" android:shrinkColumns="1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="16dip" android:paddingRight="16dip"> <TableRow android:layout_width="wrap_content" android:layout_height="wrap_content" > <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="12dip" android:paddingLeft="8dip" > <CheckBox android:id="@+id/permission_remember_choice_checkbox" android:paddingTop="11dip" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> <TextView android:id="@+id/permission_remember_choice_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="18dip" android:text="@string/permission_remember_choice" /> </TableRow> </TableLayout> </LinearLayout>
core/res/res/values-zh-rCN/strings.xml +0 −1 Original line number Diff line number Diff line Loading @@ -1669,7 +1669,6 @@ <string name="immersive_mode_confirmation" msgid="7227416894979047467">"从顶部向下滑动即可退出全屏模式。"</string> <!-- App Ops --> <string name="permission_remember_choice">记住</string> <string name="permission">权限</string> <string-array name="app_ops_labels"> <item>试图获取位置信息</item> Loading
core/res/res/values/strings.xml +0 −2 Original line number Diff line number Diff line Loading @@ -4547,7 +4547,5 @@ <string name="stk_cc_ss_to_ussd">SS request is modified to USSD request.</string> <string name="stk_cc_ss_to_ss">SS request is modified to new SS request.</string> <!-- Text of the checkbox for the permission confirmation dialog to remember the user's choice. [CHAR LIMIT=40] --> <string name="permission_remember_choice">Remember</string> <string name="permission">Permission</string> </resources>
core/res/res/values/symbols.xml +0 −5 Original line number Diff line number Diff line Loading @@ -224,10 +224,6 @@ <java-symbol type="id" name="pin_confirm_text" /> <java-symbol type="id" name="pin_error_message" /> <java-symbol type="id" name="timePickerLayout" /> <java-symbol type="id" name="permission_text" /> <java-symbol type="id" name="permission_remember_layout" /> <java-symbol type="id" name="permission_remember_choice_checkbox" /> <java-symbol type="id" name="permission_remember_choice_text" /> <java-symbol type="attr" name="actionModeShareDrawable" /> <java-symbol type="attr" name="alertDialogCenterButtons" /> Loading Loading @@ -1189,7 +1185,6 @@ <java-symbol type="layout" name="locale_picker_item" /> <java-symbol type="layout" name="media_controller" /> <java-symbol type="layout" name="overlay_display_window" /> <java-symbol type="layout" name="permission_confirmation_dialog" /> <java-symbol type="layout" name="preference" /> <java-symbol type="layout" name="preference_header_item" /> <java-symbol type="layout" name="preference_list_content" /> Loading
services/java/com/android/server/PermissionDialog.java +2 −12 Original line number Diff line number Diff line Loading @@ -39,8 +39,6 @@ class PermissionDialog extends BasePermissionDialog { private final AppOpsService mService; private final String mPackageName; private final int mCode; private View mView; private CheckBox mChoice; private int mUid; final CharSequence[] mOpLabels; private Context mContext; Loading Loading @@ -83,18 +81,10 @@ class PermissionDialog extends BasePermissionDialog { | WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS; getWindow().setAttributes(attrs); mView = getLayoutInflater().inflate( com.android.internal.R.layout.permission_confirmation_dialog, null); TextView tv = (TextView) mView.findViewById( com.android.internal.R.id.permission_text); mChoice = (CheckBox) mView.findViewById( com.android.internal.R.id.permission_remember_choice_checkbox); String name = getAppName(mPackageName); if(name == null) name = mPackageName; tv.setText(name + ": " + mOpLabels[mCode]); setView(mView); setMessage(name + ": " + mOpLabels[mCode]); // After the timeout, pretend the user clicked the quit button //mHandler.sendMessageDelayed( Loading @@ -121,7 +111,7 @@ class PermissionDialog extends BasePermissionDialog { private final Handler mHandler = new Handler() { public void handleMessage(Message msg) { int mode; boolean remember = mChoice.isChecked(); boolean remember = true; switch(msg.what) { case ACTION_ALLOWED: mode = AppOpsManager.MODE_ALLOWED; Loading