diff options
127 files changed, 2637 insertions, 2417 deletions
diff --git a/api/current.txt b/api/current.txt index 8d12a56..5eaf380 100644 --- a/api/current.txt +++ b/api/current.txt @@ -1993,23 +1993,37 @@ package android.accessibilityservice { public abstract class AccessibilityService extends android.app.Service { ctor public AccessibilityService(); + method public android.view.accessibility.AccessibilityNodeInfo getRootInActiveWindow(); method public final android.accessibilityservice.AccessibilityServiceInfo getServiceInfo(); method public abstract void onAccessibilityEvent(android.view.accessibility.AccessibilityEvent); method public final android.os.IBinder onBind(android.content.Intent); method protected void onGesture(int); method public abstract void onInterrupt(); method protected void onServiceConnected(); + method public final boolean performGlobalAction(int); method public final void setServiceInfo(android.accessibilityservice.AccessibilityServiceInfo); field public static final int GESTURE_CLOCKWISE_CIRCLE = 9; // 0x9 field public static final int GESTURE_COUNTER_CLOCKWISE_CIRCLE = 10; // 0xa field public static final int GESTURE_SWIPE_DOWN = 2; // 0x2 + field public static final int GESTURE_SWIPE_DOWN_AND_LEFT = 17; // 0x11 + field public static final int GESTURE_SWIPE_DOWN_AND_RIGHT = 18; // 0x12 field public static final int GESTURE_SWIPE_DOWN_AND_UP = 8; // 0x8 field public static final int GESTURE_SWIPE_LEFT = 3; // 0x3 + field public static final int GESTURE_SWIPE_LEFT_AND_DOWN = 12; // 0xc field public static final int GESTURE_SWIPE_LEFT_AND_RIGHT = 5; // 0x5 + field public static final int GESTURE_SWIPE_LEFT_AND_UP = 11; // 0xb field public static final int GESTURE_SWIPE_RIGHT = 4; // 0x4 + field public static final int GESTURE_SWIPE_RIGHT_AND_DOWN = 14; // 0xe field public static final int GESTURE_SWIPE_RIGHT_AND_LEFT = 6; // 0x6 + field public static final int GESTURE_SWIPE_RIGHT_AND_UP = 13; // 0xd field public static final int GESTURE_SWIPE_UP = 1; // 0x1 field public static final int GESTURE_SWIPE_UP_AND_DOWN = 7; // 0x7 + field public static final int GESTURE_SWIPE_UP_AND_LEFT = 15; // 0xf + field public static final int GESTURE_SWIPE_UP_AND_RIGHT = 16; // 0x10 + field public static final int GLOBAL_ACTION_BACK = 1; // 0x1 + field public static final int GLOBAL_ACTION_HOME = 2; // 0x2 + field public static final int GLOBAL_ACTION_NOTIFICATIONS = 4; // 0x4 + field public static final int GLOBAL_ACTION_RECENTS = 3; // 0x3 field public static final java.lang.String SERVICE_INTERFACE = "android.accessibilityservice.AccessibilityService"; field public static final java.lang.String SERVICE_META_DATA = "android.accessibilityservice"; } @@ -3754,7 +3768,6 @@ package android.app { method public android.app.Notification.Builder setDefaults(int); method public android.app.Notification.Builder setDeleteIntent(android.app.PendingIntent); method public android.app.Notification.Builder setFullScreenIntent(android.app.PendingIntent, boolean); - method public android.app.Notification.Builder setIntruderActionsShowText(boolean); method public android.app.Notification.Builder setLargeIcon(android.graphics.Bitmap); method public android.app.Notification.Builder setLights(int, int, int); method public android.app.Notification.Builder setNumber(int); @@ -3770,7 +3783,6 @@ package android.app { method public android.app.Notification.Builder setTicker(java.lang.CharSequence); method public android.app.Notification.Builder setTicker(java.lang.CharSequence, android.widget.RemoteViews); method public android.app.Notification.Builder setUsesChronometer(boolean); - method public android.app.Notification.Builder setUsesIntruderAlert(boolean); method public android.app.Notification.Builder setVibrate(long[]); method public android.app.Notification.Builder setWhen(long); } @@ -10960,7 +10972,7 @@ package android.media { method public java.nio.ByteBuffer[] getOutputBuffers(); method public final java.util.Map<java.lang.String, java.lang.Object> getOutputFormat(); method public final void queueInputBuffer(int, int, int, long, int); - method public final void queueSecureInputBuffer(int, int, int[], int[], int, byte[], byte[], int, long, int); + method public final void queueSecureInputBuffer(int, int, android.media.MediaCodec.CryptoInfo, long, int); method public final void release(); method public final void releaseOutputBuffer(int, boolean); method public final void start(); @@ -10985,6 +10997,17 @@ package android.media { field public int size; } + public static final class MediaCodec.CryptoInfo { + ctor public MediaCodec.CryptoInfo(); + method public void set(int, int[], int[], byte[], byte[], int); + field public byte[] iv; + field public byte[] key; + field public int mode; + field public int[] numBytesOfClearData; + field public int[] numBytesOfEncryptedData; + field public int numSubSamples; + } + public final class MediaCodecList { method public static final int countCodecs(); method public static final android.media.MediaCodecList.CodecCapabilities getCodecCapabilities(int, java.lang.String); @@ -11016,6 +11039,7 @@ package android.media { ctor public MediaExtractor(); method public boolean advance(); method public int countTracks(); + method public boolean getSampleCryptoInfo(android.media.MediaCodec.CryptoInfo); method public int getSampleFlags(); method public long getSampleTime(); method public int getSampleTrackIndex(); @@ -17819,9 +17843,11 @@ package android.provider { field public static final java.lang.String DATE_ADDED = "date_added"; field public static final java.lang.String DATE_MODIFIED = "date_modified"; field public static final java.lang.String DISPLAY_NAME = "_display_name"; + field public static final java.lang.String HEIGHT = "height"; field public static final java.lang.String MIME_TYPE = "mime_type"; field public static final java.lang.String SIZE = "_size"; field public static final java.lang.String TITLE = "title"; + field public static final java.lang.String WIDTH = "width"; } public static final class MediaStore.Video { @@ -24994,12 +25020,13 @@ package android.view.accessibility { method public void setSource(android.view.View, int); method public void setText(java.lang.CharSequence); method public void writeToParcel(android.os.Parcel, int); - field public static final int ACTION_ACCESSIBILITY_FOCUS = 16; // 0x10 - field public static final int ACTION_CLEAR_ACCESSIBILITY_FOCUS = 32; // 0x20 + field public static final int ACTION_ACCESSIBILITY_FOCUS = 64; // 0x40 + field public static final int ACTION_CLEAR_ACCESSIBILITY_FOCUS = 128; // 0x80 field public static final int ACTION_CLEAR_FOCUS = 2; // 0x2 field public static final int ACTION_CLEAR_SELECTION = 8; // 0x8 - field public static final int ACTION_CLICK = 64; // 0x40 + field public static final int ACTION_CLICK = 16; // 0x10 field public static final int ACTION_FOCUS = 1; // 0x1 + field public static final int ACTION_LONG_CLICK = 32; // 0x20 field public static final int ACTION_SELECT = 4; // 0x4 field public static final android.os.Parcelable.Creator CREATOR; field public static final int FOCUS_ACCESSIBILITY = 2; // 0x2 diff --git a/core/java/android/accessibilityservice/AccessibilityService.java b/core/java/android/accessibilityservice/AccessibilityService.java index 3da35d3..4e340c0 100644 --- a/core/java/android/accessibilityservice/AccessibilityService.java +++ b/core/java/android/accessibilityservice/AccessibilityService.java @@ -259,13 +259,51 @@ public abstract class AccessibilityService extends Service { public static final int GESTURE_COUNTER_CLOCKWISE_CIRCLE = 10; /** + * The user has performed a left and up gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_LEFT_AND_UP = 11; + + /** + * The user has performed a left and down gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_LEFT_AND_DOWN = 12; + + /** + * The user has performed a right and up gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_RIGHT_AND_UP = 13; + + /** + * The user has performed a right and down gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_RIGHT_AND_DOWN = 14; + + /** + * The user has performed an up and left gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_UP_AND_LEFT = 15; + + /** + * The user has performed an up and right gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_UP_AND_RIGHT = 16; + + /** + * The user has performed an down and left gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_DOWN_AND_LEFT = 17; + + /** + * The user has performed an down and right gesture on the touch screen. + */ + public static final int GESTURE_SWIPE_DOWN_AND_RIGHT = 18; + + /** * The {@link Intent} that must be declared as handled by the service. */ public static final String SERVICE_INTERFACE = "android.accessibilityservice.AccessibilityService"; - private static final int UNDEFINED = -1; - /** * Name under which an AccessibilityService component publishes information * about itself. This meta-data must reference an XML resource containing an @@ -284,6 +322,28 @@ public abstract class AccessibilityService extends Service { */ public static final String SERVICE_META_DATA = "android.accessibilityservice"; + /** + * Action to go back. + */ + public static final int GLOBAL_ACTION_BACK = 1; + + /** + * Action to go home. + */ + public static final int GLOBAL_ACTION_HOME = 2; + + /** + * Action to open the recents. + */ + public static final int GLOBAL_ACTION_RECENTS = 3; + + /** + * Action to open the notifications. + */ + public static final int GLOBAL_ACTION_NOTIFICATIONS = 4; + + private static final int UNDEFINED = -1; + private static final String LOG_TAG = "AccessibilityService"; interface Callbacks { @@ -344,23 +404,39 @@ public abstract class AccessibilityService extends Service { protected void onGesture(int gestureId) { // TODO: Describe the default gesture processing in the javaDoc once it is finalized. + // Global actions. + switch (gestureId) { + case GESTURE_SWIPE_DOWN_AND_LEFT: { + performGlobalAction(GLOBAL_ACTION_BACK); + } return; + case GESTURE_SWIPE_DOWN_AND_RIGHT: { + performGlobalAction(GLOBAL_ACTION_HOME); + } return; + case GESTURE_SWIPE_UP_AND_LEFT: { + performGlobalAction(GLOBAL_ACTION_RECENTS); + } return; + case GESTURE_SWIPE_UP_AND_RIGHT: { + performGlobalAction(GLOBAL_ACTION_NOTIFICATIONS); + } return; + } + // Cache the id to avoid locking final int connectionId = mConnectionId; if (connectionId == UNDEFINED) { throw new IllegalStateException("AccessibilityService not connected." + " Did you receive a call of onServiceConnected()?"); } - AccessibilityNodeInfo root = AccessibilityInteractionClient.getInstance() - .findAccessibilityNodeInfoByAccessibilityId(connectionId, - AccessibilityNodeInfo.ACTIVE_WINDOW_ID, AccessibilityNodeInfo.ROOT_NODE_ID, - AccessibilityNodeInfo.FLAG_PREFETCH_DESCENDANTS); + AccessibilityNodeInfo root = getRootInActiveWindow(); if (root == null) { return; } - AccessibilityNodeInfo current = root.findFocus(View.FOCUS_ACCESSIBILITY); + + AccessibilityNodeInfo current = root.findFocus(AccessibilityNodeInfo.FOCUS_ACCESSIBILITY); if (current == null) { current = root; } + + // Local actions. AccessibilityNodeInfo next = null; switch (gestureId) { case GESTURE_SWIPE_UP: { @@ -402,6 +478,46 @@ public abstract class AccessibilityService extends Service { } /** + * Gets the root node in the currently active window if this service + * can retrieve window content. + * + * @return The root node if this service can retrieve window content. + */ + public AccessibilityNodeInfo getRootInActiveWindow() { + return AccessibilityInteractionClient.getInstance() + .findAccessibilityNodeInfoByAccessibilityId(mConnectionId, + AccessibilityNodeInfo.ACTIVE_WINDOW_ID, AccessibilityNodeInfo.ROOT_NODE_ID, + AccessibilityNodeInfo.FLAG_PREFETCH_DESCENDANTS); + } + + /** + * Performs a global action. Such an action can be performed + * at any moment regardless of the current application or user + * location in that application. For example going back, going + * home, opening recents, etc. + * + * @param action The action to perform. + * @return Whether the action was successfully performed. + * + * @see #GLOBAL_ACTION_BACK + * @see #GLOBAL_ACTION_HOME + * @see #GLOBAL_ACTION_NOTIFICATIONS + * @see #GLOBAL_ACTION_RECENTS + */ + public final boolean performGlobalAction(int action) { + IAccessibilityServiceConnection connection = + AccessibilityInteractionClient.getInstance().getConnection(mConnectionId); + if (connection != null) { + try { + return connection.perfromGlobalAction(action); + } catch (RemoteException re) { + Log.w(LOG_TAG, "Error while calling performGlobalAction", re); + } + } + return false; + } + + /** * Gets the an {@link AccessibilityServiceInfo} describing this * {@link AccessibilityService}. This method is useful if one wants * to change some of the dynamically configurable properties at diff --git a/core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl b/core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl index 30da9db..1bd5387 100644 --- a/core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl +++ b/core/java/android/accessibilityservice/IAccessibilityServiceConnection.aidl @@ -160,4 +160,12 @@ interface IAccessibilityServiceConnection { * @return The associated accessibility service info. */ AccessibilityServiceInfo getServiceInfo(); + + /** + * Performs a global action, such as going home, going back, etc. + * + * @param action The action to perform. + * @return Whether the action was performed. + */ + boolean perfromGlobalAction(int action); } diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 1c820dc..35bc7ff 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -549,7 +549,7 @@ import java.util.HashMap; * super.onCreate(savedInstanceState); * * SharedPreferences mPrefs = getSharedPreferences(); - * mCurViewMode = mPrefs.getInt("view_mode" DAY_VIEW_MODE); + * mCurViewMode = mPrefs.getInt("view_mode", DAY_VIEW_MODE); * } * * protected void onPause() { diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index 55f29e6..0713127 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java @@ -347,9 +347,9 @@ public class DownloadManager { private CharSequence mTitle; private CharSequence mDescription; private String mMimeType; - private boolean mRoamingAllowed = true; private int mAllowedNetworkTypes = ~0; // default to all network types allowed - private boolean mAllowedOverMetered = true; + private boolean mRoamingAllowed = true; + private boolean mMeteredAllowed = true; private boolean mIsVisibleInDownloadsUi = true; private boolean mScannable = false; private boolean mUseSystemCache = false; @@ -624,17 +624,6 @@ public class DownloadManager { } /** - * Set whether this download may proceed over a metered network - * connection. By default, metered networks are allowed. - * - * @see ConnectivityManager#isActiveNetworkMetered() - */ - public Request setAllowedOverMetered(boolean allow) { - mAllowedOverMetered = allow; - return this; - } - - /** * Set whether this download may proceed over a roaming connection. By default, roaming is * allowed. * @param allowed whether to allow a roaming connection to be used @@ -646,6 +635,17 @@ public class DownloadManager { } /** + * Set whether this download may proceed over a metered network + * connection. By default, metered networks are allowed. + * + * @see ConnectivityManager#isActiveNetworkMetered() + */ + public Request setAllowedOverMetered(boolean allow) { + mMeteredAllowed = allow; + return this; + } + + /** * Set whether this download should be displayed in the system's Downloads UI. True by * default. * @param isVisible whether to display this download in the Downloads UI @@ -687,10 +687,10 @@ public class DownloadManager { putIfNonNull(values, Downloads.Impl.COLUMN_DESCRIPTION, mDescription); putIfNonNull(values, Downloads.Impl.COLUMN_MIME_TYPE, mMimeType); - // TODO: add COLUMN_ALLOW_METERED and persist values.put(Downloads.Impl.COLUMN_VISIBILITY, mNotificationVisibility); values.put(Downloads.Impl.COLUMN_ALLOWED_NETWORK_TYPES, mAllowedNetworkTypes); values.put(Downloads.Impl.COLUMN_ALLOW_ROAMING, mRoamingAllowed); + values.put(Downloads.Impl.COLUMN_ALLOW_METERED, mMeteredAllowed); values.put(Downloads.Impl.COLUMN_IS_VISIBLE_IN_DOWNLOADS_UI, mIsVisibleInDownloadsUi); return values; @@ -1340,9 +1340,6 @@ public class DownloadManager { case Downloads.Impl.STATUS_FILE_ALREADY_EXISTS_ERROR: return ERROR_FILE_ALREADY_EXISTS; - case Downloads.Impl.STATUS_BLOCKED: - return ERROR_BLOCKED; - default: return ERROR_UNKNOWN; } diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 22d84f0..b581f99 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -190,12 +190,6 @@ public class Notification implements Parcelable public RemoteViews contentView; /** - * The view that will represent this notification in the pop-up "intruder alert" dialog. - * @hide - */ - public RemoteViews intruderView; - - /** * A large-format version of {@link #contentView}, giving the Notification an * opportunity to show more detail. The system UI may choose to show this * instead of the normal content view at its discretion. @@ -590,9 +584,6 @@ public class Notification implements Parcelable actions = parcel.createTypedArray(Action.CREATOR); if (parcel.readInt() != 0) { - intruderView = RemoteViews.CREATOR.createFromParcel(parcel); - } - if (parcel.readInt() != 0) { bigContentView = RemoteViews.CREATOR.createFromParcel(parcel); } } @@ -658,9 +649,6 @@ public class Notification implements Parcelable for(int i=0; i<this.actions.length; i++) { that.actions[i] = this.actions[i].clone(); } - if (this.intruderView != null) { - that.intruderView = this.intruderView.clone(); - } if (this.bigContentView != null) { that.bigContentView = this.bigContentView.clone(); } @@ -755,13 +743,6 @@ public class Notification implements Parcelable parcel.writeTypedArray(actions, 0); - if (intruderView != null) { - parcel.writeInt(1); - intruderView.writeToParcel(parcel, 0); - } else { - parcel.writeInt(0); - } - if (bigContentView != null) { parcel.writeInt(1); bigContentView.writeToParcel(parcel, 0); @@ -942,8 +923,6 @@ public class Notification implements Parcelable private Bundle mExtras; private int mPriority; private ArrayList<Action> mActions = new ArrayList<Action>(3); - private boolean mCanHasIntruder; - private boolean mIntruderActionsShowText; private boolean mUseChronometer; /** @@ -1349,38 +1328,6 @@ public class Notification implements Parcelable return this; } - /** - * Specify whether this notification should pop up as an - * "intruder alert" (a small window that shares the screen with the - * current activity). This sort of notification is (as the name implies) - * very intrusive, so use it sparingly for notifications that require - * the user's attention. - * - * Notes: - * <ul> - * <li>Intruder alerts only show when the screen is on.</li> - * <li>Intruder alerts take precedence over fullScreenIntents.</li> - * </ul> - * - * @param intrude Whether to pop up an intruder alert (default false). - */ - public Builder setUsesIntruderAlert(boolean intrude) { - mCanHasIntruder = intrude; - return this; - } - - /** - * Control text on intruder alert action buttons. By default, action - * buttons in intruders do not show textual labels. - * - * @param showActionText Whether to show text labels beneath action - * icons (default false). - */ - public Builder setIntruderActionsShowText(boolean showActionText) { - mIntruderActionsShowText = showActionText; - return this; - } - private void setFlag(int mask, boolean value) { if (value) { mFlags |= mask; @@ -1506,45 +1453,6 @@ public class Notification implements Parcelable return applyStandardTemplateWithActions(R.layout.notification_template_base); } - private RemoteViews makeIntruderView(boolean showLabels) { - RemoteViews intruderView = new RemoteViews(mContext.getPackageName(), - R.layout.notification_intruder_content); - if (mLargeIcon != null) { - intruderView.setImageViewBitmap(R.id.icon, mLargeIcon); - intruderView.setViewVisibility(R.id.icon, View.VISIBLE); - } else if (mSmallIcon != 0) { - intruderView.setImageViewResource(R.id.icon, mSmallIcon); - intruderView.setViewVisibility(R.id.icon, View.VISIBLE); - } else { - intruderView.setViewVisibility(R.id.icon, View.GONE); - } - if (mContentTitle != null) { - intruderView.setTextViewText(R.id.title, mContentTitle); - } - if (mContentText != null) { - intruderView.setTextViewText(R.id.text, mContentText); - } - if (mActions.size() > 0) { - intruderView.setViewVisibility(R.id.actions, View.VISIBLE); - int N = mActions.size(); - if (N>3) N=3; - final int[] BUTTONS = { R.id.action0, R.id.action1, R.id.action2 }; - for (int i=0; i<N; i++) { - final Action action = mActions.get(i); - final int buttonId = BUTTONS[i]; - - intruderView.setViewVisibility(buttonId, View.VISIBLE); - intruderView.setTextViewText(buttonId, showLabels ? action.title : null); - intruderView.setTextViewCompoundDrawables(buttonId, 0, action.icon, 0, 0); - intruderView.setContentDescription(buttonId, action.title); - intruderView.setOnClickPendingIntent(buttonId, action.actionIntent); - } - } else { - intruderView.setViewVisibility(R.id.actions, View.GONE); - } - return intruderView; - } - private RemoteViews generateActionButton(Action action) { RemoteViews button = new RemoteViews(mContext.getPackageName(), R.layout.notification_action); button.setTextViewCompoundDrawables(R.id.action0, action.icon, 0, 0, 0); @@ -1579,9 +1487,6 @@ public class Notification implements Parcelable n.ledOffMS = mLedOffMs; n.defaults = mDefaults; n.flags = mFlags; - if (mCanHasIntruder) { - n.intruderView = makeIntruderView(mIntruderActionsShowText); - } n.bigContentView = makeBigContentView(); if (mLedOnMs != 0 && mLedOffMs != 0) { n.flags |= FLAG_SHOW_LIGHTS; diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java index 640b47b..4fb710e 100644 --- a/core/java/android/hardware/Camera.java +++ b/core/java/android/hardware/Camera.java @@ -234,48 +234,6 @@ public class Camera { }; /** - * Creates a new Camera object to access a particular hardware camera. - * - * <p>When <code>force</code> is set to false, this will throw an exception - * if the same camera is already opened by other clients. If true, the other - * client will be disconnected from the camera they opened. If the device - * can only support one camera running at a time, all camera-using clients - * will be disconnected from their cameras. - * - * <p>A camera being held by an application can be taken away by other - * applications at any time. Before the camera is taken, applications will - * get {@link #CAMERA_ERROR_RELEASED} and have some time to clean up. Apps - * receiving this callback must immediately stop video recording and then - * call {@link #release()} on their camera object. Otherwise, it will be - * released by the frameworks in a short time. After receiving - * CAMERA_ERROR_RELEASED, apps should not call any method except <code> - * release</code> and {@link #isReleased()}. After a camera is taken away, - * all methods will throw exceptions except <code>isReleased</code> and - * <code>release</code>. Apps can use <code>isReleased</code> to see if the - * camera has been taken away. If the camera is taken away, the apps can - * silently finish themselves or show a dialog. - * - * <p>Applications with android.permission.KEEP_CAMERA can request to keep - * the camera. That is, the camera will not be taken by other applications - * while it is opened. The permission can only be obtained by trusted - * platform applications, such as those implementing lock screen security - * features. - * - * @param cameraId the hardware camera to access, between 0 and - * {@link #getNumberOfCameras()}-1. - * @param force true to take the ownership from the existing client if the - * camera has been opened by other clients. - * @param keep true if the applications do not want other apps to take the - * camera. Only the apps with android.permission.KEEP_CAMERA can keep - * the camera. - * @return a new Camera object, connected, locked and ready for use. - * @hide - */ - public static Camera open(int cameraId, boolean force, boolean keep) { - return new Camera(cameraId, force, keep); - } - - /** * Creates a new Camera object to access a particular hardware camera. If * the same camera is opened by other applications, this will throw a * RuntimeException. @@ -305,7 +263,7 @@ public class Camera { * @see android.app.admin.DevicePolicyManager#getCameraDisabled(android.content.ComponentName) */ public static Camera open(int cameraId) { - return new Camera(cameraId, false, false); + return new Camera(cameraId); } /** @@ -320,13 +278,13 @@ public class Camera { for (int i = 0; i < numberOfCameras; i++) { getCameraInfo(i, cameraInfo); if (cameraInfo.facing == CameraInfo.CAMERA_FACING_BACK) { - return new Camera(i, false, false); + return new Camera(i); } } return null; } - Camera(int cameraId, boolean force, boolean keep) { + Camera(int cameraId) { mShutterCallback = null; mRawImageCallback = null; mJpegCallback = null; @@ -343,7 +301,7 @@ public class Camera { mEventHandler = null; } - native_setup(new WeakReference<Camera>(this), cameraId, force, keep); + native_setup(new WeakReference<Camera>(this), cameraId); } /** @@ -356,8 +314,7 @@ public class Camera { release(); } - private native final void native_setup(Object camera_this, int cameraId, - boolean force, boolean keep); + private native final void native_setup(Object camera_this, int cameraId); private native final void native_release(); @@ -372,18 +329,6 @@ public class Camera { } /** - * Whether the camera is released. When any camera method throws an - * exception, applications can use this to check whether the camera has been - * taken by other clients. If true, it means other clients have taken the - * camera. The applications can silently finish themselves or show a dialog. - * - * @return whether the camera is released. - * @see #open(int, boolean, boolean) - * @hide - */ - public native final boolean isReleased(); - - /** * Unlocks the camera to allow another process to access it. * Normally, the camera is locked to the process with an active Camera * object until {@link #release()} is called. To allow rapid handoff @@ -1377,17 +1322,6 @@ public class Camera { public static final int CAMERA_ERROR_UNKNOWN = 1; /** - * Camera was released because another client has opened the camera. The - * application should call {@link #release()} after getting this. The apps - * should not call any method except <code>release</code> and {@link #isReleased()} - * after this. - * - * @see Camera.ErrorCallback - * @hide - */ - public static final int CAMERA_ERROR_RELEASED = 2; - - /** * Media server died. In this case, the application must release the * Camera object and instantiate a new one. * @see Camera.ErrorCallback diff --git a/core/java/android/os/Environment.java b/core/java/android/os/Environment.java index 11f9445..f7f0263 100644 --- a/core/java/android/os/Environment.java +++ b/core/java/android/os/Environment.java @@ -113,19 +113,16 @@ public class Environment { = getDirectory("ANDROID_SECURE_DATA", "/data/secure"); private static final File EXTERNAL_STORAGE_DIRECTORY - = getDirectory("EXTERNAL_STORAGE", "/mnt/sdcard"); + = getDirectory("EXTERNAL_STORAGE", "/storage/sdcard0"); - private static final File EXTERNAL_STORAGE_ANDROID_DATA_DIRECTORY - = new File (new File(getDirectory("EXTERNAL_STORAGE", "/mnt/sdcard"), - "Android"), "data"); + private static final File EXTERNAL_STORAGE_ANDROID_DATA_DIRECTORY = new File(new File( + getDirectory("EXTERNAL_STORAGE", "/storage/sdcard0"), "Android"), "data"); - private static final File EXTERNAL_STORAGE_ANDROID_MEDIA_DIRECTORY - = new File (new File(getDirectory("EXTERNAL_STORAGE", "/mnt/sdcard"), - "Android"), "media"); + private static final File EXTERNAL_STORAGE_ANDROID_MEDIA_DIRECTORY = new File(new File( + getDirectory("EXTERNAL_STORAGE", "/storage/sdcard0"), "Android"), "media"); - private static final File EXTERNAL_STORAGE_ANDROID_OBB_DIRECTORY - = new File (new File(getDirectory("EXTERNAL_STORAGE", "/mnt/sdcard"), - "Android"), "obb"); + private static final File EXTERNAL_STORAGE_ANDROID_OBB_DIRECTORY = new File(new File( + getDirectory("EXTERNAL_STORAGE", "/storage/sdcard0"), "Android"), "obb"); private static final File DOWNLOAD_CACHE_DIRECTORY = getDirectory("DOWNLOAD_CACHE", "/cache"); diff --git a/core/java/android/provider/Downloads.java b/core/java/android/provider/Downloads.java index cd8d51f..31ad12b 100644 --- a/core/java/android/provider/Downloads.java +++ b/core/java/android/provider/Downloads.java @@ -329,6 +329,14 @@ public final class Downloads { public static final String COLUMN_IS_PUBLIC_API = "is_public_api"; /** + * The name of the column holding a bitmask of allowed network types. This is only used for + * public API downloads. + * <P>Type: INTEGER</P> + * <P>Owner can Init/Read</P> + */ + public static final String COLUMN_ALLOWED_NETWORK_TYPES = "allowed_network_types"; + + /** * The name of the column indicating whether roaming connections can be used. This is only * used for public API downloads. * <P>Type: BOOLEAN</P> @@ -337,12 +345,12 @@ public final class Downloads { public static final String COLUMN_ALLOW_ROAMING = "allow_roaming"; /** - * The name of the column holding a bitmask of allowed network types. This is only used for - * public API downloads. - * <P>Type: INTEGER</P> + * The name of the column indicating whether metered connections can be used. This is only + * used for public API downloads. + * <P>Type: BOOLEAN</P> * <P>Owner can Init/Read</P> */ - public static final String COLUMN_ALLOWED_NETWORK_TYPES = "allowed_network_types"; + public static final String COLUMN_ALLOW_METERED = "allow_metered"; /** * Whether or not this download should be displayed in the system's Downloads UI. Defaults @@ -701,7 +709,10 @@ public final class Downloads { * blocked by {@link NetworkPolicyManager}. * * @hide + * @deprecated since behavior now uses + * {@link #STATUS_WAITING_FOR_NETWORK} */ + @Deprecated public static final int STATUS_BLOCKED = 498; /** {@hide} */ diff --git a/core/java/android/provider/MediaStore.java b/core/java/android/provider/MediaStore.java index 38945c2..79d0144 100644 --- a/core/java/android/provider/MediaStore.java +++ b/core/java/android/provider/MediaStore.java @@ -306,13 +306,11 @@ public final class MediaStore { /** * The width of the image/video in pixels. - * @hide */ public static final String WIDTH = "width"; /** * The height of the image/video in pixels. - * @hide */ public static final String HEIGHT = "height"; } diff --git a/core/java/android/view/AccessibilityInteractionController.java b/core/java/android/view/AccessibilityInteractionController.java index 6c1a6bf..54c62ee 100644 --- a/core/java/android/view/AccessibilityInteractionController.java +++ b/core/java/android/view/AccessibilityInteractionController.java @@ -52,13 +52,16 @@ final class AccessibilityInteractionController { private ArrayList<AccessibilityNodeInfo> mTempAccessibilityNodeInfoList = new ArrayList<AccessibilityNodeInfo>(); - private final Handler mHandler = new PrivateHandler(); + private final Handler mHandler; private final ViewRootImpl mViewRootImpl; private final AccessibilityNodePrefetcher mPrefetcher; public AccessibilityInteractionController(ViewRootImpl viewRootImpl) { + // mView is never null - the caller has already checked. + Looper looper = viewRootImpl.mView.mContext.getMainLooper(); + mHandler = new PrivateHandler(looper); mViewRootImpl = viewRootImpl; mPrefetcher = new AccessibilityNodePrefetcher(); } @@ -846,8 +849,8 @@ final class AccessibilityInteractionController { private final static int MSG_FIND_FOCUS = 5; private final static int MSG_FOCUS_SEARCH = 6; - public PrivateHandler() { - super(Looper.getMainLooper()); + public PrivateHandler(Looper looper) { + super(looper); } @Override diff --git a/core/java/android/view/KeyCharacterMap.java b/core/java/android/view/KeyCharacterMap.java index 12d7b12..1c61c6c 100644 --- a/core/java/android/view/KeyCharacterMap.java +++ b/core/java/android/view/KeyCharacterMap.java @@ -24,6 +24,7 @@ import android.util.SparseIntArray; import android.hardware.input.InputManager; import java.lang.Character; +import java.text.Normalizer; /** * Describes the keys provided by a keyboard device and their associated labels. @@ -135,6 +136,106 @@ public class KeyCharacterMap implements Parcelable { */ public static final int MODIFIER_BEHAVIOR_CHORDED_OR_TOGGLED = 1; + /* + * This bit will be set in the return value of {@link #get(int, int)} if the + * key is a "dead key." + */ + public static final int COMBINING_ACCENT = 0x80000000; + + /** + * Mask the return value from {@link #get(int, int)} with this value to get + * a printable representation of the accent character of a "dead key." + */ + public static final int COMBINING_ACCENT_MASK = 0x7FFFFFFF; + + /* Characters used to display placeholders for dead keys. */ + private static final int ACCENT_ACUTE = '\u00B4'; + private static final int ACCENT_BREVE = '\u02D8'; + private static final int ACCENT_CARON = '\u02C7'; + private static final int ACCENT_CEDILLA = '\u00B8'; + private static final int ACCENT_COMMA_ABOVE = '\u1FBD'; + private static final int ACCENT_COMMA_ABOVE_RIGHT = '\u02BC'; + private static final int ACCENT_DOT_ABOVE = '\u02D9'; + private static final int ACCENT_DOUBLE_ACUTE = '\u02DD'; + private static final int ACCENT_GRAVE = '\u02CB'; + private static final int ACCENT_CIRCUMFLEX = '\u02C6'; + private static final int ACCENT_MACRON = '\u00AF'; + private static final int ACCENT_MACRON_BELOW = '\u02CD'; + private static final int ACCENT_OGONEK = '\u02DB'; + private static final int ACCENT_REVERSED_COMMA_ABOVE = '\u02BD'; + private static final int ACCENT_RING_ABOVE = '\u02DA'; + private static final int ACCENT_TILDE = '\u02DC'; + private static final int ACCENT_TURNED_COMMA_ABOVE = '\u02BB'; + private static final int ACCENT_UMLAUT = '\u00A8'; + + /* Legacy dead key display characters used in previous versions of the API. + * We still support these characters by mapping them to their non-legacy version. */ + private static final int ACCENT_GRAVE_LEGACY = '`'; + private static final int ACCENT_CIRCUMFLEX_LEGACY = '^'; + private static final int ACCENT_TILDE_LEGACY = '~'; + + /** + * Maps Unicode combining diacritical to display-form dead key. + */ + private static final SparseIntArray sCombiningToAccent = new SparseIntArray(); + private static final SparseIntArray sAccentToCombining = new SparseIntArray(); + static { + addCombining('\u0300', ACCENT_GRAVE); + addCombining('\u0301', ACCENT_ACUTE); + addCombining('\u0302', ACCENT_CIRCUMFLEX); + addCombining('\u0303', ACCENT_TILDE); + addCombining('\u0304', ACCENT_MACRON); + addCombining('\u0306', ACCENT_BREVE); + addCombining('\u0307', ACCENT_DOT_ABOVE); + addCombining('\u0308', ACCENT_UMLAUT); + //addCombining('\u0309', ACCENT_HOOK_ABOVE); + addCombining('\u030A', ACCENT_RING_ABOVE); + addCombining('\u030B', ACCENT_DOUBLE_ACUTE); + addCombining('\u030C', ACCENT_CARON); + //addCombining('\u030D', ACCENT_VERTICAL_LINE_ABOVE); + //addCombining('\u030E', ACCENT_DOUBLE_VERTICAL_LINE_ABOVE); + //addCombining('\u030F', ACCENT_DOUBLE_GRAVE); + //addCombining('\u0310', ACCENT_CANDRABINDU); + //addCombining('\u0311', ACCENT_INVERTED_BREVE); + addCombining('\u0312', ACCENT_TURNED_COMMA_ABOVE); + addCombining('\u0313', ACCENT_COMMA_ABOVE); + addCombining('\u0314', ACCENT_REVERSED_COMMA_ABOVE); + addCombining('\u0315', ACCENT_COMMA_ABOVE_RIGHT); + //addCombining('\u031B', ACCENT_HORN); + //addCombining('\u0323', ACCENT_DOT_BELOW); + //addCombining('\u0326', ACCENT_COMMA_BELOW); + addCombining('\u0327', ACCENT_CEDILLA); + addCombining('\u0328', ACCENT_OGONEK); + //addCombining('\u0329', ACCENT_VERTICAL_LINE_BELOW); + addCombining('\u0331', ACCENT_MACRON_BELOW); + //addCombining('\u0342', ACCENT_PERISPOMENI); + //addCombining('\u0344', ACCENT_DIALYTIKA_TONOS); + //addCombining('\u0345', ACCENT_YPOGEGRAMMENI); + + // One-way mappings to equivalent preferred accents. + sCombiningToAccent.append('\u0340', ACCENT_GRAVE); + sCombiningToAccent.append('\u0341', ACCENT_ACUTE); + sCombiningToAccent.append('\u0343', ACCENT_COMMA_ABOVE); + + // One-way legacy mappings to preserve compatibility with older applications. + sAccentToCombining.append(ACCENT_GRAVE_LEGACY, '\u0300'); + sAccentToCombining.append(ACCENT_CIRCUMFLEX_LEGACY, '\u0302'); + sAccentToCombining.append(ACCENT_TILDE_LEGACY, '\u0303'); + } + + private static void addCombining(int combining, int accent) { + sCombiningToAccent.append(combining, accent); + sAccentToCombining.append(accent, combining); + } + + /** + * Maps combinations of (display-form) combining key and second character + * to combined output character. + * These mappings are derived from the Unicode NFC tables as needed. + */ + private static final SparseIntArray sDeadKeyCache = new SparseIntArray(); + private static final StringBuilder sDeadKeyBuilder = new StringBuilder(); + public static final Parcelable.Creator<KeyCharacterMap> CREATOR = new Parcelable.Creator<KeyCharacterMap>() { public KeyCharacterMap createFromParcel(Parcel in) { @@ -230,9 +331,9 @@ public class KeyCharacterMap implements Parcelable { metaState = KeyEvent.normalizeMetaState(metaState); char ch = nativeGetCharacter(mPtr, keyCode, metaState); - int map = COMBINING.get(ch); + int map = sCombiningToAccent.get(ch); if (map != 0) { - return map; + return map | COMBINING_ACCENT; } else { return ch; } @@ -346,7 +447,25 @@ public class KeyCharacterMap implements Parcelable { * @return The combined character, or 0 if the characters cannot be combined. */ public static int getDeadChar(int accent, int c) { - return DEAD.get((accent << 16) | c); + int combining = sAccentToCombining.get(accent); + if (combining == 0) { + return 0; + } + + final int combination = (combining << 16) | c; + int combined; + synchronized (sDeadKeyCache) { + combined = sDeadKeyCache.get(combination, -1); + if (combined == -1) { + sDeadKeyBuilder.setLength(0); + sDeadKeyBuilder.append((char)c); + sDeadKeyBuilder.append((char)combining); + String result = Normalizer.normalize(sDeadKeyBuilder, Normalizer.Form.NFC); + combined = result.length() == 1 ? result.charAt(0) : 0; + sDeadKeyCache.put(combination, combined); + } + } + return combined; } /** @@ -560,159 +679,6 @@ public class KeyCharacterMap implements Parcelable { } /** - * Maps Unicode combining diacritical to display-form dead key - * (display character shifted left 16 bits). - */ - private static SparseIntArray COMBINING = new SparseIntArray(); - - /** - * Maps combinations of (display-form) dead key and second character - * to combined output character. - */ - private static SparseIntArray DEAD = new SparseIntArray(); - - /* - * TODO: Change the table format to support full 21-bit-wide - * accent characters and combined characters if ever necessary. - */ - private static final int ACUTE = '\u00B4' << 16; - private static final int GRAVE = '`' << 16; - private static final int CIRCUMFLEX = '^' << 16; - private static final int TILDE = '~' << 16; - private static final int UMLAUT = '\u00A8' << 16; - - /* - * This bit will be set in the return value of {@link #get(int, int)} if the - * key is a "dead key." - */ - public static final int COMBINING_ACCENT = 0x80000000; - /** - * Mask the return value from {@link #get(int, int)} with this value to get - * a printable representation of the accent character of a "dead key." - */ - public static final int COMBINING_ACCENT_MASK = 0x7FFFFFFF; - - static { - COMBINING.put('\u0300', (GRAVE >> 16) | COMBINING_ACCENT); - COMBINING.put('\u0301', (ACUTE >> 16) | COMBINING_ACCENT); - COMBINING.put('\u0302', (CIRCUMFLEX >> 16) | COMBINING_ACCENT); - COMBINING.put('\u0303', (TILDE >> 16) | COMBINING_ACCENT); - COMBINING.put('\u0308', (UMLAUT >> 16) | COMBINING_ACCENT); - - DEAD.put(ACUTE | 'A', '\u00C1'); - DEAD.put(ACUTE | 'C', '\u0106'); - DEAD.put(ACUTE | 'E', '\u00C9'); - DEAD.put(ACUTE | 'G', '\u01F4'); - DEAD.put(ACUTE | 'I', '\u00CD'); - DEAD.put(ACUTE | 'K', '\u1E30'); - DEAD.put(ACUTE | 'L', '\u0139'); - DEAD.put(ACUTE | 'M', '\u1E3E'); - DEAD.put(ACUTE | 'N', '\u0143'); - DEAD.put(ACUTE | 'O', '\u00D3'); - DEAD.put(ACUTE | 'P', '\u1E54'); - DEAD.put(ACUTE | 'R', '\u0154'); - DEAD.put(ACUTE | 'S', '\u015A'); - DEAD.put(ACUTE | 'U', '\u00DA'); - DEAD.put(ACUTE | 'W', '\u1E82'); - DEAD.put(ACUTE | 'Y', '\u00DD'); - DEAD.put(ACUTE | 'Z', '\u0179'); - DEAD.put(ACUTE | 'a', '\u00E1'); - DEAD.put(ACUTE | 'c', '\u0107'); - DEAD.put(ACUTE | 'e', '\u00E9'); - DEAD.put(ACUTE | 'g', '\u01F5'); - DEAD.put(ACUTE | 'i', '\u00ED'); - DEAD.put(ACUTE | 'k', '\u1E31'); - DEAD.put(ACUTE | 'l', '\u013A'); - DEAD.put(ACUTE | 'm', '\u1E3F'); - DEAD.put(ACUTE | 'n', '\u0144'); - DEAD.put(ACUTE | 'o', '\u00F3'); - DEAD.put(ACUTE | 'p', '\u1E55'); - DEAD.put(ACUTE | 'r', '\u0155'); - DEAD.put(ACUTE | 's', '\u015B'); - DEAD.put(ACUTE | 'u', '\u00FA'); - DEAD.put(ACUTE | 'w', '\u1E83'); - DEAD.put(ACUTE | 'y', '\u00FD'); - DEAD.put(ACUTE | 'z', '\u017A'); - DEAD.put(CIRCUMFLEX | 'A', '\u00C2'); - DEAD.put(CIRCUMFLEX | 'C', '\u0108'); - DEAD.put(CIRCUMFLEX | 'E', '\u00CA'); - DEAD.put(CIRCUMFLEX | 'G', '\u011C'); - DEAD.put(CIRCUMFLEX | 'H', '\u0124'); - DEAD.put(CIRCUMFLEX | 'I', '\u00CE'); - DEAD.put(CIRCUMFLEX | 'J', '\u0134'); - DEAD.put(CIRCUMFLEX | 'O', '\u00D4'); - DEAD.put(CIRCUMFLEX | 'S', '\u015C'); - DEAD.put(CIRCUMFLEX | 'U', '\u00DB'); - DEAD.put(CIRCUMFLEX | 'W', '\u0174'); - DEAD.put(CIRCUMFLEX | 'Y', '\u0176'); - DEAD.put(CIRCUMFLEX | 'Z', '\u1E90'); - DEAD.put(CIRCUMFLEX | 'a', '\u00E2'); - DEAD.put(CIRCUMFLEX | 'c', '\u0109'); - DEAD.put(CIRCUMFLEX | 'e', '\u00EA'); - DEAD.put(CIRCUMFLEX | 'g', '\u011D'); - DEAD.put(CIRCUMFLEX | 'h', '\u0125'); - DEAD.put(CIRCUMFLEX | 'i', '\u00EE'); - DEAD.put(CIRCUMFLEX | 'j', '\u0135'); - DEAD.put(CIRCUMFLEX | 'o', '\u00F4'); - DEAD.put(CIRCUMFLEX | 's', '\u015D'); - DEAD.put(CIRCUMFLEX | 'u', '\u00FB'); - DEAD.put(CIRCUMFLEX | 'w', '\u0175'); - DEAD.put(CIRCUMFLEX | 'y', '\u0177'); - DEAD.put(CIRCUMFLEX | 'z', '\u1E91'); - DEAD.put(GRAVE | 'A', '\u00C0'); - DEAD.put(GRAVE | 'E', '\u00C8'); - DEAD.put(GRAVE | 'I', '\u00CC'); - DEAD.put(GRAVE | 'N', '\u01F8'); - DEAD.put(GRAVE | 'O', '\u00D2'); - DEAD.put(GRAVE | 'U', '\u00D9'); - DEAD.put(GRAVE | 'W', '\u1E80'); - DEAD.put(GRAVE | 'Y', '\u1EF2'); - DEAD.put(GRAVE | 'a', '\u00E0'); - DEAD.put(GRAVE | 'e', '\u00E8'); - DEAD.put(GRAVE | 'i', '\u00EC'); - DEAD.put(GRAVE | 'n', '\u01F9'); - DEAD.put(GRAVE | 'o', '\u00F2'); - DEAD.put(GRAVE | 'u', '\u00F9'); - DEAD.put(GRAVE | 'w', '\u1E81'); - DEAD.put(GRAVE | 'y', '\u1EF3'); - DEAD.put(TILDE | 'A', '\u00C3'); - DEAD.put(TILDE | 'E', '\u1EBC'); - DEAD.put(TILDE | 'I', '\u0128'); - DEAD.put(TILDE | 'N', '\u00D1'); - DEAD.put(TILDE | 'O', '\u00D5'); - DEAD.put(TILDE | 'U', '\u0168'); - DEAD.put(TILDE | 'V', '\u1E7C'); - DEAD.put(TILDE | 'Y', '\u1EF8'); - DEAD.put(TILDE | 'a', '\u00E3'); - DEAD.put(TILDE | 'e', '\u1EBD'); - DEAD.put(TILDE | 'i', '\u0129'); - DEAD.put(TILDE | 'n', '\u00F1'); - DEAD.put(TILDE | 'o', '\u00F5'); - DEAD.put(TILDE | 'u', '\u0169'); - DEAD.put(TILDE | 'v', '\u1E7D'); - DEAD.put(TILDE | 'y', '\u1EF9'); - DEAD.put(UMLAUT | 'A', '\u00C4'); - DEAD.put(UMLAUT | 'E', '\u00CB'); - DEAD.put(UMLAUT | 'H', '\u1E26'); - DEAD.put(UMLAUT | 'I', '\u00CF'); - DEAD.put(UMLAUT | 'O', '\u00D6'); - DEAD.put(UMLAUT | 'U', '\u00DC'); - DEAD.put(UMLAUT | 'W', '\u1E84'); - DEAD.put(UMLAUT | 'X', '\u1E8C'); - DEAD.put(UMLAUT | 'Y', '\u0178'); - DEAD.put(UMLAUT | 'a', '\u00E4'); - DEAD.put(UMLAUT | 'e', '\u00EB'); - DEAD.put(UMLAUT | 'h', '\u1E27'); - DEAD.put(UMLAUT | 'i', '\u00EF'); - DEAD.put(UMLAUT | 'o', '\u00F6'); - DEAD.put(UMLAUT | 't', '\u1E97'); - DEAD.put(UMLAUT | 'u', '\u00FC'); - DEAD.put(UMLAUT | 'w', '\u1E85'); - DEAD.put(UMLAUT | 'x', '\u1E8D'); - DEAD.put(UMLAUT | 'y', '\u00FF'); - } - - /** * Thrown by {@link KeyCharacterMap#load} when a key character map could not be loaded. */ public static class UnavailableException extends AndroidRuntimeException { diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 0ded5f9..bd054bc 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -6359,16 +6359,14 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal public boolean performAccessibilityAction(int action) { switch (action) { case AccessibilityNodeInfo.ACTION_CLICK: { - final long now = SystemClock.uptimeMillis(); - // Send down. - MotionEvent event = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, - getWidth() / 2, getHeight() / 2, 0); - onTouchEvent(event); - // Send up. - event.setAction(MotionEvent.ACTION_UP); - onTouchEvent(event); - // Clean up. - event.recycle(); + if (isClickable()) { + performClick(); + } + } break; + case AccessibilityNodeInfo.ACTION_LONG_CLICK: { + if (isLongClickable()) { + performLongClick(); + } } break; case AccessibilityNodeInfo.ACTION_FOCUS: { if (!hasFocus()) { @@ -13846,13 +13844,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal */ public Insets getLayoutInsets() { if (mLayoutInsets == null) { - if (mBackground == null) { - mLayoutInsets = Insets.NONE; - } else { - Rect insetRect = new Rect(); - boolean hasInsets = mBackground.getLayoutInsets(insetRect); - mLayoutInsets = hasInsets ? Insets.of(insetRect) : Insets.NONE; - } + mLayoutInsets = (mBackground == null) ? Insets.NONE : mBackground.getLayoutInsets(); } return mLayoutInsets; } diff --git a/core/java/android/view/ViewGroup.java b/core/java/android/view/ViewGroup.java index 6371963..91e945b 100644 --- a/core/java/android/view/ViewGroup.java +++ b/core/java/android/view/ViewGroup.java @@ -5792,11 +5792,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager throw new IllegalStateException("Instance already recycled."); } clear(); - if (sPoolSize < MAX_POOL_SIZE) { - mNext = sPool; - mIsPooled = true; - sPool = this; - sPoolSize++; + synchronized (sPoolLock) { + if (sPoolSize < MAX_POOL_SIZE) { + mNext = sPool; + mIsPooled = true; + sPool = this; + sPoolSize++; + } } } @@ -5889,11 +5891,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager throw new IllegalStateException("Instance already recycled."); } clear(); - if (sPoolSize < MAX_POOL_SIZE) { - mNext = sPool; - mIsPooled = true; - sPool = this; - sPoolSize++; + synchronized (sPoolLock) { + if (sPoolSize < MAX_POOL_SIZE) { + mNext = sPool; + mIsPooled = true; + sPool = this; + sPoolSize++; + } } } @@ -5943,9 +5947,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager if (widthDiference != 0) { return -widthDiference; } - // Return nondeterministically one of them since we do - // not want to ignore any views. - return 1; + // Just break the tie somehow. The accessibliity ids are unique + // and stable, hence this is deterministic tie breaking. + return mView.getAccessibilityViewId() - another.mView.getAccessibilityViewId(); } private void init(ViewGroup root, View view) { diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 1472993..3d40b2f 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -2665,6 +2665,7 @@ public final class ViewRootImpl implements ViewParent, private final static int MSG_PROCESS_INPUT_EVENTS = 19; private final static int MSG_DISPATCH_SCREEN_STATE = 20; private final static int MSG_INVALIDATE_DISPLAY_LIST = 21; + private final static int MSG_CLEAR_ACCESSIBILITY_FOCUS_HOST = 22; final class ViewRootHandler extends Handler { @Override @@ -2712,6 +2713,8 @@ public final class ViewRootImpl implements ViewParent, return "MSG_DISPATCH_SCREEN_STATE"; case MSG_INVALIDATE_DISPLAY_LIST: return "MSG_INVALIDATE_DISPLAY_LIST"; + case MSG_CLEAR_ACCESSIBILITY_FOCUS_HOST: + return "MSG_CLEAR_ACCESSIBILITY_FOCUS_HOST"; } return super.getMessageName(message); } @@ -2921,6 +2924,9 @@ public final class ViewRootImpl implements ViewParent, case MSG_INVALIDATE_DISPLAY_LIST: { invalidateDisplayLists(); } break; + case MSG_CLEAR_ACCESSIBILITY_FOCUS_HOST: { + setAccessibilityFocusedHost(null); + } break; } } } @@ -5066,7 +5072,7 @@ public final class ViewRootImpl implements ViewParent, } } else { ensureNoConnection(); - setAccessibilityFocusedHost(null); + mHandler.obtainMessage(MSG_CLEAR_ACCESSIBILITY_FOCUS_HOST).sendToTarget(); } } diff --git a/core/java/android/view/accessibility/AccessibilityNodeInfo.java b/core/java/android/view/accessibility/AccessibilityNodeInfo.java index 1071c65..c5f2062 100644 --- a/core/java/android/view/accessibility/AccessibilityNodeInfo.java +++ b/core/java/android/view/accessibility/AccessibilityNodeInfo.java @@ -84,7 +84,7 @@ public class AccessibilityNodeInfo implements Parcelable { /** * Action that gives input focus to the node. */ - public static final int ACTION_FOCUS = 0x00000001; + public static final int ACTION_FOCUS = 0x00000001; /** * Action that clears input focus of the node. @@ -102,19 +102,24 @@ public class AccessibilityNodeInfo implements Parcelable { public static final int ACTION_CLEAR_SELECTION = 0x00000008; /** - * Action that gives accessibility focus to the node. + * Action that clicks on the node info. */ - public static final int ACTION_ACCESSIBILITY_FOCUS = 0x00000010; + public static final int ACTION_CLICK = 0x00000010; /** - * Action that clears accessibility focus of the node. + * Action that clicks on the node. + */ + public static final int ACTION_LONG_CLICK = 0x00000020; + + /** + * Action that gives accessibility focus to the node. */ - public static final int ACTION_CLEAR_ACCESSIBILITY_FOCUS = 0x00000020; + public static final int ACTION_ACCESSIBILITY_FOCUS = 0x00000040; /** - * Action that clicks on the node info./AccessibilityNodeInfoCache.java + * Action that clears accessibility focus of the node. */ - public static final int ACTION_CLICK = 0x00000040; + public static final int ACTION_CLEAR_ACCESSIBILITY_FOCUS = 0x00000080; /** * The input focus. @@ -278,9 +283,9 @@ public class AccessibilityNodeInfo implements Parcelable { (root != null) ? root.getAccessibilityViewId() : UNDEFINED; mSourceNodeId = makeNodeId(rootAccessibilityViewId, virtualDescendantId); } - + /** - * Find the view that has the input focus. The search starts from + * Find the view that has the specified focus type. The search starts from * the view represented by this node info. * * @param focus The focus to find. One of {@link #FOCUS_INPUT} or diff --git a/core/java/android/webkit/WebCoreThreadWatchdog.java b/core/java/android/webkit/WebCoreThreadWatchdog.java index 0541d5d..655db31 100644 --- a/core/java/android/webkit/WebCoreThreadWatchdog.java +++ b/core/java/android/webkit/WebCoreThreadWatchdog.java @@ -16,6 +16,7 @@ package android.webkit; +import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; @@ -146,6 +147,7 @@ class WebCoreThreadWatchdog implements Runnable { break; case TIMED_OUT: + if ((mContext == null) || !(mContext instanceof Activity)) return; new AlertDialog.Builder(mContext) .setMessage(com.android.internal.R.string.webpage_unresponsive) .setPositiveButton(com.android.internal.R.string.force_close, diff --git a/core/jni/android_hardware_Camera.cpp b/core/jni/android_hardware_Camera.cpp index 36b4b45..6cd8955 100644 --- a/core/jni/android_hardware_Camera.cpp +++ b/core/jni/android_hardware_Camera.cpp @@ -457,9 +457,9 @@ static void android_hardware_Camera_getCameraInfo(JNIEnv *env, jobject thiz, // connect to camera service static void android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, - jobject weak_this, jint cameraId, jboolean force, jboolean keep) + jobject weak_this, jint cameraId) { - sp<Camera> camera = Camera::connect(cameraId, force, keep); + sp<Camera> camera = Camera::connect(cameraId); if (camera == NULL) { jniThrowRuntimeException(env, "Fail to connect to camera service"); @@ -821,15 +821,6 @@ static void android_hardware_Camera_enableFocusMoveCallback(JNIEnv *env, jobject } } -static bool android_hardware_Camera_isReleased(JNIEnv *env, jobject thiz) -{ - ALOGV("isReleased"); - sp<Camera> camera = get_native_camera(env, thiz, NULL); - if (camera == 0) return true; - - return (camera->sendCommand(CAMERA_CMD_PING, 0, 0) != NO_ERROR); -} - //------------------------------------------------- static JNINativeMethod camMethods[] = { @@ -840,7 +831,7 @@ static JNINativeMethod camMethods[] = { "(ILandroid/hardware/Camera$CameraInfo;)V", (void*)android_hardware_Camera_getCameraInfo }, { "native_setup", - "(Ljava/lang/Object;IZZ)V", + "(Ljava/lang/Object;I)V", (void*)android_hardware_Camera_native_setup }, { "native_release", "()V", @@ -908,9 +899,6 @@ static JNINativeMethod camMethods[] = { { "enableFocusMoveCallback", "(I)V", (void *)android_hardware_Camera_enableFocusMoveCallback}, - { "isReleased", - "()Z", - (void *)android_hardware_Camera_isReleased}, }; struct field { diff --git a/core/jni/android_media_AudioTrack.cpp b/core/jni/android_media_AudioTrack.cpp index 9fbc477..a46714e 100644 --- a/core/jni/android_media_AudioTrack.cpp +++ b/core/jni/android_media_AudioTrack.cpp @@ -279,7 +279,7 @@ android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_th format,// word length, PCM nativeChannelMask, frameCount, - AUDIO_POLICY_OUTPUT_FLAG_NONE, + AUDIO_OUTPUT_FLAG_NONE, audioCallback, &(lpJniStorage->mCallbackData),//callback, callback data (user) 0,// notificationFrames == 0 since not using EVENT_MORE_DATA to feed the AudioTrack 0,// shared mem @@ -300,7 +300,7 @@ android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_th format,// word length, PCM nativeChannelMask, frameCount, - AUDIO_POLICY_OUTPUT_FLAG_NONE, + AUDIO_OUTPUT_FLAG_NONE, audioCallback, &(lpJniStorage->mCallbackData),//callback, callback data (user)); 0,// notificationFrames == 0 since not using EVENT_MORE_DATA to feed the AudioTrack lpJniStorage->mMemBase,// shared mem diff --git a/core/res/res/raw/accessibility_gestures.bin b/core/res/res/raw/accessibility_gestures.bin Binary files differindex 1f95e56..f7e6615 100644 --- a/core/res/res/raw/accessibility_gestures.bin +++ b/core/res/res/raw/accessibility_gestures.bin diff --git a/core/res/res/values-ar/strings.xml b/core/res/res/values-ar/strings.xml index daef582..9a1530f 100644 --- a/core/res/res/values-ar/strings.xml +++ b/core/res/res/values-ar/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"رقم التعريف الشخصي:"</string> <string name="select_character" msgid="3365550120617701745">"إدراج حرف"</string> <string name="sms_control_title" msgid="7296612781128917719">"إرسال رسائل قصيرة SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> يرسل عددًا كبيرًا من الرسائل القصيرة SMS. هل تريد السماح لهذا التطبيق بالاستمرار في إرسال الرسائل؟"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"السماح"</string> + <string name="sms_control_no" msgid="625438561395534982">"رفض"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"إرسال رسالة SMS إلى رمز قصير؟"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"هل تريد إرسال رسالة قصيرة SMS مميزة؟"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> يريد إرسال رسالة نصية إلى <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>، والذي يُعد رمزًا قصيرًا لرسالة قصيرة SMS.<p>قد يؤدي إرسال رسائل نصية إلى بعض الرموز القصيرة إلى تحصيل رسوم من حساب جوالك للخدمات المميزة.<p>هل تريد السماح لهذا التطبيق بإرسال الرسالة؟"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> يريد إرسال رسالة نصية إلى <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>، والذي يُعد رمزًا قصيرًا لرسالة قصيرة SMS مميزة.<p><b>سيؤدي إرسال رسالة إلى هذه الوجهة إلى تحصيل رسوم من حساب جوالك للخدمات المميزة.</b><p>هل تريد السماح لهذا التطبيق بإرسال الرسالة؟"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"إرسال رسالة"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"عدم الإرسال"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"الإبلاغ عن تطبيق ضار"</string> <string name="sim_removed_title" msgid="6227712319223226185">"تمت إزالة بطاقة SIM"</string> <string name="sim_removed_message" msgid="2333164559970958645">"لن تكون شبكة الجوال متاحة حتى تتم إعادة التشغيل وإدخال بطاقة SIM صالحة."</string> <string name="sim_done_button" msgid="827949989369963775">"تم"</string> diff --git a/core/res/res/values-be/strings.xml b/core/res/res/values-be/strings.xml index c155537..9f11db1 100644 --- a/core/res/res/values-be/strings.xml +++ b/core/res/res/values-be/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN-код"</string> <string name="select_character" msgid="3365550120617701745">"Уставіць сімвал"</string> <string name="sms_control_title" msgid="7296612781128917719">"Адпраўка SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Прыкладанне <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> дасылае вялікую колькасць SMS-паведамленняў. Дазволіць гэтаму прыкладанню працягваць адпраўляць паведамленні?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Дазволіць"</string> + <string name="sms_control_no" msgid="625438561395534982">"Забараніць"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Адправiць SMS на кароткі нумар?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Адправiць платнае SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Прыкладанне <b><xliff:g id="APP_NAME">%1$s</xliff:g></b&gt спрабуе адправiць тэкставае паведамленне на нумар <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, які, здаецца, з\'яўляецца кароткім нумарам для SMS.<p>Дасыланне тэкставых паведамленняў на кароткія нумары можа прывесці да спісання сродкаў з вашага мабільнага рахунку за платныя паслугі.</b><p>Жадаеце дазволіць гэтаму прыкладанню даслаць паведамленне?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Прыкладанне <b><xliff:g id="APP_NAME">%1$s</xliff:g></b&g спрабуе адправiць тэкставае паведамленне на нумар <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, які з\'яўляецца платным кароткім нумарам для SMS.<p><b>Адпраўка паведамлення гэтаму атрымальніку прывядзе да спісання сродкаў з вашага мабільнага рахунку за платныя паслугі.</b><p>Жадаеце дазволіць гэтаму прыкладанню даслаць паведамленне?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Адправiць паведамленне"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Не адпраўляць"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Павед. аб шкодн. прыкладаннях"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-карта выдаленая"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Мабільная сетка будзе недаступная да перазагрузкі з дзеючай SIM-картай."</string> <string name="sim_done_button" msgid="827949989369963775">"Гатова"</string> diff --git a/core/res/res/values-bg/strings.xml b/core/res/res/values-bg/strings.xml index 7860382..4a1d3e6 100644 --- a/core/res/res/values-bg/strings.xml +++ b/core/res/res/values-bg/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Разрешава на приложението да променя ориентацията на екрана по всяко време. Нормалните приложения би трябвало никога да не се нуждаят от това."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"промяна на скоростта на курсор"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Разрешава на приложението да променя скоростта на курсора на мишката или на тракпада по всяко време. Нормалните приложения би трябвало никога да не се нуждаят от това."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"промяна на клавиат. подредба"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Разрешава на приложението да променя клавиатурната подредба. Нормалните приложения би трябвало никога да не се нуждаят от това."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"изпращане на сигнали от Linux до приложенията"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Разрешава на приложението да подаде заявка предоставеният сигнал да се изпрати до всички постоянни процеси."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"задаване на постоянно изпълнение на приложението"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"ПИН:"</string> <string name="select_character" msgid="3365550120617701745">"Вмъкване на знак"</string> <string name="sms_control_title" msgid="7296612781128917719">"Изпращане на SMS съобщения"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> изпраща голям брой SMS съобщения. Искате ли да разрешите на това приложение да продължи да го прави?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Разрешаване"</string> + <string name="sms_control_no" msgid="625438561395534982">"Отказване"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Да се изпрати ли SMS до кратък код?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Да се изпрати ли импулсен SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> иска да изпрати текстово съобщение до <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, което изглежда е кратък код на SMS.<p>Изпращането на съобщения до някои такива кодове може да доведе до таксуване на мобилната ви сметка за услуги, които се плащат допълнително.<p>Искате ли да разрешите на това приложение да изпрати съобщението?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> иска да изпрати текстово съобщение до <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, което е кратък код за импулсен SMS.<p><b>Изпращането до тази точка ще доведе до таксуване на мобилната ви сметка за услуги, които се плащат допълнително.</b><p>Искате ли да разрешите на това приложение да изпрати съобщението?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Изпращане на съобщението"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Да не се изпраща"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Сигнал за злонам. приложение"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM картата е премахната"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Няма да имате достъп до мобилната мрежа, докато не рестартирате с поставена валидна SIM карта."</string> <string name="sim_done_button" msgid="827949989369963775">"Готово"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Докоснете, за да деактивирате отстраняването на грешки през USB."</string> <string name="select_input_method" msgid="4653387336791222978">"Избор на метод на въвеждане"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Методи на въвеждане: Настройка"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Физическа клавиатура"</string> + <string name="hardware" msgid="7517821086888990278">"Хардуер"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"кандидати"</u></string> diff --git a/core/res/res/values-cs/strings.xml b/core/res/res/values-cs/strings.xml index 33f91e8..eead99e 100644 --- a/core/res/res/values-cs/strings.xml +++ b/core/res/res/values-cs/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Umožňuje aplikaci kdykoli změnit otočení obrazovky. Běžné aplikace by toto oprávnění neměly nikdy požadovat."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"změna rychlosti kurzoru"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Umožňuje aplikaci kdykoli změnit rychlost ukazatele myši nebo touchpadu. Běžné aplikace by toto oprávnění neměly nikdy požadovat."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"změnit rozložení klávesnice"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Umožňuje aplikaci změnit rozložení klávesnice. Běžné aplikace by toto oprávnění neměly nikdy požadovat."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"odeslání signálů systému Linux aplikacím"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Umožňuje aplikaci vyžádat zaslání poskytnutého signálu všem trvalým procesům."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"trvalé spuštění aplikace"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Vkládání znaků"</string> <string name="sms_control_title" msgid="7296612781128917719">"Odesílání zpráv SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Aplikace <b><xliff:g id="APP_NAME">%1$s</xliff:g></b>odesílá velký počet SMS zpráv. Chcete aplikaci povolit, aby zprávy odesílala i nadále?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Povolit"</string> + <string name="sms_control_no" msgid="625438561395534982">"Odmítnout"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Odeslat SMS na prémiové číslo?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Odeslat zprávu Premium SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Aplikace<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> chce odeslat zprávu na číslo <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, což je zřejmě číslo služby Premium SMS.<p>Za odesílání zpráv na určitá prémiová čísla mohou být na mobilní účet naúčtovány poplatky za prémiové služby.<p>Chcete aplikaci povolit odeslání zprávy?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Aplikace <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> chce poslat zprávu na číslo <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, což je číslo služby Premium SMS.<p><b>Pokud zprávu odešlete na toto číslo, budou vám na mobilní účet naúčtovány poplatky za prémiové služby.</b><p>Chcete aplikaci povolit odeslání zprávy?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Odeslat zprávu"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Neodesílat"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Nahlásit škodlivou aplikaci"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Karta SIM odebrána"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobilní síť bude dostupná až poté, co vložíte platnou kartu SIM a restartujete zařízení."</string> <string name="sim_done_button" msgid="827949989369963775">"Hotovo"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Dotykem zakážete ladění USB."</string> <string name="select_input_method" msgid="4653387336791222978">"Vybrat metodu vstupu"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Nastavit metody vstupu"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Fyzická klávesnice"</string> + <string name="hardware" msgid="7517821086888990278">"Hardware"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" AÁBCČDĎEÉĚFGHCHIÍJKLMNŇOÓPQRŘSŠTŤUÚVWXYÝZŽ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789AÁBCČDĎEÉĚFGHCHIÍJKLMNŇOÓPQRŘSŠTŤUÚVWXYÝZŽ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"kandidáti"</u></string> diff --git a/core/res/res/values-da/strings.xml b/core/res/res/values-da/strings.xml index c5b0e17..f641927 100644 --- a/core/res/res/values-da/strings.xml +++ b/core/res/res/values-da/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"Pinkode:"</string> <string name="select_character" msgid="3365550120617701745">"Indsæt tegn"</string> <string name="sms_control_title" msgid="7296612781128917719">"Sender sms-beskeder"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sender et stort antal sms-beskeder. Vil du tillade, at denne app fortsat sender beskeder?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Tillad"</string> + <string name="sms_control_no" msgid="625438561395534982">"Afvis"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Send sms til shortcode?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Vil du sende en premium-sms?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vil du sende en sms til <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, som ser ud til at være en premium-sms-shortcode.&.<p>Hvis du sender en sms til nogle shortcodes, kan det medføre, at din mobilkonto bliver debiteret for premium-tjenester.<p>Vil du tillade, at denne app sender beskeden?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vil du sende en sms til <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, som er en premium-sms-shortcode.<p><b>Hvis du sender en besked til denne destination, bliver din mobilkonto debiteret for premium-tjenester.</b><p>Vil du tillade, at denne app sender beskeden?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Send besked"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Send ikke"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Rapportér ondsindet app"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-kort blev fjernet"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Det mobile netværk er utilgængeligt, indtil du genstarter med et gyldigt SIM-kort."</string> <string name="sim_done_button" msgid="827949989369963775">"Udfør"</string> diff --git a/core/res/res/values-de/strings.xml b/core/res/res/values-de/strings.xml index 5a24cb3..072005d 100644 --- a/core/res/res/values-de/strings.xml +++ b/core/res/res/values-de/strings.xml @@ -929,7 +929,7 @@ <string name="chooseUsbActivity" msgid="6894748416073583509">"App für USB-Gerät auswählen"</string> <string name="noApplications" msgid="2991814273936504689">"Diese Aktion kann von keiner App ausgeführt werden."</string> <string name="aerr_title" msgid="1905800560317137752"></string> - <string name="aerr_application" msgid="932628488013092776">"Leider wurde <xliff:g id="APPLICATION">%1$s</xliff:g> beendet."</string> + <string name="aerr_application" msgid="932628488013092776">"Leider wurde \"<xliff:g id="APPLICATION">%1$s</xliff:g>\" beendet."</string> <string name="aerr_process" msgid="4507058997035697579">"Leider wurde der Prozess <xliff:g id="PROCESS">%1$s</xliff:g> beendet."</string> <string name="anr_title" msgid="4351948481459135709"></string> <string name="anr_activity_application" msgid="1904477189057199066">"<xliff:g id="APPLICATION">%2$s</xliff:g> reagiert nicht."\n\n"Möchten Sie die App schließen?"</string> @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Zeichen einfügen"</string> <string name="sms_control_title" msgid="7296612781128917719">"Kurznachrichten werden gesendet"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sendet eine große Anzahl SMS. Möchten Sie zulassen, dass die App weiterhin Nachrichten sendet?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Zulassen"</string> + <string name="sms_control_no" msgid="625438561395534982">"Nicht zulassen"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"SMS an Kurzwahl senden?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Premium-SMS senden?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> versucht, eine SMS an <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> zu senden. Dabei scheint es sich um eine SMS-Kurzwahl zu handeln.<p>Wenn Sie SMS an eine Kurzwahl senden, werden Ihnen für Ihr Mobilfunkkonto möglicherweise Premiumdienste in Rechnung gestellt.<p>Möchten Sie zulassen, dass die App die Nachricht sendet?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> versucht, eine SMS an die Premium-SMS-Kurzwahl <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> zu senden.<p><b>Wenn Sie eine Nachricht an diese Zieladresse senden, werden Ihnen für Ihr Mobilfunkkonto Premiumdienste in Rechnung gestellt.</b><p>Möchten Sie zulassen, dass die App die Nachricht sendet?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Nachricht senden"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Nicht senden"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Schädliche App melden"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-Karte entfernt"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Das Mobilfunknetz ist erst wieder verfügbar, wenn Sie einen Neustart mit einer gültigen SIM-Karte durchführen."</string> <string name="sim_done_button" msgid="827949989369963775">"Fertig"</string> diff --git a/core/res/res/values-el/strings.xml b/core/res/res/values-el/strings.xml index 7c951cc..b668965 100644 --- a/core/res/res/values-el/strings.xml +++ b/core/res/res/values-el/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Εισαγωγή χαρακτήρα"</string> <string name="sms_control_title" msgid="7296612781128917719">"Αποστολή μηνυμάτων SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Η εφαρμογή <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> στέλνει έναν μεγάλο αριθμό μηνυμάτων SMS. Θέλετε να επιτρέψετε σε αυτήν την εφαρμογή να συνεχίσει να στέλνει μηνύματα;"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Αποδοχή"</string> + <string name="sms_control_no" msgid="625438561395534982">"Άρνηση"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Να αποσταλεί SMS στον κωδικό;"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Να σταλεί SMS ειδικής χρέωσης;"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Η εφαρμογή <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ζητά την έγκρισή σας για την αποστολή μηνύματος κειμένου στον αριθμό <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ο οποίος φαίνεται ότι είναι κωδικός για την αποστολή SMS με ειδική χρέωση.<p>Η αποστολή μηνύματος σε αυτόν τον αριθμό θα χρεωθεί στον λογαριασμό του κινητού σας ως παροχή υπηρεσιών.<p>Θέλετε να επιτρέψετε σε αυτήν την εφαρμογή να στείλει το μήνυμα;"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Η εφαρμογή <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> θέλει να στείλει ένα μήνυμα κειμένου στον αριθμό <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ο οποίος είναι ένας κωδικός αποστολής SMS με ειδική χρέωση.<p><b>Η αποστολή μηνύματος σε αυτόν τον αριθμό θα χρεωθεί στον λογαριασμό του κινητού σας ως παροχή υπηρεσιών.</b><p>Θέλετε να επιτρέψετε σε αυτήν την εφαρμογή να στείλει το μήνυμα;"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Αποστολή μηνύματος"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Να μην αποσταλεί"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Αναφορά κακόβουλης εφαρμογής"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Η κάρτα SIM αφαιρέθηκε"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Το δίκτυο κινητής τηλεφωνίας δεν θα είναι διαθέσιμο μέχρι να κάνετε επανεκκίνηση αφού τοποθετήσετε μια έγκυρη κάρτα SIM."</string> <string name="sim_done_button" msgid="827949989369963775">"Τέλος"</string> diff --git a/core/res/res/values-es-rUS/strings.xml b/core/res/res/values-es-rUS/strings.xml index 6f1ee53..d464095 100644 --- a/core/res/res/values-es-rUS/strings.xml +++ b/core/res/res/values-es-rUS/strings.xml @@ -286,7 +286,7 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Permite que la aplicación cambie la rotación de la pantalla en cualquier momento. Las aplicaciones normales no deberían necesitar este permiso."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"cambiar velocidad del puntero"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Permite que la aplicación cambie la velocidad del puntero del mouse o el trackpad en cualquier momento. Las aplicaciones normales no deben utilizar este permiso."</string> - <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"Cambiar el diseño del teclado"</string> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"cambiar el diseño del teclado"</string> <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Permite que la aplicación cambie el diseño del teclado. Las aplicaciones normales no deberían necesitar este permiso."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"enviar señales de Linux a las aplicaciones"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Permite que la aplicación solicite que la señal suministrada se envíe a todos los procesos persistentes."</string> @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Insertar caracteres"</string> <string name="sms_control_title" msgid="7296612781128917719">"Enviando mensajes SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> está enviando una gran cantidad de mensajes SMS. ¿Quieres permitir que está aplicación siga enviando mensajes?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Permitir"</string> + <string name="sms_control_no" msgid="625438561395534982">"Rechazar"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"¿Enviar SMS premium?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"¿Enviar SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> quiere enviar un mensaje de texto a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, y parece que se trata de un SMS premium.<p>Al enviar mensajes de texto a estos números, es posible que se facturen servicios premium en tu cuenta móvil.<p>¿Quieres permitir que esta aplicación envíe el mensaje?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> quiere enviar un mensaje de texto a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, y se trata de un SMS premium.<p><b>Al enviar un mensaje a este destino, se podrán facturar servicios premium en tu cuenta móvil.</b><p>¿Quieres permitir que esta aplicación envíe el mensaje?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Enviar mensaje"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"No enviar"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Notificar aplicación malintencionada"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Tarjeta SIM eliminada"</string> <string name="sim_removed_message" msgid="2333164559970958645">"La red para celulares no estará disponible hasta que reinicies, luego de insertar una tarjeta SIM válida."</string> <string name="sim_done_button" msgid="827949989369963775">"Finalizado"</string> diff --git a/core/res/res/values-es/strings.xml b/core/res/res/values-es/strings.xml index 95e1152..9bf23ff 100644 --- a/core/res/res/values-es/strings.xml +++ b/core/res/res/values-es/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Insertar carácter"</string> <string name="sms_control_title" msgid="7296612781128917719">"Enviando mensajes SMS..."</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> está enviando un gran número de mensajes SMS. ¿Quieres permitir que está aplicación siga enviando mensajes?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Permitir"</string> + <string name="sms_control_no" msgid="625438561395534982">"Denegar"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"¿Enviar SMS premium?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"¿Enviar SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> quiere enviar un mensaje de texto a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> y parece que se trata de un SMS premium.<p>Al enviar mensajes de texto a estos números, es posible que se facturen servicios premium en tu cuenta móvil.<p>¿Quieres permitir que esta aplicación envíe el mensaje?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> quiere enviar un mensaje de texto a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> y se trata de un SMS premium.<p><b>Al enviar un mensaje a este destino, se podrán facturar servicios premium en tu cuenta móvil.</b><p>¿Quieres permitir que esta aplicación envíe el mensaje?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Enviar mensaje"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"No enviar"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Notificar aplicación malintencionada"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Tarjeta SIM eliminada"</string> <string name="sim_removed_message" msgid="2333164559970958645">"La red móvil no estará disponible hasta que reinicies el dispositivo con una tarjeta SIM válida."</string> <string name="sim_done_button" msgid="827949989369963775">"Listo"</string> diff --git a/core/res/res/values-et/strings.xml b/core/res/res/values-et/strings.xml index a72691f..c4e0c41 100644 --- a/core/res/res/values-et/strings.xml +++ b/core/res/res/values-et/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN-kood:"</string> <string name="select_character" msgid="3365550120617701745">"Sisesta tähemärk"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS-sõnumite saatmine"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> saadab suurel hulgal SMS-sõnumeid. Kas tahate lubada sellel rakendusel ka edaspidi sõnumeid saata?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Luba"</string> + <string name="sms_control_no" msgid="625438561395534982">"Keela"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Kas saata SMS lühinumbrile?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Kas saata tasuline SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> tahab saata tekstsõnumi adressaadile <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, mis paistab olevat SMS-i lühinumber.<p>Mõnele lühinumbrile saadetud sõnumi eest võidakse teie mobiilikontole esitada arve tasuliste teenuste eest.<p>Kas lubate rakendusel selle sõnumi saata?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> tahab saata tekstisõnumi adressaadile <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, mis on tasulise SMS-i lühinumber.<p><b>Kui saadate sõnumi sellele adressaadile, esitatakse teie mobiilikontole arve tasuliste teenuste eest.</b><p>Kas lubate rakendusel sõnumi saata?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Saada sõnum"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Ära saada"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Teata pahatahtlikust rakend."</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-kaart eemaldatud"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobiilsidevõrk ei ole saadaval, kuni sisestate kehtiva SIM-kaardi ja taaskäivitate seadme."</string> <string name="sim_done_button" msgid="827949989369963775">"Valmis"</string> diff --git a/core/res/res/values-fa/strings.xml b/core/res/res/values-fa/strings.xml index d33fe74..6a4c8cb 100644 --- a/core/res/res/values-fa/strings.xml +++ b/core/res/res/values-fa/strings.xml @@ -287,7 +287,7 @@ <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"تغییر سرعت اشاره گر"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"به برنامه اجازه میدهد تا سرعت ماوس و پد کنترل را هر وقت خواست تغییر دهد. برای برنامههای عادی نیاز نیست."</string> <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"تغییر چیدمان صفحه کلید"</string> - <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"به برنامه اجازه میدهد تا چیدمان صفحه کلید را تغییر دهد. این کار هیچ گاه برای برنامههای عادی نیاز نیست."</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"به برنامه اجازه میدهد تا چیدمان صفحه کلید را تغییر دهد. این کار هیچگاه برای برنامههای عادی نیاز نیست."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"ارسال سیگنالهای Linux به برنامهها"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"به برنامه اجازه میدهد تا درخواست کند سیگنال ارائه شده به همه مراحل دائم ارسال شود."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"همیشه برنامه اجرا شود"</string> @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"پین:"</string> <string name="select_character" msgid="3365550120617701745">"درج نویسه"</string> <string name="sms_control_title" msgid="7296612781128917719">"ارسال پیامک ها"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> در حال ارسال تعداد زیادی پیامک است. آیا اجازه میدهید این برنامه همچنان پیامک ارسال کند؟"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"اجازه دادن"</string> + <string name="sms_control_no" msgid="625438561395534982">"ردکردن"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"پیامک به کد کوتاه ارسال شود؟"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"پیامک ممتاز ارسال شود؟"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> میخواهد یک پیام نوشتاری را به <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ارسال کند که به نظر میرسد یک کد کوتاه پیامک است.<p>ارسال پیامهای نوشتاری به برخی از کدهای کوتاه ممکن است باعث شود برای حساب تلفن همراه شما بابت استفاده از سرویسهای ممتاز صورتحساب ارسال شود.<p>آیا به این برنامه اجازه میدهید پیام ارسال کند؟"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> میخواهد یک پیام نوشتاری را به <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ارسال کند که یک کد کوتاه پیامک ممتاز است.<p><b>ارسال پیام به این مقصد ممکن است باعث شود برای حساب تلفن همراه شما بابت استفاده از سرویسهای ممتاز صورتحساب ارسال شود.</b><p>آیا به این برنامه اجازه میدهید پیامک ارسال کند؟"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"ارسال پیام"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"ارسال نشود"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"گزارش برنامه مخرب"</string> <string name="sim_removed_title" msgid="6227712319223226185">"سیم کارت برداشته شد"</string> <string name="sim_removed_message" msgid="2333164559970958645">"تا وقتی که با یک سیمکارت معتبر راهاندازی مجدد نکنید شبکه تلفن همراه غیر قابل دسترس خواهد بود."</string> <string name="sim_done_button" msgid="827949989369963775">"انجام شد"</string> diff --git a/core/res/res/values-fi/strings.xml b/core/res/res/values-fi/strings.xml index f03e1af..4451192 100644 --- a/core/res/res/values-fi/strings.xml +++ b/core/res/res/values-fi/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN-koodi:"</string> <string name="select_character" msgid="3365550120617701745">"Lisää merkki"</string> <string name="sms_control_title" msgid="7296612781128917719">"Tekstiviestien lähettäminen"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> lähettää suuria määriä tekstiviestejä. Annetaanko tämän sovelluksen jatkaa tekstiviestien lähettämistä?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Salli"</string> + <string name="sms_control_no" msgid="625438561395534982">"Kiellä"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Lähetetäänkö viesti?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Lähetä maksullinen viesti?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> haluaa lähettää tekstiviestin kohteeseen <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, joka voi olla maksullinen numero.<p><b>Jos lähetät viestin tähän kohteeseen, sinua saatetaan veloittaa maksullisten palveluiden käytöstä.</b><p>Annetaanko sovelluksen lähettää viesti?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> haluaa lähettää tekstiviestin kohteeseen <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, joka on maksullinen numero.<p><b>Jos lähetät viestin tähän kohteeseen, sinua veloitetaan maksullisten palveluiden käytöstä.</b><p>Annetaanko sovelluksen lähettää viesti?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Lähetä viesti"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Älä lähetä"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Ilmoita haittasovelluksesta"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-kortti poistettu"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobiiliverkko ei ole käytettävissä, ennen kuin käynnistät uudelleen kelvollisella laitteeseen kytketyllä SIM-kortilla."</string> <string name="sim_done_button" msgid="827949989369963775">"Valmis"</string> diff --git a/core/res/res/values-fr/strings.xml b/core/res/res/values-fr/strings.xml index 72ac5f4..2d5dbb1 100644 --- a/core/res/res/values-fr/strings.xml +++ b/core/res/res/values-fr/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"Code PIN :"</string> <string name="select_character" msgid="3365550120617701745">"Insérer un caractère"</string> <string name="sms_control_title" msgid="7296612781128917719">"Envoi de messages SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> envoie un grand nombre de SMS. Autorisez-vous cette application à poursuivre l\'envoi des messages ?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Autoriser"</string> + <string name="sms_control_no" msgid="625438561395534982">"Refuser"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Envoyer SMS au numéro abrégé ?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Envoyer un SMS premium ?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> essaie d\'envoyer un SMS à <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>. Il s\'agit apparemment d\'un numéro abrégé.<p>L\'envoi de SMS à de tels numéros peut entraîner la facturation de services premium sur votre compte mobile.<p>Autorisez-vous cette application à envoyer ce message ?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> essaie d\'envoyer un SMS à <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>. Il s\'agit apparemment d\'un numéro abrégé de type premium.<p><b>L\'envoi de SMS à ce destinataire entraînera la facturation de services premium sur votre compte mobile.</b><p>Autorisez-vous cette application à envoyer le message ?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Envoyer le message"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Ne pas envoyer"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Signaler appli malveillante"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Carte SIM retirée"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Le réseau mobile ne sera pas disponible avant le redémarrage avec une carte SIM valide insérée."</string> <string name="sim_done_button" msgid="827949989369963775">"OK"</string> diff --git a/core/res/res/values-hi/strings.xml b/core/res/res/values-hi/strings.xml index e94e286..6eeb942 100644 --- a/core/res/res/values-hi/strings.xml +++ b/core/res/res/values-hi/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"पिन:"</string> <string name="select_character" msgid="3365550120617701745">"वर्ण सम्मिलित करें"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS संदेश भेज रहा है"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> बड़ी संख्या में SMS संदेश भेज रहा है. क्या आप इस एप्लिकेशन को संदेश भेजना जारी रखने देना चाहते हैं?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"अनुमति दें"</string> + <string name="sms_control_no" msgid="625438561395534982">"अस्वीकार करें"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"शॉर्ट कोड पर SMS भेजें?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"प्रीमियम SMS भेजें?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>, <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> को एक पाठ संदेश भेजना चाहता है, जो एक SMS शॉर्ट कोड लगता है.<p>कुछ शॉर्ट कोड को पाठ संदेश भेजने से आपके मोबाइल खाते पर प्रीमियम सेवाओं का शुल्क लिया जा सकता है.<p>क्या आप इस एप्लिकेशन को यह संदेश भेजने देना चाहते हैं?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>, <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> को एक पाठ संदेश भेजना चाहता है, जो एक प्रीमियम SMS शॉर्ट कोड है.<p><b>इस गंतव्य पर कोई संदेश भेजने से आपके मोबाइल खाते पर प्रीमियम सेवाओं का शुल्क लिया जाएगा.</b><p>क्या आप इस एप्लिकेशन को संदेश भेजने देना चाहते हैं?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"संदेश भेजें"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"न भेजें"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"दुर्भावनापूर्ण एप्लि. की रिपोर्ट करें"</string> <string name="sim_removed_title" msgid="6227712319223226185">"सिमकार्ड निकाला गया"</string> <string name="sim_removed_message" msgid="2333164559970958645">"मान्य सिम कार्ड डालकर पुन: प्रारंभ करने तक मोबाइल नेटवर्क अनुपलब्ध रहेगा."</string> <string name="sim_done_button" msgid="827949989369963775">"पूर्ण"</string> diff --git a/core/res/res/values-hr/strings.xml b/core/res/res/values-hr/strings.xml index 412bc61..0409168 100644 --- a/core/res/res/values-hr/strings.xml +++ b/core/res/res/values-hr/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Omogućuje aplikaciji promjenu rotacije zaslona u bilo kojem trenutku. Ne bi smjelo biti potrebno za normalne aplikacije."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"promjena brzine pokazivača"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Omogućuje aplikaciji promjenu brzine miša ili dodirne pločice. Ne bi smjelo biti potrebno za normalne aplikacije."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"promjena rasporeda tipkovnice"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Omogućuje da aplikacija promijeni raspored tipkovnice. Nikada ne bi trebalo biti potrebno za uobičajene aplikacije."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"slanje Linux signala aplikacijama"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Aplikaciji omogućuje zahtijevanje da isporučeni signal bude poslan na sve trajne procese."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"trajni rad aplikacije"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Umetni znak"</string> <string name="sms_control_title" msgid="7296612781128917719">"Slanje SMS poruka"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Aplikacija <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> šalje veliki broj SMS poruka. Želite li dopustiti ovoj aplikaciji da nastavi slati poruke?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Dopusti"</string> + <string name="sms_control_no" msgid="625438561395534982">"Odbij"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Poslati SMS na skraćeni broj?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Poslati premium SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Aplikacija <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> želi poslati tekstnu poruku na <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, a čini se da je to skraćeni SMS broj.<p>Slanje tekstnih poruka na neke skraćene interne brojeve može dovesti do naplate premium usluga na vašem računu mobilnog uređaja.<p>Želite li dopustiti aplikaciji da pošalje poruku?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Aplikacija <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> želi poslati tekstnu poruku na <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, a to je skraćeni premium SMS broj.<p><b>Slanje poruke na taj broj dovest će do naplate premium usluga na vašem računu mobilnog uređaja.</b><p>Želite li dopustiti toj aplikaciji da pošalje poruku?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Pošalji poruku"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Ne šalji"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Prijavi zlonamjerne aplikacije"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM kartica uklonjena"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobilna mreža bit će nedostupna do ponovnog pokretanja s umetnutom važećom SIM karticom."</string> <string name="sim_done_button" msgid="827949989369963775">"Gotovo"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Dodirnite da biste onemogućili rješavanje programske pogreške na USB-u."</string> <string name="select_input_method" msgid="4653387336791222978">"Odabir načina unosa"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Postavljanje načina unosa"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Fizička tipkovnica"</string> + <string name="hardware" msgid="7517821086888990278">"Hardver"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"kandidati"</u></string> diff --git a/core/res/res/values-hu/strings.xml b/core/res/res/values-hu/strings.xml index c8f039f..e57c157 100644 --- a/core/res/res/values-hu/strings.xml +++ b/core/res/res/values-hu/strings.xml @@ -286,7 +286,7 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Lehetővé teszi az alkalmazás számára a képernyő elforgatásának bármikori módosítását. A normál alkalmazásoknak erre soha nincs szüksége."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"mutató sebességének módosítása"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Lehetővé teszi az alkalmazás számára, hogy bármikor módosítsa az egér vagy az érintőpad mutatójának sebességét. Normál alkalmazásoknak soha nem lehet rá szükségük."</string> - <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"billentyűzetkiosztás módosítása"</string> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"billentyűkiosztás módosítása"</string> <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Lehetővé teszi az alkalmazás számára, hogy módosítsa a billentyűzetkiosztást. Normál alkalmazásoknak alapesetben nem lehet szükségük rá."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"Linux-jelek küldése az alkalmazásoknak"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Lehetővé teszi az alkalmazás számára, hogy a megadott jelet elküldje az összes állandó folyamatnak."</string> @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN kód:"</string> <string name="select_character" msgid="3365550120617701745">"Karakter beszúrása"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS-ek küldése"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></ b> nagyszámú SMS üzenetet küld. Engedélyezi, hogy ez az alkalmazás továbbra is üzeneteket küldjön?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Engedélyezés"</string> + <string name="sms_control_no" msgid="625438561395534982">"Elutasítás"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"SMS küldése a rövid kódra?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Elküldi a prémium SMS-t?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"A(z) <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> szöveges üzenetet szeretne küldeni a(z) <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> címre, ami egy SMS rövid kódja.<p>Az egyes rövid kódokra küldött üzenetek miatt mobilszámláján prémiumszolgáltatások lesznek kiszámlázva.</b><p>Engedélyezi, hogy az alkalmazás elküldje az üzenetet?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"A(z) <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> szöveges üzenetet szeretne küldeni a(z) <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> címre, ami egy prémium SMS rövid kódja.<p>Az ide küldött üzenet miatt mobilszámláján prémiumszolgáltatások lesznek kiszámlázva.</b><p>Engedélyezi, hogy az alkalmazás elküldje az üzenetet?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Üzenet küldése"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Nincs küldés"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Rosszindulatú alk. bejelentése"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-kártya eltávolítva"</string> <string name="sim_removed_message" msgid="2333164559970958645">"A mobilhálózat nem lesz elérhető, amíg újra nem indítja egy érvényes SIM kártya behelyezése után."</string> <string name="sim_done_button" msgid="827949989369963775">"Kész"</string> diff --git a/core/res/res/values-in/strings.xml b/core/res/res/values-in/strings.xml index 03dac8a..03c7f79 100644 --- a/core/res/res/values-in/strings.xml +++ b/core/res/res/values-in/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Mengizinkan apl mengubah rotasi layar kapan saja. Tidak pernah dibutuhkan oleh apl normal."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"ubah kecepatan penunjuk"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Mengizinkan apl mengubah kecepatan mouse atau pointer trackpad kapan saja. Tidak pernah diperlukan oleh apl normal."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"Ubah tata letak keyboard"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Memungkinkan aplikasi untuk mengubah tata letak keyboard. Tidak pernah dibutuhkan oleh aplikasi normal."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"mengirim sinyal Linux ke apl"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Mengizinkan apl meminta agar sinyal yang disediakan dikirim ke semua proses yang ada."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"membuat apl selalu berjalan"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Sisipkan huruf"</string> <string name="sms_control_title" msgid="7296612781128917719">"Mengirim pesan SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sedang mengirim pesan SMS dalam jumlah besar. Izinkan aplikasi ini untuk melanjutkan pengiriman pesan?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Izinkan"</string> + <string name="sms_control_no" msgid="625438561395534982">"Tolak"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Kirim SMS ke kode singkat?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Kirim SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> akan mengirim pesan teks ke <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, yang akan muncul sebagai kode singkat SMS.<p>Mengirim pesan teks ke beberapa kode singkat menyebabkan Anda dikenakan biaya layanan premium pada akun seluler Anda.<p>Izinkan aplikasi ini mengirim pesan?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> akan mengirim pesan teks ke <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, yang merupakan kode singkat SMS premium.<p><b>Mengirim pesan ke tujuan ini menyebabkan Anda dikenakan biaya layanan premium pada akun seluler Anda.</b><p>Izinkan aplikasi ini mengirim pesan?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Kirim pesan"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Jangan kirim"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Laporkan aplikasi berbahaya"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Kartu SIM dihapus"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Jaringan seluler tidak akan tersedia sampai Anda memulai lagi dengan memasukkan kartu SIM yang valid."</string> <string name="sim_done_button" msgid="827949989369963775">"Selesai"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Sentuh untuk menonaktifkan debugging USB."</string> <string name="select_input_method" msgid="4653387336791222978">"Pilih metode masukan"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Menyiapkan metode masukan"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Keyboard fisik"</string> + <string name="hardware" msgid="7517821086888990278">"Perangkat Keras"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"calon"</u></string> diff --git a/core/res/res/values-it/strings.xml b/core/res/res/values-it/strings.xml index e9e5924..7ec07d2 100644 --- a/core/res/res/values-it/strings.xml +++ b/core/res/res/values-it/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Inserisci carattere"</string> <string name="sms_control_title" msgid="7296612781128917719">"Invio SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sta inviando molti SMS. Vuoi consentire all\'applicazione di continuare a inviare messaggi?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Consenti"</string> + <string name="sms_control_no" msgid="625438561395534982">"Nega"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Inviare SMS a codice breve?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Inviare SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vorrebbe inviare un messaggio di testo a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, che sembra essere un codice breve SMS.<p>L\'invio di messaggi di testo ad alcuni codici brevi potrebbe comportare l\'addebito di servizi premium sul tuo account per cellulari.<p>Vuoi consentire a questa applicazione di inviare il messaggio?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vorrebbe inviare un messaggio di testo a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, che è un codice breve SMS premium.<p><b>L\'invio di un messaggio a questa destinazione comporterà l\'addebito di servizi premium sul tuo account per cellulari.</b><p>Vuoi consentire a questa applicazione di inviare il messaggio?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Invia messaggio"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Non inviare"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Segnala applicazione dannosa"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Scheda SIM rimossa"</string> <string name="sim_removed_message" msgid="2333164559970958645">"La rete mobile non sarà disponibile finché non eseguirai il riavvio con una scheda SIM valida inserita."</string> <string name="sim_done_button" msgid="827949989369963775">"Fine"</string> diff --git a/core/res/res/values-iw/strings.xml b/core/res/res/values-iw/strings.xml index 731546c..68f5e7e 100644 --- a/core/res/res/values-iw/strings.xml +++ b/core/res/res/values-iw/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"הוסף תו"</string> <string name="sms_control_title" msgid="7296612781128917719">"שולח הודעות SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b> <xliff:g id="APP_NAME">%1$s</xliff:g> </ b> שולח מספר רב של הודעות SMS. האם ברצונך לאפשר ליישום זה להמשיך לשלוח הודעות?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"אפשר"</string> + <string name="sms_control_no" msgid="625438561395534982">"דחה"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"לשלוח SMS לקוד קצר?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"לשלוח SMS פרימיום?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b> <xliff:g id="APP_NAME">%1$s</xliff:g> </ b> רוצה לשלוח הודעת טקסט אל <b> <xliff:g id="DEST_ADDRESS">%2$s</xliff:g> </ b>, שנראה כמו קוד SMS קצר. <p> שליחת הודעות טקסט לקודים קצרים מסוימים עשויה לגרום לחיוב חשבון הנייד שלך בשירותי פרימיום. <p> האם ברצונך לאפשר ליישום זה לשלוח את ההודעה?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b> <xliff:g id="APP_NAME">%1$s</xliff:g> </ b> רוצה לשלוח הודעת טקסט ל-<b> <xliff:g id="DEST_ADDRESS">%2$s</xliff:g> </ b>, שהוא קוד פרימיום קצר של SMS. <b> <p> שליחת הודעה ליעד זה תגרום לחיוב חשבון הנייד שלך בשירותי פרימיום. </ b> <p> האם ברצונך לאפשר ליישום זה לשלוח את ההודעה?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"שלח הודעה"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"אל תשלח"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"דווח על יישום זדוני"</string> <string name="sim_removed_title" msgid="6227712319223226185">"כרטיס ה-SIM הוסר"</string> <string name="sim_removed_message" msgid="2333164559970958645">"הרשת הסלולרית לא תהיה זמינה עד שתפעיל מחדש לאחר הכנסת כרטיס SIM חוקי."</string> <string name="sim_done_button" msgid="827949989369963775">"סיום"</string> diff --git a/core/res/res/values-ja/strings.xml b/core/res/res/values-ja/strings.xml index e9d3558..aa4864c 100644 --- a/core/res/res/values-ja/strings.xml +++ b/core/res/res/values-ja/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"文字を挿入"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMSメッセージの送信中"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>が大量のSMSメッセージを送信しています。このアプリにこのままメッセージの送信を許可しますか?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"許可する"</string> + <string name="sms_control_no" msgid="625438561395534982">"許可しない"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"ショートコードへのSMSの送信"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"プレミアムSMSを送信しますか?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>が、SMSショートコードと思われる<b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>にテキストメッセージを送信しようとしています。<p>一部のショートコードにテキストメッセージを送信すると、プレミアムサービスの料金がモバイルアカウントが請求される場合があります。<p>このアプリにメッセージの送信を許可しますか?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>が、プレミアムSMSショートコード<b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>にテキストメッセージを送信しようとしています。<p><b>この宛先にメッセージを送信すると、プレミアムサービスの料金がモバイルアカウントに請求されます。</b><p>このアプリにメッセージの送信を許可しますか?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"メッセージを送信"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"送信しない"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"悪意のあるアプリを報告"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIMカードが取り外されました"</string> <string name="sim_removed_message" msgid="2333164559970958645">"有効なSIMカードを挿入して再起動するまでは、モバイルネットワークは利用できません。"</string> <string name="sim_done_button" msgid="827949989369963775">"完了"</string> diff --git a/core/res/res/values-ko/strings.xml b/core/res/res/values-ko/strings.xml index 02ab306..0ada67d 100644 --- a/core/res/res/values-ko/strings.xml +++ b/core/res/res/values-ko/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"문자 삽입"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS 메시지를 보내는 중"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>이(가) SMS 메시지를 대량으로 보내고 있습니다. 해당 앱이 메시지를 계속 보내도록 하시겠습니까?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"허용"</string> + <string name="sms_control_no" msgid="625438561395534982">"거부"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"SMS를 단축 코드로 보내시겠습니까?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"프리미엄 SMS를 보내도록 하시겠습니까?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>이(가) SMS 단축 코드로 추정되는 문자 메시지를 <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>(으)로 보내려 합니다.<p>문자 메시지를 단축 코드로 보내면 사용자의 모바일 계정에 프리미엄 서비스 요금이 청구될 수 있습니다.<p>해당 앱이 메시지를 보내도록 하시겠습니까?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>이(가) 문자 메시지를 프리미엄 SMS 단축 코드인 <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>(으)로 보내려 합니다.<p><b>이 목적지로 메시지를 보내면 사용자의 모바일 계정에 프리미엄 서비스 요금이 청구됩니다.</b><p>해당 앱이 메시지를 보내도록 하시겠습니까?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"메시지 보내기"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"보내지 않음"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"악성 앱 신고"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM 카드 제거됨"</string> <string name="sim_removed_message" msgid="2333164559970958645">"유효한 SIM 카드를 삽입하여 다시 시작할 때까지 모바일 네트워크를 사용할 수 없습니다."</string> <string name="sim_done_button" msgid="827949989369963775">"완료"</string> diff --git a/core/res/res/values-lt/strings.xml b/core/res/res/values-lt/strings.xml index 3d389d8..b37cfda 100644 --- a/core/res/res/values-lt/strings.xml +++ b/core/res/res/values-lt/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN kodas:"</string> <string name="select_character" msgid="3365550120617701745">"Įterpti simbolį"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS pranešimų siuntimas"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Naudojant <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> siunčiama daug SMS pranešimų. Ar norite leisti šiai programai toliau siųsti pranešimus?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Leisti"</string> + <string name="sms_control_no" msgid="625438561395534982">"Uždrausti"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Siųsti SMS trumpuoju numeriu?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Siųsti brangesnį SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Naudojant <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> prašoma išsiųsti teksto pranešimą <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, o tai yra trumpasis SMS numeris.<p><b>Siųsdami pranešimus kai kuriais trumpaisiais numeriais galite būti apmokestinti mobiliojo ryšio sąskaitoje už brangesnes paslaugas.</b><p>Ar norite leisti šiai programai siųsti pranešimą?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Naudojant <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> prašoma išsiųsti teksto pranešimą <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, o tai yra brangesnis trumpasis SMS numeris.<p><b>Siųsdami pranešimą šiam gavėjui mobiliojo ryšio sąskaitoje būsite apmokestinti už brangesnes paslaugas.</b><p>Ar norite leisti šiai programai siųsti pranešimą?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Siųsti pranešimą"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Nesiųsti"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Pranešti apie kenkėj. programą"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM kortelė pašalinta"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobilusis tinklas bus nepasiekiamas, kol nepaleisite iš naujo įdėję tinkamą SIM kortelę."</string> <string name="sim_done_button" msgid="827949989369963775">"Atlikta"</string> diff --git a/core/res/res/values-lv/strings.xml b/core/res/res/values-lv/strings.xml index 05d0dbe..2c59d24 100644 --- a/core/res/res/values-lv/strings.xml +++ b/core/res/res/values-lv/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Ievietojiet rakstzīmi"</string> <string name="sms_control_title" msgid="7296612781128917719">"Īsziņu sūtīšana"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Lietotne <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sūta daudz īsziņu. Vai vēlaties, lai šī lietotne turpinātu sūtīt ziņojumus?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Atļaut"</string> + <string name="sms_control_no" msgid="625438561395534982">"Aizliegt"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Vai sūtīt īsziņu uz īso kodu?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Vai nosūtīt īpašo īsziņu?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Lietotne <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vēlas nosūtīt īsziņu uz adresi <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, kas, iespējams, ir īsziņas īsais kods.<p><b>Sūtot īsziņas uz dažiem īsajiem kodiem, no jūsu mobilā konta var tikt iekasēta maksa par paaugstinātas maksas pakalpojumiem.</b><p>Vai vēlaties atļaut šai lietotnei sūtīt šo ziņojumu?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Lietotne <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vēlas nosūtīt īsziņu uz adresi <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, kas, iespējams, ir paaugstinātas maksas īsziņas īsais kods.<p><b>Sūtot ziņojumu uz šo galamērķi, no jūsu mobilā konta tiks iekasēta maksa par paaugstinātas maksas pakalpojumiem.</b><p>Vai vēlaties atļaut šai lietotnei sūtīt šo ziņojumu?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Sūtīt ziņojumu"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Nesūtīt"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Ziņot par ļaunprātīgu lietotni"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM karte ir izņemta."</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobilais tīkls nebūs pieejams līdz brīdim, kad restartēsiet ierīci ar ievietotu derīgu SIM karti."</string> <string name="sim_done_button" msgid="827949989369963775">"Gatavs"</string> diff --git a/core/res/res/values-ms/strings.xml b/core/res/res/values-ms/strings.xml index f0f5630..a97b9c1 100644 --- a/core/res/res/values-ms/strings.xml +++ b/core/res/res/values-ms/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Masukkan aksara"</string> <string name="sms_control_title" msgid="7296612781128917719">"Menghantar mesej SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sedang menghantar banyak mesej SMS. Adakah anda mahu membenarkan apl ini terus menghantar mesej?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Benarkan"</string> + <string name="sms_control_no" msgid="625438561395534982">"Nafikan"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Hantar SMS ke kod pendek?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Hantar SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ingin menghantar mesej teks kepada <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, yang merupakan kod pendek SMS.<p>Menghantar mesej teks ke sesetengah kod pendek boleh menyebabkan akaun mudah alih anda dikenakan bayaran perkhidmatan premium.<p>Adakah anda mahu membenarkan apl ini menghantar mesej itu?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ingin menghantar mesej teks ke <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, yang merupakan kod pendek SMS premium.<p><b>Menghantar mesej ke destinasi ini akan menyebabkan akaun mudah alih anda dikenakan bayaran untuk perkhidmatan premium.</b><p>Adakah anda mahu membenarkan apl ini menghantar mesej itu?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Hantar mesej"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Jangan hantar"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Laporkan aplikasi hasad"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Kad SIM dikeluarkan"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Rangkaian mudah alih tidak akan tersedia sehingga anda mula semula dengan kad SIM yang sah dimasukkan."</string> <string name="sim_done_button" msgid="827949989369963775">"Selesai"</string> diff --git a/core/res/res/values-nb/strings.xml b/core/res/res/values-nb/strings.xml index 6609d29..409ee6d 100644 --- a/core/res/res/values-nb/strings.xml +++ b/core/res/res/values-nb/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Gir appen tillatelse til når som helst å endre rotasjonen av skjermen. Skal aldri være nødvendig for vanlige apper."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"endre pekerhastighet"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Lar appen når som helst endre markørhastigheten til musen eller styreflaten. Skal aldri være nødvendig for vanlige apper."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"endre tastaturutformingen"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Lar appen endre tastaturutformingen. Skal ikke være nødvendig for vanlige apper."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"sende Linux-signaler til apper"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Lar appen be om at det leverte signalet sendes til alle vedvarende prosesser."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"angi at appen alltid skal kjøre"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Sett inn tegn"</string> <string name="sms_control_title" msgid="7296612781128917719">"Sender SMS-meldinger"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> sender et stort antall SMS. Vil du la appen fortsette å sende ut meldinger?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Tillat"</string> + <string name="sms_control_no" msgid="625438561395534982">"Sperr"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Vil du sende SMS til kortkoden?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Vil du sende premium-SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vil sende en tekstmelding til <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, som ser ut ti å være en SMS-kortkode.<p>Hvis du sender en melding til denne destinasjonen, kan mobilkontoen din komme til å belastes for premium-tjenester.<p>Vil du la denne meldingen sendes av appen?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vil sende en tekstmelding til <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, som er en premium SMS-kortkode.<p><b>Hvis du sender en melding til denne destinasjonen, belastes mobilkontoen din for premium-tjenester.</b><p>Vil du la denne meldingen sendes av appen?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Send melding"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Ikke send"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Rapportér skadelig app"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-kort er fjernet"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Det mobile nettverket forblir utilgjengelig inntil du starter på nytt med et gyldig SIM-kort."</string> <string name="sim_done_button" msgid="827949989369963775">"Fullført"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Trykk for å deaktivere USB-feilsøking."</string> <string name="select_input_method" msgid="4653387336791222978">"Velg inndatametode"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Konfigurer inndatametoder"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Fysisk tastatur"</string> + <string name="hardware" msgid="7517821086888990278">"Maskinvare"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ"</string> <string name="candidates_style" msgid="4333913089637062257">"TAG_FONT"<u>"kandidater"</u>"CLOSE_FONT"</string> diff --git a/core/res/res/values-nl/strings.xml b/core/res/res/values-nl/strings.xml index 1c8809a..acb6bef 100644 --- a/core/res/res/values-nl/strings.xml +++ b/core/res/res/values-nl/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"Pincode"</string> <string name="select_character" msgid="3365550120617701745">"Teken invoegen"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS-berichten verzenden"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> verzendt moment een groot aantal sms-berichten. Wilt u toestaan dat deze app berichten blijft verzenden?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Toestaan"</string> + <string name="sms_control_no" msgid="625438561395534982">"Weigeren"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Sms verzenden naar shortcode?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Premium-sms verzenden?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> wil een sms-bericht verzenden naar <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>. Dit is waarschijnlijk een sms-shortcode.<p>Als u sms-berichten naar bepaalde shortcodes verzendt, worden mogelijk kosten voor premiumservices in rekening gebracht op uw mobiele account.<p>Wilt u toestaan dat deze app het bericht verzendt?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> wil een sms-bericht verzenden naar <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>. Dit is premium sms-shortcode.<p><b>Als u een bericht naar deze bestemming verzendt, kosten voor premiumservices in rekening gebracht op uw mobiele account.</b><p>Wilt u toestaan dat deze app het bericht verzendt?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Bericht verzenden"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Niet verzenden"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Kwaadaardige app melden"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Simkaart verwijderd"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Het mobiele netwerk is niet beschikbaar totdat u het apparaat opnieuw start met een geldige simkaart."</string> <string name="sim_done_button" msgid="827949989369963775">"Gereed"</string> diff --git a/core/res/res/values-pl/strings.xml b/core/res/res/values-pl/strings.xml index 83b7aba..39a6583 100644 --- a/core/res/res/values-pl/strings.xml +++ b/core/res/res/values-pl/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"Kod PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Wstaw znak"</string> <string name="sms_control_title" msgid="7296612781128917719">"Wysyłanie wiadomości SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> wysyła wiele SMS-ów. Chcesz pozwolić tej aplikacji dalej wysyłać SMS-y?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Pozwól"</string> + <string name="sms_control_no" msgid="625438561395534982">"Odmów"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Wysłać droższego SMS-a?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Wysłać droższego SMS-a?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> chce wysłać SMS-a pod numer <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, który wygląda na dodatkowo płatny.<p>Może to spowodować doliczenie do Twojego rachunku za komórkę opłaty za usługę dodatkową.<p>Chcesz pozwolić tej aplikacji na wysłanie SMS-a?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> chce wysłać SMS-a pod numer <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, który jest dodatkowo płatny.<p><b>To spowoduje doliczenie do Twojego rachunku za komórkę opłaty za usługę dodatkową.</b><p>Chcesz pozwolić tej aplikacji na wysłanie SMS-a?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Wyślij wiadomość"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Nie wysyłaj"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Zgłoś złośliwą aplikację"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Karta SIM wyjęta"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Sieć komórkowa będzie niedostępna do chwili ponownego uruchomienia urządzenia z użyciem ważnej karty SIM."</string> <string name="sim_done_button" msgid="827949989369963775">"Gotowe"</string> diff --git a/core/res/res/values-pt-rPT/strings.xml b/core/res/res/values-pt-rPT/strings.xml index 8f2f78f..c35cbb6 100644 --- a/core/res/res/values-pt-rPT/strings.xml +++ b/core/res/res/values-pt-rPT/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Introduzir carácter"</string> <string name="sms_control_title" msgid="7296612781128917719">"A enviar mensagens SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> está a enviar um grande número de mensagens SMS. Pretende autorizar que a aplicação continue a enviar mensagens?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Permitir"</string> + <string name="sms_control_no" msgid="625438561395534982">"Recusar"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Enviar SMS ao código pequeno?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Enviar SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> pretende enviar um SMS para <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, que parece ser um código SMS pequeno.<p>Enviar esta mensagem a alguns códigos pequenos pode fazer com que sejam faturados serviços premium na sua conta de telemóvel.<p>Pretende autorizar que a aplicação envie a mensagem?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> pretende enviar um SMS a <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, que é um pequeno código de SMS premium.<p><b>Enviar uma mensagem para este destino irá fazer com que sejam faturados serviços premium na sua conta de telemóvel.</b><p>Pretende autorizar que a aplicação envie a mensagem?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Enviar mensagem"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Não enviar"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Comunicar aplicação maliciosa"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Cartão SIM removido"</string> <string name="sim_removed_message" msgid="2333164559970958645">"A rede de telemóvel estará indisponível até que reinicie o aparelho com um cartão SIM válido inserido."</string> <string name="sim_done_button" msgid="827949989369963775">"Concluído"</string> diff --git a/core/res/res/values-pt/strings.xml b/core/res/res/values-pt/strings.xml index 4d770b5..c22a170 100644 --- a/core/res/res/values-pt/strings.xml +++ b/core/res/res/values-pt/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Inserir caractere"</string> <string name="sms_control_title" msgid="7296612781128917719">"Enviando mensagens SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> envia uma grande quantidade de mensagens SMS. Deseja permitir que este aplicativo continue enviando mensagens?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Permitir"</string> + <string name="sms_control_no" msgid="625438561395534982">"Negar"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Enviar SMS para código curto?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Enviar SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> deseja enviar uma mensagem de texto para <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, que parece ser um código curto SMS.<p>O envio de mensagens de texto a alguns códigos curtos pode fazer com que a conta seja cobrada por serviços premium.<p>Deseja permitir que este aplicativo envie a mensagem?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> deseja enviar uma mensagem de texto para <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, que é um código curto SMS premium.<p><b>O envio de uma mensagem a esse destino fará com que a conta seja cobrada por serviços premium.</b><p>Deseja permitir que este aplicativo envie a mensagem?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Enviar mensagem"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Não enviar"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Denunciar aplicativo malicioso"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Cartão SIM removido"</string> <string name="sim_removed_message" msgid="2333164559970958645">"A rede móvel ficará indisponível até que você reinicie com um cartão SIM válido inserido."</string> <string name="sim_done_button" msgid="827949989369963775">"Concluído"</string> diff --git a/core/res/res/values-ro/strings.xml b/core/res/res/values-ro/strings.xml index 3772861..619e3b9 100644 --- a/core/res/res/values-ro/strings.xml +++ b/core/res/res/values-ro/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Permite aplicaţiei să modifice rotaţia ecranului în orice moment. Nu ar trebui să fie niciodată necesară pentru aplicaţiile obişnuite."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"modifică viteza indicatorului"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Permite aplicaţiei să modifice oricând viteza indicatorului mouse-ului sau al trackpadului. Nu ar trebui să fie niciodată necesară pentru aplicaţiile obişnuite."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"modificaţi aspectul tastaturii"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Permite aplicaţiei să modifice aspectul tastaturii. Nu ar trebui să fie niciodată necesară pentru aplicaţii obişnuite."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"trimitere semnale Linux către aplicaţii"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Permite aplicaţiei să solicite trimiterea semnalului furnizat către toate procesele persistente."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"rulare continuă a aplicaţiei"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"Cod PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Introduceţi caracterul"</string> <string name="sms_control_title" msgid="7296612781128917719">"Se trimit mesaje SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> trimite un număr mare de mesaje SMS. Permiteţi acestei aplicaţii să trimită în continuare mesaje?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Permiteţi"</string> + <string name="sms_control_no" msgid="625438561395534982">"Refuzaţi"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Trimiteţi SMS la codul scurt?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Trimiteţi SMS premium?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> intenţionează să trimită un mesaj text la <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, care pare a fi un cod scurt SMS.<p>Trimiterea de mesaje text la unele coduri scurte poate determina taxarea contului dvs. mobil pentru servicii premium.<p>Permiteţi acestei aplicaţii să trimită mesajul?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> intenţionează să trimită un mesaj text la <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, care este un cod scurt SMS premium.<p><b>Trimiterea unui mesaj la această destinaţie va determina taxarea contului dvs. mobil pentru servicii premium.</b><p>Permiteţi acestei aplicaţii să trimită mesajul?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Trimiteţi mesajul"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Nu trimiteţi"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Raport. aplic.rău intenţionată"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Card SIM eliminat"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Reţeaua mobilă va fi indisponibilă până când reporniţi cu o cartelă SIM validă introdusă."</string> <string name="sim_done_button" msgid="827949989369963775">"Terminat"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Atingeţi pentru a dezactiva depanarea USB."</string> <string name="select_input_method" msgid="4653387336791222978">"Alegeţi metoda de introducere"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Configurare metode introducere"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Tastatură fizică"</string> + <string name="hardware" msgid="7517821086888990278">"Hardware"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"candidaţi"</u></string> diff --git a/core/res/res/values-ru/strings.xml b/core/res/res/values-ru/strings.xml index b967620..1de5237 100644 --- a/core/res/res/values-ru/strings.xml +++ b/core/res/res/values-ru/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN-код:"</string> <string name="select_character" msgid="3365550120617701745">"Введите символ"</string> <string name="sms_control_title" msgid="7296612781128917719">"Отправка SMS-сообщений"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> отправляет большое количество SMS. Разрешить приложению и дальше отправлять сообщения?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Разрешить"</string> + <string name="sms_control_no" msgid="625438561395534982">"Запретить"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Отправить SMS?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Отправить SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> собирается отправить SMS-сообщение на короткий номер <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b><p> За отправку сообщений на некоторые короткие номера с вашего счета могут списываться дополнительные средства.<p>Разрешить отправку?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> собирается отправить SMS на короткий номер <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>.<p><b> Если это произойдет, с вашего счета будут списаны дополнительные средства.</b><p>Разрешить отправку?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Отправить сообщение"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Не отправлять"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Сообщить о вредоносном ПО"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-карта удалена"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Пока вы не вставите действующую SIM-карту, мобильная сеть будет недоступна."</string> <string name="sim_done_button" msgid="827949989369963775">"Готово"</string> diff --git a/core/res/res/values-sk/strings.xml b/core/res/res/values-sk/strings.xml index 1bf7a17..34c9eb0 100644 --- a/core/res/res/values-sk/strings.xml +++ b/core/res/res/values-sk/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Vkladanie znakov"</string> <string name="sms_control_title" msgid="7296612781128917719">"Odosielanie správ SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Aplikácia <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> posiela veľký počet správ SMS. Chcete tejto aplikácií povoliť, aby aj naďalej posielala správy?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Povoliť"</string> + <string name="sms_control_no" msgid="625438561395534982">"Odmietnuť"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Odoslať SMS na skrátené číslo?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Odoslať prémiovú správu SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Aplikácia <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> chce odoslať textovú správu na číslo <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ktoré sa zdá byť skráteným číslom SMS.<p>Odoslanie správy na skrátené číslo môže spôsobiť, že na účet vášho mobilného zariadenia budú účtované poplatky za prémiové služby.<p>Chcete aplikácií povoliť túto správu odoslať?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Aplikácia <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> chce odoslať textovú správu na číslo <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ktoré je prémiovým skráteným číslom SMS.<p><b>Odoslanie správy na toto číslo spôsobí, že na účet vášho mobilného zariadenia budú účtované poplatky za prémiové služby.</b><p>Chcete aplikácii povoliť túto správu odoslať?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Odoslať správu"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Neodoslať"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Nahlásiť škodlivú aplikáciu"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Karta SIM bola odobraná"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobilná sieť nebude k dispozícii, kým nevložíte platnú kartu SIM a zariadenie nereštartujete."</string> <string name="sim_done_button" msgid="827949989369963775">"Hotovo"</string> diff --git a/core/res/res/values-sl/strings.xml b/core/res/res/values-sl/strings.xml index 152d1c1..a1a9a03 100644 --- a/core/res/res/values-sl/strings.xml +++ b/core/res/res/values-sl/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Vstavljanje znaka"</string> <string name="sms_control_title" msgid="7296612781128917719">"Pošiljanje sporočil SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> pošilja veliko SMS-ov. Ali želite dovoliti, da jih še naprej pošilja?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Dovoli"</string> + <string name="sms_control_no" msgid="625438561395534982">"Zavrni"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Pošljem SMS na kratko štev.?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Pošljem SMS za plačlj. stor.?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> želi poslati SMS na številko <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, kar je videti kot kratka številka za plačljive storitve SMS.<p>S pošiljanjem sporočil na to številko bo vaš račun za mobilni telefon bremenjen za plačljive storitve.<p>Ali želite aplikaciji dovoliti, da pošlje sporočilo?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> želi poslati SMS na številko <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, kar je kratka številka za plačljive storitve SMS.<p><b>S pošiljanjem sporočil na to številko bo vaš račun za mobilni telefon bremenjen za plačljive storitve.</b><p>Ali želite aplikaciji dovoliti, da pošlje sporočilo?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Pošlji sporočilo"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Ne pošlji"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Prijavi zlonamerno aplikacijo"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Kartica SIM odstranjena"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mobilno omrežje ne bo na voljo, dokler naprave vnovič ne zaženete z veljavno kartico SIM."</string> <string name="sim_done_button" msgid="827949989369963775">"Dokončano"</string> diff --git a/core/res/res/values-sr/strings.xml b/core/res/res/values-sr/strings.xml index 9e63b31..b28719b 100644 --- a/core/res/res/values-sr/strings.xml +++ b/core/res/res/values-sr/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Дозвољава апликацији да у сваком тренутку промени ротацију екрана. Уобичајене апликације никада не би требало да је користе."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"промена брзине показивача"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Дозвољава апликацији да у било ком тренутку промени брзину показивача миша или показивачког уређаја са плочицом. Уобичајене апликације никада не би требало да је користе."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"промена распореда тастатуре"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Дозвољава апликацији да мења распоред тастатуре. Уобичајене апликације никада не би требало да је користе."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"слање Linux сигнала апликацијама"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Дозвољава апликацији да захтева да испоручени сигнал буде послат свим трајним процесима."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"омогућавање непрекидне активности апликације"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Уметање знака"</string> <string name="sms_control_title" msgid="7296612781128917719">"Слање SMS порука"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> шаље велики број SMS порука. Желите ли да дозволите овој апликацији да настави са слањем порука?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Дозволи"</string> + <string name="sms_control_no" msgid="625438561395534982">"Одбиј"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Пошаљи SMS на кратак кôд?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Желите да пошаљете премијум SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> жели да вам пошаље текстуалну поруку на адресу <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, која можда представља кратак кôд SMS-а.<p>Слање порука на неке кратке кодове може да се наплаћује као премијум услуга са налога за мобилни уређај.<p>Желите ли да дозволите овој апликацији да пошаље поруку?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> жели да вам пошаље текстуалну поруку на адресу <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, која представља кратак кôд премијум SMS-а.<p><b>Ако се пошаље порука на ово одредиште, биће вам наплаћена премијум услуга са налога за мобилни уређај.</b><p>Желите ли да дозволите овој апликацији да пошаље поруку?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Пошаљи поруку"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Не шаљи"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Пријави злонамерну апликацију"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM картица је уклоњена"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Мобилна мрежа неће бити доступна док не покренете систем поново уз уметање важеће SIM картице."</string> <string name="sim_done_button" msgid="827949989369963775">"Готово"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Додирните да бисте онемогућили отклањање грешака са USB-а."</string> <string name="select_input_method" msgid="4653387336791222978">"Избор метода уноса"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Подеси методе уноса"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Физичка тастатура"</string> + <string name="hardware" msgid="7517821086888990278">"Хардвер"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"кандидати"</u></string> diff --git a/core/res/res/values-sv/strings.xml b/core/res/res/values-sv/strings.xml index 3db9ec7..da3640d 100644 --- a/core/res/res/values-sv/strings.xml +++ b/core/res/res/values-sv/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN-kod:"</string> <string name="select_character" msgid="3365550120617701745">"Infoga tecken"</string> <string name="sms_control_title" msgid="7296612781128917719">"Skickar SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> skickar ett stort antal SMS. Vill du tillåta att appen fortsätter att skicka meddelanden?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Tillåt"</string> + <string name="sms_control_no" msgid="625438561395534982">"Neka"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Skicka SMS till kortkod?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Skicka premium-SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vill skicka ett SMS till <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> som verkar vara en kortkod för SMS.<p>När du skickar SMS till kortkoder kan mobilkontot debiteras för premiumtjänster.<p>Vill du tillåta att appen skickar meddelandet?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> vill skicka ett SMS till <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> som är en kortkod för SMS.<p><b>Om du skickar ett meddelande till den här mottagaren kommer ditt mobilkonto att debiteras för premiumtjänster.</b><p>Vill du tillåta att appen skickar meddelandet?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Skicka meddelande"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Skicka inte"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Rapportera skadlig app"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-kortet togs bort"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Det mobila nätverket kommer inte att vara tillgängligt förrän du startar om med ett giltigt SIM-kort."</string> <string name="sim_done_button" msgid="827949989369963775">"Klar"</string> diff --git a/core/res/res/values-sw/strings.xml b/core/res/res/values-sw/strings.xml index 20bc2c6..5f9a8b1 100644 --- a/core/res/res/values-sw/strings.xml +++ b/core/res/res/values-sw/strings.xml @@ -287,7 +287,7 @@ <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"Badilisha kasi ya pointa"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Inaruhusu programu kubadilisha kasi ya kielekezi cha kipanya au pedi ya kufuatilia wakati wowote. Kamwe haitahitajika kwa programu za kawaida."</string> <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"badilisha mpangilio wa kibodi"</string> - <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Inaruhusu programu kubadilisha mpangilio wa kibodi. Haipaswi kamwe kuhitajika kwa rogramu za kawaida."</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Inaruhusu programu kubadilisha mpangilio wa kibodi. Haipaswi kamwe kuhitajika kwa programu za kawaida."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"Tuma ishara za Linux kwa programu"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Inaruhusu programu kuomba ishara iliyotolewa kutumwa kwa michakato inyoendelea."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"Fanya programu kuendeshwa kila mara"</string> @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Ingiza kibambo"</string> <string name="sms_control_title" msgid="7296612781128917719">"Inatuma ujumbe wa SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> inatuma idadi kubwa ya ujumbe wa SMS. Je, unataka kuruhusu programu hii kuendelea kutuma ujumbe?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Ruhusu"</string> + <string name="sms_control_no" msgid="625438561395534982">"Kataa"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Tuma ujumbe mfupi kwa msimbo mfupi?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Tuma ujumbe mfupi wa ada?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>ingependa kutuma ujumbe kwa <b>i<xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ambayo inaonekana kama msimbo mfupi wa ujumbe mfupi.<p>Kutuma ujumbe mfupi kwa baadhi ya misimbo mifupi kunaweza kusababisha akaunti yako ya simu kulipishwa huduma ya ada.<p>Je, unataka kuruhusu programu hii kutuma ujumbe?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ingetaka kutuma ujumbe wa maandishi kwa <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, ambayo ni msimbo mfupi wa SMS ya ada.<p><b>Kutuma ujumbe kwa mwisho huu kutasababisha akaunti yako ya simu kulipishwa kwa huduma ya ada.</b><p>Je, unataka kuruhusu programu hii kutuma ujumbe?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Tuma ujumbe"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Usitume"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Ripoti programu mbaya"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Kadi ya SIM imeondolewa"</string> <string name="sim_removed_message" msgid="2333164559970958645">"mtandao wa simu hutapatika hadi uanzishe upya na SIM kadi halali iliyoingizwa."</string> <string name="sim_done_button" msgid="827949989369963775">"Kwisha"</string> diff --git a/core/res/res/values-th/strings.xml b/core/res/res/values-th/strings.xml index 0884fb7..0dd113f 100644 --- a/core/res/res/values-th/strings.xml +++ b/core/res/res/values-th/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"อนุญาตให้แอปพลิเคชันเปลี่ยนการหมุนของหน้าจอได้ตลอดเวลา ไม่ควรต้องใช้สำหรับแอปพลิเคชันทั่วไป"</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"เปลี่ยนความเร็วของตัวชี้"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"อนุญาตให้แอปพลิเคชันเปลี่ยนความเร็วตัวชี้ของเมาส์หรือแทร็กแพดได้ทุกเมื่อ ไม่ควรต้องใช้สำหรับแอปพลิเคชันทั่วไป"</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"เปลี่ยนการจัดวางแป้นพิมพ์"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"อนุญาตให้แอปพลิเคชันเปลี่ยนการจัดวางแป้นพิมพ์ ไม่ควรต้องใช้สำหรับแอปพลิเคชันทั่วไป"</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"ส่งสัญญาณ Linux ไปยังแอปพลิเคชัน"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"อนุญาตให้แอปพลิเคชันร้องขอให้ส่งสัญญาณแจ้งไปยังกระบวนการที่ยังทำงานอยู่ทั้งหมด"</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"ทำให้แอปพลิเคชันทำงานเสมอ"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"ใส่อักขระ"</string> <string name="sms_control_title" msgid="7296612781128917719">"กำลังส่งข้อความ SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> กำลังส่งข้อความ SMS จำนวนมาก คุณต้องการอนุญาตใ้ห้แอปพลิเคชันนี้ส่งข้อความต่อหรือไม่"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"อนุญาต"</string> + <string name="sms_control_no" msgid="625438561395534982">"ปฏิเสธ"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"ส่ง SMS เป็นรหัสสั้นหรือไม่"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"ส่ง SMS พรีเมียมหรือไม่"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ต้องการส่งข้อความให้กับ <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> ซึ่งเป็น SMS รหัสสั้น<p>การส่งข้อความเป็นรหัสสั้นบางอย่างอาจทำให้มีการเรียกเก็บเงินในบัญชีมือถือของคุณสำหรับบริการพรีเมียม<p>คุณต้องการอนุญาตให้แอปพลิเคชันนี้ส่งข้อความหรือไม่"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ต้องการส่งข้อความให้กับ <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> ซึ่งเป็น SMS รหัสสั้นแบบพรีเมียม<p><b>การส่งข้อความไปยังปลายทางนี้จะทำให้มีการเรียกเก็บเงินในบัญชีมือถือของคุณสำหรับบริการพรีเมียม</b><p>คุณต้องการอนุญาตให้แอปพลิเคชันนี้ส่งข้อความหรือไม่"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"ส่งข้อความ"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"ไม่ส่ง"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"รายงานแอปที่เป็นอันตราย"</string> <string name="sim_removed_title" msgid="6227712319223226185">"นำซิมการ์ดออกแล้ว"</string> <string name="sim_removed_message" msgid="2333164559970958645">"เครือข่ายมือถือจะไม่สามารถใช้งานได้จนกว่าคุณจะรีสตาร์ทโดยใส่ซิมการ์ดที่ถูกต้องแล้ว"</string> <string name="sim_done_button" msgid="827949989369963775">"เสร็จสิ้น"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"แตะเพื่อปิดใช้งานการแก้ไขข้อบกพร่องของ USB"</string> <string name="select_input_method" msgid="4653387336791222978">"เลือกวิธีการป้อนข้อมูล"</string> <string name="configure_input_methods" msgid="9091652157722495116">"ตั้งค่าวิธีการป้อนข้อมูล"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"แป้นพิมพ์บนเครื่อง"</string> + <string name="hardware" msgid="7517821086888990278">"ฮาร์ดแวร์"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"ตัวเลือก"</u></string> diff --git a/core/res/res/values-tl/strings.xml b/core/res/res/values-tl/strings.xml index 26f7d5e..f72709a 100644 --- a/core/res/res/values-tl/strings.xml +++ b/core/res/res/values-tl/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Magpasok ng character"</string> <string name="sms_control_title" msgid="7296612781128917719">"Nagpapadala ng mga SMS na mensahe"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Ang <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ay nagpapadala ng maraming mensaheng SMS. Gusto mo bang payagan ang app na ito na magpatuloy sa pagpapadala ng mga mensahe?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Payagan"</string> + <string name="sms_control_no" msgid="625438561395534982">"Tanggihan"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Magpadala SMS sa short code?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Ipadala ang premium na SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Ang <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ay gustong magpadala ng text message sa <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, na lumilitaw na isang SMS na short code.<p>Ang pagpapadala ng mga text message sa ilang short code ay maaaring magdulot ng pagsingil sa iyong mobile account para sa mga premium na serbisyo.<p>Gusto mo bang payagan ang app na ito na ipadala ang mensahe?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Ang <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ay gustong magpadala ng text message sa <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, na isang premium na SMS na short code.<p><b>Ang pagpapadala ng mensahe sa patutunguhang ito ay magdudulot ng pagsingil sa iyong mobile account para sa mga premium na serbisyo.</b><p>Gusto mo bang payagan ang app na ito na ipadala ang mensahe?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Ipadala ang mensahe"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Huwag ipadala"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Mag-ulat ng nakakapahamak na app"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Naalis ang SIM card"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Hindi magiging available ang mobile network hanggang mag-restart ka gamit ang isang may-bisang SIM card"</string> <string name="sim_done_button" msgid="827949989369963775">"Tapos na"</string> diff --git a/core/res/res/values-tr/strings.xml b/core/res/res/values-tr/strings.xml index 8abf38d..cb99c5f 100644 --- a/core/res/res/values-tr/strings.xml +++ b/core/res/res/values-tr/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Karakter ekle"</string> <string name="sms_control_title" msgid="7296612781128917719">"SMS mesajları gönderiliyor"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> çok sayıda SMS mesajı gönderiyor. Bu uygulamanın mesaj göndermeye devam etmesine izin veriyor musunuz?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"İzin ver"</string> + <string name="sms_control_no" msgid="625438561395534982">"Reddet"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Kısa koda SMS gönderilsin mi?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Premium SMS gönderilsin mi?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>, SMS kısa koduna sahip olduğu anlaşılan <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> hedefine bir kısa mesaj göndermek istiyor.<p>Bazı kısa kodlara kısa mesaj göndermek mobil hesabınızın premium hizmetle faturalandırılmasına neden olabilir.</b><p>Bu uygulamanın mesaj göndermesine izin vermek istiyor musunuz?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> premium SMS kısa koduna sahip <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b> hedefine kısa mesaj göndermek istiyor.<p><b>Bu hedefe mesaj göndermek mobil hesabınızın premium hizmetle faturalandırılmasına neden olur.</b><p>Bu uygulamanın mesaj göndermesine izin vermek istiyor musunuz?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Mesajı gönder"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Gönderme"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Kötü amaçlı uygulamayı bildir"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM kart çıkarıldı"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Geçerli bir SIM kart yerleştirilmiş olarak yeniden başlatana kadar mobil ağ kullanılamayacak."</string> <string name="sim_done_button" msgid="827949989369963775">"Tamamlandı"</string> diff --git a/core/res/res/values-uk/strings.xml b/core/res/res/values-uk/strings.xml index 5504176..6731903 100644 --- a/core/res/res/values-uk/strings.xml +++ b/core/res/res/values-uk/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"Дозволяє програмі будь-коли змінювати обертання екрана. Ніколи не застосовується для звичайних програм."</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"змінювати швидкість указівника"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Дозволяє програмі будь-коли змінювати швидкість вказівника миші чи сенсорної панелі. Ніколи не застосовується для звичайних програм."</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"змінити розкладку клавіатури"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Дозволяє програмі змінювати розкладку клавіатури. Ніколи не застосовується для звичайних програм."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"надсилати сигнали Linux програмам"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Дозволяє програмі подавати запит щодо надсилання наданого сигналу всім сталим процесам."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"заставляти програму постійно функціонувати"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN-код:"</string> <string name="select_character" msgid="3365550120617701745">"Вставл-ня символу"</string> <string name="sms_control_title" msgid="7296612781128917719">"Надсил. SMS повідомлень"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"Програма <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> надсилає велику кількість SMS-повідомлень. Дозволити цій програмі й надалі надсилати повідомлення?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Дозволити"</string> + <string name="sms_control_no" msgid="625438561395534982">"Відмовити"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Надіслати SMS на короткий код?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Надіслати спеціальне SMS?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"Програма <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> хоче надіслати текстове повідомлення на адресу <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, яка є коротким кодом SMS.<p><b>Якщо надсилати текстові повідомлення на певні короткі коди, з вашого мобільного рахунку буде стягнено плату за спеціальні послуги.</b><p>Дозволити цій програмі надіслати повідомлення?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"Програма <b><xliff:g id="APP_NAME">%1$s</xliff:g></b> хоче надіслати текстове повідомлення на адресу <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, яка є коротким кодом спеціальних SMS.<p><b>Якщо надіслати повідомлення на цю адресу, з вашого мобільного рахунку буде стягнено плату за спеціальні послуги.</b><p>Дозволити цій програмі надіслати повідомлення?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Надіслати повідомлення"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Не надсилати"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Повідом. про шкідливу програму"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM-карту вилучено"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Мобільна мережа буде недоступна, поки ви не здійсните перезапуск, вставивши дійсну SIM-карту."</string> <string name="sim_done_button" msgid="827949989369963775">"Готово"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"Торкніться, щоб вимкнути налагодження USB."</string> <string name="select_input_method" msgid="4653387336791222978">"Вибрати метод введення"</string> <string name="configure_input_methods" msgid="9091652157722495116">"Налаштувати методи введення"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"Фізична клавіатура"</string> + <string name="hardware" msgid="7517821086888990278">"Обладнання"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЬЮЯ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"кандидати"</u></string> diff --git a/core/res/res/values-vi/strings.xml b/core/res/res/values-vi/strings.xml index 96e97f6..c4d9470 100644 --- a/core/res/res/values-vi/strings.xml +++ b/core/res/res/values-vi/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"Mã PIN:"</string> <string name="select_character" msgid="3365550120617701745">"Chèn ký tự"</string> <string name="sms_control_title" msgid="7296612781128917719">"Đang gửi tin nhắn SMS"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> đang gửi rất nhiều tin nhắn SMS. Bạn có muốn cho phép ứng dụng này tiếp tục gửi tin nhắn không?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"Cho phép"</string> + <string name="sms_control_no" msgid="625438561395534982">"Từ chối"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Gửi SMS cho mã ngắn?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Gửi tin nhắn SMS trả phí?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> muốn gửi tin nhắn văn bản cho <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, dường như là một mã ngắn SMS.<p>Việc gửi tin nhắn văn bản cho một số mã ngắn có thể khiến cho tài khoản di động của bạn bị lập hóa đơn cho dịch vụ trả phí.<p>Bạn có muốn cho phép ứng dụng này gửi tin nhắn không?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> muốn gửi tin nhắn văn bản cho <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, là một mã ngắn SMS trả phí.<p><b>Gửi tin nhắn tới địa chỉ này sẽ khiến cho tài khoản di động của bạn bị lập hóa đơn cho dịch vụ trả phí.</b><p>Bạn có muốn cho phép ứng dụng này gửi tin nhắn không?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Gửi tin nhắn"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Không gửi"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Báo cáo ứng dụng độc hại"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Đã xóa thẻ SIM"</string> <string name="sim_removed_message" msgid="2333164559970958645">"Mạng di động sẽ không khả dụng cho đến khi bạn khởi động lại với thẻ SIM hợp lệ được lắp."</string> <string name="sim_done_button" msgid="827949989369963775">"Xong"</string> diff --git a/core/res/res/values-zh-rCN/strings.xml b/core/res/res/values-zh-rCN/strings.xml index 08a15e4..c0c30ff 100644 --- a/core/res/res/values-zh-rCN/strings.xml +++ b/core/res/res/values-zh-rCN/strings.xml @@ -1008,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"插入字符"</string> <string name="sms_control_title" msgid="7296612781128917719">"正在发送短信"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>在发送大量短信。是否允许该应用继续发送短信?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"允许"</string> + <string name="sms_control_no" msgid="625438561395534982">"拒绝"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"向短码发送短信吗?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"发送付费短信吗?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>想要向 <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>(这似乎是一个短信短码)发送短信。<p>向某些短码发送短信可能会导致您的移动帐户因使用付费服务而扣费。<p>是否允许该应用发送短信?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b><xliff:g id="APP_NAME">%1$s</xliff:g></b>想要向 <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>(这是一个付费短信短码)发送短信。<p><b>向该地址发送短信会导致您的移动帐户因使用付费服务而扣费</b>。<p>是否允许该应用发送短信?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"发送短信"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"不发送"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"举报恶意应用"</string> <string name="sim_removed_title" msgid="6227712319223226185">"已移除 SIM 卡"</string> <string name="sim_removed_message" msgid="2333164559970958645">"移动网络不可用。请插入有效的 SIM 卡并重新启动。"</string> <string name="sim_done_button" msgid="827949989369963775">"完成"</string> diff --git a/core/res/res/values-zh-rTW/strings.xml b/core/res/res/values-zh-rTW/strings.xml index 0468534..1e08a95 100644 --- a/core/res/res/values-zh-rTW/strings.xml +++ b/core/res/res/values-zh-rTW/strings.xml @@ -286,10 +286,8 @@ <string name="permdesc_setOrientation" msgid="3046126619316671476">"允許應用程式隨時變更螢幕旋轉狀態 (一般應用程式不需使用)。"</string> <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"變更指標速度"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"允許應用程式隨時變更滑鼠或觸控板游標的移動速度 (一般應用程式不需使用)。"</string> - <!-- no translation found for permlab_setKeyboardLayout (4778731703600909340) --> - <skip /> - <!-- no translation found for permdesc_setKeyboardLayout (8480016771134175879) --> - <skip /> + <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"變更鍵盤配置"</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"允許應用程式變更鍵盤配置 (一般應用程式不需使用)。"</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"將 Linux 訊號傳送給應用程式"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"允許應用程式要求將提供的訊號傳送給所有持續運作中的處理程序。"</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"一律執行應用程式"</string> @@ -1010,26 +1008,16 @@ <string name="wifi_p2p_show_pin_message" msgid="8530563323880921094">"PIN:"</string> <string name="select_character" msgid="3365550120617701745">"插入字元"</string> <string name="sms_control_title" msgid="7296612781128917719">"傳送 SMS 簡訊"</string> - <!-- no translation found for sms_control_message (3867899169651496433) --> - <skip /> - <!-- no translation found for sms_control_yes (3663725993855816807) --> - <skip /> - <!-- no translation found for sms_control_no (625438561395534982) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_title (1666863092640877318) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_title (3811263856304367838) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_message (5616409294907295407) --> - <skip /> - <!-- no translation found for sms_premium_short_code_confirm_message (6214083016284738667) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_allow (8957573662645722940) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_deny (6374609298084435887) --> - <skip /> - <!-- no translation found for sms_short_code_confirm_report (2588793956061677070) --> - <skip /> + <string name="sms_control_message" msgid="3867899169651496433">"<b></b>「<xliff:g id="APP_NAME">%1$s</xliff:g>」正在傳送大量簡訊。您要允許這個應用程式繼續傳送簡訊嗎?"</string> + <string name="sms_control_yes" msgid="3663725993855816807">"允許"</string> + <string name="sms_control_no" msgid="625438561395534982">"拒絕"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"傳送簡訊給短碼?"</string> + <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"傳送付費簡訊?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"<b></b>「<xliff:g id="APP_NAME">%1$s</xliff:g>」想要傳送簡訊給簡訊短碼 <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>。<p>傳送簡訊給簡訊短碼之後,系統即會從您的行動帳戶扣除付費服務的費用。<p>您要允許這個應用程式傳送簡訊嗎?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"<b></b>「<xliff:g id="APP_NAME">%1$s</xliff:g>」想要傳送簡訊給付費簡訊短碼 <b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>。<p><b>傳送簡訊給這個對象之後,系統即會從您的行動帳戶扣除付費服務的費用。</b><p>您要允許這個應用程式傳送簡訊嗎?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"傳送簡訊"</string> + <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"不要傳送"</string> + <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"檢舉惡意應用程式"</string> <string name="sim_removed_title" msgid="6227712319223226185">"SIM 卡已移除"</string> <string name="sim_removed_message" msgid="2333164559970958645">"您必須先插入有效的 SIM 卡再重新啟動手機,才能使用行動網路。"</string> <string name="sim_done_button" msgid="827949989369963775">"完成"</string> @@ -1079,10 +1067,8 @@ <string name="adb_active_notification_message" msgid="1016654627626476142">"輕觸即可停用 USB 偵錯。"</string> <string name="select_input_method" msgid="4653387336791222978">"選擇輸入法"</string> <string name="configure_input_methods" msgid="9091652157722495116">"設定輸入法"</string> - <!-- no translation found for use_physical_keyboard (6203112478095117625) --> - <skip /> - <!-- no translation found for hardware (7517821086888990278) --> - <skip /> + <string name="use_physical_keyboard" msgid="6203112478095117625">"實體鍵盤"</string> + <string name="hardware" msgid="7517821086888990278">"硬體"</string> <string name="fast_scroll_alphabet" msgid="5433275485499039199">" ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="fast_scroll_numeric_alphabet" msgid="4030170524595123610">" 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"</string> <string name="candidates_style" msgid="4333913089637062257"><u>"待選項目"</u></string> diff --git a/core/res/res/values-zu/strings.xml b/core/res/res/values-zu/strings.xml index c910d4a..114d45b 100644 --- a/core/res/res/values-zu/strings.xml +++ b/core/res/res/values-zu/strings.xml @@ -287,7 +287,7 @@ <string name="permlab_setPointerSpeed" msgid="9175371613322562934">"guqula isivinini sesikhombi"</string> <string name="permdesc_setPointerSpeed" msgid="6866563234274104233">"Ivumela insiza ukuthi iguqule ijubane legundane noma lendawo yokukhomba ngomunwe. Akufanele kudingakele izinsiza ezijwayelekile."</string> <string name="permlab_setKeyboardLayout" msgid="4778731703600909340">"shintsha isendlalelo sekhibhodi"</string> - <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Ivumela uhlelo lokusebenza ukushintsha isendlalelo sekhibhodi. Kufanele ingadingi izinhlelo zokusebenzia ezivamile."</string> + <string name="permdesc_setKeyboardLayout" msgid="8480016771134175879">"Ivumela uhlelo lokusebenza ukushintsha isendlalelo sekhibhodi. Kufanele ingadingi izinhlelo zokusebenza ezivamile."</string> <string name="permlab_signalPersistentProcesses" msgid="4539002991947376659">"Thumela imifanekiso ye-Linu ezinsizeni"</string> <string name="permdesc_signalPersistentProcesses" msgid="4896992079182649141">"Ivumela insiza ukuthi icele ukuthi isiginali ethunyelwe idluliselwe kuzo zonke izinqubeko ezisalelayo."</string> <string name="permlab_persistentActivity" msgid="8841113627955563938">"yenza insiza ukuthi ihlale isebenza"</string> @@ -1011,11 +1011,11 @@ <string name="sms_control_message" msgid="3867899169651496433">"I-<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ithumela inombolo enkulu yemilayezo ye-SMS. Ufuna ukuvumela lolu hlelo lokusebenza ukuqhubeka ukuthumela imilayezo?"</string> <string name="sms_control_yes" msgid="3663725993855816807">"Vumela"</string> <string name="sms_control_no" msgid="625438561395534982">"Nqaba"</string> - <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Thumela ikhodi efushane?"</string> + <string name="sms_short_code_confirm_title" msgid="1666863092640877318">"Thumela i-SMS kukhodi emfushane?"</string> <string name="sms_premium_short_code_confirm_title" msgid="3811263856304367838">"Ukuthumela i-SMS ye-premium?"</string> - <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"I-<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ithanda ukuthumela umlayezo wombhalo ku-<b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, okubonakala sengathi ikhodi ye-SMS efushane.<p>Ukuthumela umlayezo wombhalo kungabangela i-akhawunti yeselula yakho ukuthi ikhokheliswe amasevisi e-premium.<p>Ufuna ukuvumela uhlelo lokusebenza ukuthumela umlayezo?"</string> - <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"I-<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ithanda ukuthumela umlayezo wombhalo ku-<b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, okuyikhodi efushane ye-SMS ye-premium.<p><b>Ukuthumela umlayezo kule ndawo kuzobangela i-akhawunti yeselula yakho ukuthi ikhokheliswe amasevisi e-premium.</b><p>Ufuna ukuvumela lolu hlelo lokusebenza ukuthumela umlayezo?"</string> - <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Thumela umlayezo?"</string> + <string name="sms_short_code_confirm_message" msgid="5616409294907295407">"I-<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ithanda ukuthumela umlayezo wombhalo ku-<b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, okubonakala sengathi ikhodi ye-SMS emfushane.<p>Ukuthumela umlayezo wombhalo kungabangela i-akhawunti yeselula yakho ukuthi ikhokheliswe amasevisi e-premium.<p>Ufuna ukuvumela uhlelo lokusebenza ukuthumela umlayezo?"</string> + <string name="sms_premium_short_code_confirm_message" msgid="6214083016284738667">"I-<b><xliff:g id="APP_NAME">%1$s</xliff:g></b> ithanda ukuthumela umlayezo wombhalo ku-<b><xliff:g id="DEST_ADDRESS">%2$s</xliff:g></b>, okuyikhodi emfushane ye-SMS ye-premium.<p><b>Ukuthumela umlayezo kule ndawo kuzobangela i-akhawunti yeselula yakho ukuthi ikhokheliswe amasevisi e-premium.</b><p>Ufuna ukuvumela lolu hlelo lokusebenza ukuthumela umlayezo?"</string> + <string name="sms_short_code_confirm_allow" msgid="8957573662645722940">"Thumela umlayezo"</string> <string name="sms_short_code_confirm_deny" msgid="6374609298084435887">"Ungathumeli"</string> <string name="sms_short_code_confirm_report" msgid="2588793956061677070">"Bika uhlelo lokusebenza olungalungile"</string> <string name="sim_removed_title" msgid="6227712319223226185">"Ikhadi le-SIM likhishiwe"</string> diff --git a/data/keyboards/Generic.kcm b/data/keyboards/Generic.kcm index b5f6897..544076f 100644 --- a/data/keyboards/Generic.kcm +++ b/data/keyboards/Generic.kcm @@ -28,14 +28,12 @@ key A { label: 'A' base: 'a' shift, capslock: 'A' - ctrl, alt, meta: none } key B { label: 'B' base: 'b' shift, capslock: 'B' - ctrl, alt, meta: none } key C { @@ -44,14 +42,12 @@ key C { shift, capslock: 'C' alt: '\u00e7' shift+alt: '\u00c7' - ctrl, meta: none } key D { label: 'D' base: 'd' shift, capslock: 'D' - ctrl, alt, meta: none } key E { @@ -59,28 +55,24 @@ key E { base: 'e' shift, capslock: 'E' alt: '\u0301' - ctrl, meta: none } key F { label: 'F' base: 'f' shift, capslock: 'F' - ctrl, alt, meta: none } key G { label: 'G' base: 'g' shift, capslock: 'G' - ctrl, alt, meta: none } key H { label: 'H' base: 'h' shift, capslock: 'H' - ctrl, alt, meta: none } key I { @@ -88,35 +80,30 @@ key I { base: 'i' shift, capslock: 'I' alt: '\u0302' - ctrl, meta: none } key J { label: 'J' base: 'j' shift, capslock: 'J' - ctrl, alt, meta: none } key K { label: 'K' base: 'k' shift, capslock: 'K' - ctrl, alt, meta: none } key L { label: 'L' base: 'l' shift, capslock: 'L' - ctrl, alt, meta: none } key M { label: 'M' base: 'm' shift, capslock: 'M' - ctrl, alt, meta: none } key N { @@ -124,35 +111,30 @@ key N { base: 'n' shift, capslock: 'N' alt: '\u0303' - ctrl, meta: none } key O { label: 'O' base: 'o' shift, capslock: 'O' - ctrl, alt, meta: none } key P { label: 'P' base: 'p' shift, capslock: 'P' - ctrl, alt, meta: none } key Q { label: 'Q' base: 'q' shift, capslock: 'Q' - ctrl, alt, meta: none } key R { label: 'R' base: 'r' shift, capslock: 'R' - ctrl, alt, meta: none } key S { @@ -160,14 +142,12 @@ key S { base: 's' shift, capslock: 'S' alt: '\u00df' - ctrl, meta: none } key T { label: 'T' base: 't' shift, capslock: 'T' - ctrl, alt, meta: none } key U { @@ -175,338 +155,289 @@ key U { base: 'u' shift, capslock: 'U' alt: '\u0308' - ctrl, meta: none } key V { label: 'V' base: 'v' shift, capslock: 'V' - ctrl, alt, meta: none } key W { label: 'W' base: 'w' shift, capslock: 'W' - ctrl, alt, meta: none } key X { label: 'X' base: 'x' shift, capslock: 'X' - ctrl, alt, meta: none } key Y { label: 'Y' base: 'y' shift, capslock: 'Y' - ctrl, alt, meta: none } key Z { label: 'Z' base: 'z' shift, capslock: 'Z' - ctrl, alt, meta: none } key 0 { - label, number: '0' + label: '0' base: '0' shift: ')' - ctrl, alt, meta: none } key 1 { - label, number: '1' + label: '1' base: '1' shift: '!' - ctrl, alt, meta: none } key 2 { - label, number: '2' + label: '2' base: '2' shift: '@' - ctrl, alt, meta: none } key 3 { - label, number: '3' + label: '3' base: '3' shift: '#' - ctrl, alt, meta: none } key 4 { - label, number: '4' + label: '4' base: '4' shift: '$' - ctrl, alt, meta: none } key 5 { - label, number: '5' + label: '5' base: '5' shift: '%' - ctrl, alt, meta: none } key 6 { - label, number: '6' + label: '6' base: '6' shift: '^' - ctrl, alt, meta: none alt+shift: '\u0302' } key 7 { - label, number: '7' + label: '7' base: '7' shift: '&' - ctrl, alt, meta: none } key 8 { - label, number: '8' + label: '8' base: '8' shift: '*' - ctrl, alt, meta: none } key 9 { - label, number: '9' + label: '9' base: '9' shift: '(' - ctrl, alt, meta: none } key SPACE { label: ' ' base: ' ' - ctrl: none alt, meta: fallback SEARCH } key ENTER { label: '\n' base: '\n' - ctrl, alt, meta: none } key TAB { label: '\t' base: '\t' - ctrl, alt, meta: none } key COMMA { - label, number: ',' + label: ',' base: ',' shift: '<' - ctrl, alt, meta: none } key PERIOD { - label, number: '.' + label: '.' base: '.' shift: '>' - ctrl, alt, meta: none } key SLASH { - label, number: '/' + label: '/' base: '/' shift: '?' - ctrl, alt, meta: none } key GRAVE { - label, number: '`' + label: '`' base: '`' shift: '~' alt: '\u0300' alt+shift: '\u0303' - ctrl, meta: none } key MINUS { - label, number: '-' + label: '-' base: '-' shift: '_' - ctrl, alt, meta: none } key EQUALS { - label, number: '=' + label: '=' base: '=' shift: '+' - ctrl, alt, meta: none } key LEFT_BRACKET { - label, number: '[' + label: '[' base: '[' shift: '{' - ctrl, alt, meta: none } key RIGHT_BRACKET { - label, number: ']' + label: ']' base: ']' shift: '}' - ctrl, alt, meta: none } key BACKSLASH { - label, number: '\\' + label: '\\' base: '\\' shift: '|' - ctrl, alt, meta: none } key SEMICOLON { - label, number: ';' + label: ';' base: ';' shift: ':' - ctrl, alt, meta: none } key APOSTROPHE { - label, number: '\'' + label: '\'' base: '\'' shift: '"' - ctrl, alt, meta: none } ### Numeric keypad ### key NUMPAD_0 { - label, number: '0' + label: '0' base: fallback INSERT numlock: '0' - ctrl, alt, meta: none } key NUMPAD_1 { - label, number: '1' + label: '1' base: fallback MOVE_END numlock: '1' - ctrl, alt, meta: none } key NUMPAD_2 { - label, number: '2' + label: '2' base: fallback DPAD_DOWN numlock: '2' - ctrl, alt, meta: none } key NUMPAD_3 { - label, number: '3' + label: '3' base: fallback PAGE_DOWN numlock: '3' - ctrl, alt, meta: none } key NUMPAD_4 { - label, number: '4' + label: '4' base: fallback DPAD_LEFT numlock: '4' - ctrl, alt, meta: none } key NUMPAD_5 { - label, number: '5' + label: '5' base: fallback DPAD_CENTER numlock: '5' - ctrl, alt, meta: none } key NUMPAD_6 { - label, number: '6' + label: '6' base: fallback DPAD_RIGHT numlock: '6' - ctrl, alt, meta: none } key NUMPAD_7 { - label, number: '7' + label: '7' base: fallback MOVE_HOME numlock: '7' - ctrl, alt, meta: none } key NUMPAD_8 { - label, number: '8' + label: '8' base: fallback DPAD_UP numlock: '8' - ctrl, alt, meta: none } key NUMPAD_9 { - label, number: '9' + label: '9' base: fallback PAGE_UP numlock: '9' - ctrl, alt, meta: none } key NUMPAD_LEFT_PAREN { - label, number: '(' + label: '(' base: '(' - ctrl, alt, meta: none } key NUMPAD_RIGHT_PAREN { - label, number: ')' + label: ')' base: ')' - ctrl, alt, meta: none } key NUMPAD_DIVIDE { - label, number: '/' + label: '/' base: '/' - ctrl, alt, meta: none } key NUMPAD_MULTIPLY { - label, number: '*' + label: '*' base: '*' - ctrl, alt, meta: none } key NUMPAD_SUBTRACT { - label, number: '-' + label: '-' base: '-' - ctrl, alt, meta: none } key NUMPAD_ADD { - label, number: '+' + label: '+' base: '+' - ctrl, alt, meta: none } key NUMPAD_DOT { - label, number: '.' + label: '.' base: fallback FORWARD_DEL numlock: '.' - ctrl, alt, meta: none } key NUMPAD_COMMA { - label, number: ',' + label: ',' base: ',' - ctrl, alt, meta: none } key NUMPAD_EQUALS { - label, number: '=' + label: '=' base: '=' - ctrl, alt, meta: none } key NUMPAD_ENTER { @@ -518,22 +449,22 @@ key NUMPAD_ENTER { ### Special keys on phones ### key AT { - label, number: '@' + label: '@' base: '@' } key STAR { - label, number: '*' + label: '*' base: '*' } key POUND { - label, number: '#' + label: '#' base: '#' } key PLUS { - label, number: '+' + label: '+' base: '+' } diff --git a/data/keyboards/Virtual.kcm b/data/keyboards/Virtual.kcm index 0ce4a68..e592013 100644 --- a/data/keyboards/Virtual.kcm +++ b/data/keyboards/Virtual.kcm @@ -25,14 +25,12 @@ key A { label: 'A' base: 'a' shift, capslock: 'A' - ctrl, alt, meta: none } key B { label: 'B' base: 'b' shift, capslock: 'B' - ctrl, alt, meta: none } key C { @@ -41,14 +39,12 @@ key C { shift, capslock: 'C' alt: '\u00e7' shift+alt: '\u00c7' - ctrl, meta: none } key D { label: 'D' base: 'd' shift, capslock: 'D' - ctrl, alt, meta: none } key E { @@ -56,28 +52,24 @@ key E { base: 'e' shift, capslock: 'E' alt: '\u0301' - ctrl, meta: none } key F { label: 'F' base: 'f' shift, capslock: 'F' - ctrl, alt, meta: none } key G { label: 'G' base: 'g' shift, capslock: 'G' - ctrl, alt, meta: none } key H { label: 'H' base: 'h' shift, capslock: 'H' - ctrl, alt, meta: none } key I { @@ -85,35 +77,30 @@ key I { base: 'i' shift, capslock: 'I' alt: '\u0302' - ctrl, meta: none } key J { label: 'J' base: 'j' shift, capslock: 'J' - ctrl, alt, meta: none } key K { label: 'K' base: 'k' shift, capslock: 'K' - ctrl, alt, meta: none } key L { label: 'L' base: 'l' shift, capslock: 'L' - ctrl, alt, meta: none } key M { label: 'M' base: 'm' shift, capslock: 'M' - ctrl, alt, meta: none } key N { @@ -121,35 +108,30 @@ key N { base: 'n' shift, capslock: 'N' alt: '\u0303' - ctrl, meta: none } key O { label: 'O' base: 'o' shift, capslock: 'O' - ctrl, alt, meta: none } key P { label: 'P' base: 'p' shift, capslock: 'P' - ctrl, alt, meta: none } key Q { label: 'Q' base: 'q' shift, capslock: 'Q' - ctrl, alt, meta: none } key R { label: 'R' base: 'r' shift, capslock: 'R' - ctrl, alt, meta: none } key S { @@ -157,14 +139,12 @@ key S { base: 's' shift, capslock: 'S' alt: '\u00df' - ctrl, meta: none } key T { label: 'T' base: 't' shift, capslock: 'T' - ctrl, alt, meta: none } key U { @@ -172,339 +152,289 @@ key U { base: 'u' shift, capslock: 'U' alt: '\u0308' - ctrl, meta: none } key V { label: 'V' base: 'v' shift, capslock: 'V' - ctrl, alt, meta: none } key W { label: 'W' base: 'w' shift, capslock: 'W' - ctrl, alt, meta: none } key X { label: 'X' base: 'x' shift, capslock: 'X' - ctrl, alt, meta: none } key Y { label: 'Y' base: 'y' shift, capslock: 'Y' - ctrl, alt, meta: none } key Z { label: 'Z' base: 'z' shift, capslock: 'Z' - ctrl, alt, meta: none } key 0 { - label, number: '0' + label: '0' base: '0' shift: ')' - ctrl, alt, meta: none } key 1 { - label, number: '1' + label: '1' base: '1' shift: '!' - ctrl, alt, meta: none } key 2 { - label, number: '2' + label: '2' base: '2' shift: '@' - ctrl, alt, meta: none } key 3 { - label, number: '3' + label: '3' base: '3' shift: '#' - ctrl, alt, meta: none } key 4 { - label, number: '4' + label: '4' base: '4' shift: '$' - ctrl, alt, meta: none } key 5 { - label, number: '5' + label: '5' base: '5' shift: '%' - ctrl, alt, meta: none } key 6 { - label, number: '6' + label: '6' base: '6' shift: '^' - ctrl, alt, meta: none alt+shift: '\u0302' } key 7 { - label, number: '7' + label: '7' base: '7' shift: '&' - ctrl, alt, meta: none } key 8 { - label, number: '8' + label: '8' base: '8' shift: '*' - ctrl, alt, meta: none } key 9 { - label, number: '9' + label: '9' base: '9' shift: '(' - ctrl, alt, meta: none } key SPACE { label: ' ' base: ' ' - ctrl, alt: none - meta: fallback SEARCH + alt, meta: fallback SEARCH } key ENTER { label: '\n' base: '\n' - ctrl, alt, meta: none } key TAB { label: '\t' base: '\t' - ctrl, alt: none - meta: fallback APP_SWITCH } key COMMA { - label, number: ',' + label: ',' base: ',' shift: '<' - ctrl, alt, meta: none } key PERIOD { - label, number: '.' + label: '.' base: '.' shift: '>' - ctrl, alt, meta: none } key SLASH { - label, number: '/' + label: '/' base: '/' shift: '?' - ctrl, alt, meta: none } key GRAVE { - label, number: '`' + label: '`' base: '`' shift: '~' alt: '\u0300' alt+shift: '\u0303' - ctrl, meta: none } key MINUS { - label, number: '-' + label: '-' base: '-' shift: '_' - ctrl, alt, meta: none } key EQUALS { - label, number: '=' + label: '=' base: '=' shift: '+' - ctrl, alt, meta: none } key LEFT_BRACKET { - label, number: '[' + label: '[' base: '[' shift: '{' - ctrl, alt, meta: none } key RIGHT_BRACKET { - label, number: ']' + label: ']' base: ']' shift: '}' - ctrl, alt, meta: none } key BACKSLASH { - label, number: '\\' + label: '\\' base: '\\' shift: '|' - ctrl, alt, meta: none } key SEMICOLON { - label, number: ';' + label: ';' base: ';' shift: ':' - ctrl, alt, meta: none } key APOSTROPHE { - label, number: '\'' + label: '\'' base: '\'' shift: '"' - ctrl, alt, meta: none } ### Numeric keypad ### key NUMPAD_0 { - label, number: '0' + label: '0' base: fallback INSERT numlock: '0' - ctrl, alt, meta: none } key NUMPAD_1 { - label, number: '1' + label: '1' base: fallback MOVE_END numlock: '1' - ctrl, alt, meta: none } key NUMPAD_2 { - label, number: '2' + label: '2' base: fallback DPAD_DOWN numlock: '2' - ctrl, alt, meta: none } key NUMPAD_3 { - label, number: '3' + label: '3' base: fallback PAGE_DOWN numlock: '3' - ctrl, alt, meta: none } key NUMPAD_4 { - label, number: '4' + label: '4' base: fallback DPAD_LEFT numlock: '4' - ctrl, alt, meta: none } key NUMPAD_5 { - label, number: '5' + label: '5' base: fallback DPAD_CENTER numlock: '5' - ctrl, alt, meta: none } key NUMPAD_6 { - label, number: '6' + label: '6' base: fallback DPAD_RIGHT numlock: '6' - ctrl, alt, meta: none } key NUMPAD_7 { - label, number: '7' + label: '7' base: fallback MOVE_HOME numlock: '7' - ctrl, alt, meta: none } key NUMPAD_8 { - label, number: '8' + label: '8' base: fallback DPAD_UP numlock: '8' - ctrl, alt, meta: none } key NUMPAD_9 { - label, number: '9' + label: '9' base: fallback PAGE_UP numlock: '9' - ctrl, alt, meta: none } key NUMPAD_LEFT_PAREN { - label, number: '(' + label: '(' base: '(' - ctrl, alt, meta: none } key NUMPAD_RIGHT_PAREN { - label, number: ')' + label: ')' base: ')' - ctrl, alt, meta: none } key NUMPAD_DIVIDE { - label, number: '/' + label: '/' base: '/' - ctrl, alt, meta: none } key NUMPAD_MULTIPLY { - label, number: '*' + label: '*' base: '*' - ctrl, alt, meta: none } key NUMPAD_SUBTRACT { - label, number: '-' + label: '-' base: '-' - ctrl, alt, meta: none } key NUMPAD_ADD { - label, number: '+' + label: '+' base: '+' - ctrl, alt, meta: none } key NUMPAD_DOT { - label, number: '.' + label: '.' base: fallback FORWARD_DEL numlock: '.' - ctrl, alt, meta: none } key NUMPAD_COMMA { - label, number: ',' + label: ',' base: ',' - ctrl, alt, meta: none } key NUMPAD_EQUALS { - label, number: '=' + label: '=' base: '=' - ctrl, alt, meta: none } key NUMPAD_ENTER { @@ -516,22 +446,22 @@ key NUMPAD_ENTER { ### Special keys on phones ### key AT { - label, number: '@' + label: '@' base: '@' } key STAR { - label, number: '*' + label: '*' base: '*' } key POUND { - label, number: '#' + label: '#' base: '#' } key PLUS { - label, number: '+' + label: '+' base: '+' } @@ -539,6 +469,132 @@ key PLUS { key ESCAPE { base: fallback BACK - meta: fallback HOME - alt: fallback MENU + alt, meta: fallback HOME + ctrl: fallback MENU +} + +### Gamepad buttons ### + +key BUTTON_A { + base: fallback BACK +} + +key BUTTON_B { + base: fallback BACK +} + +key BUTTON_C { + base: fallback BACK +} + +key BUTTON_X { + base: fallback DPAD_CENTER +} + +key BUTTON_Y { + base: fallback DPAD_CENTER +} + +key BUTTON_Z { + base: fallback DPAD_CENTER +} + +key BUTTON_L1 { + base: none +} + +key BUTTON_R1 { + base: none +} + +key BUTTON_L2 { + base: none +} + +key BUTTON_R2 { + base: none +} + +key BUTTON_THUMBL { + base: fallback DPAD_CENTER +} + +key BUTTON_THUMBR { + base: fallback DPAD_CENTER +} + +key BUTTON_START { + base: fallback HOME +} + +key BUTTON_SELECT { + base: fallback MENU +} + +key BUTTON_MODE { + base: fallback MENU +} + +key BUTTON_1 { + base: fallback DPAD_CENTER +} + +key BUTTON_2 { + base: fallback DPAD_CENTER +} + +key BUTTON_3 { + base: fallback DPAD_CENTER +} + +key BUTTON_4 { + base: fallback DPAD_CENTER +} + +key BUTTON_5 { + base: fallback DPAD_CENTER +} + +key BUTTON_6 { + base: fallback DPAD_CENTER +} + +key BUTTON_7 { + base: fallback DPAD_CENTER +} + +key BUTTON_8 { + base: fallback DPAD_CENTER +} + +key BUTTON_9 { + base: fallback DPAD_CENTER +} + +key BUTTON_10 { + base: fallback DPAD_CENTER +} + +key BUTTON_11 { + base: fallback DPAD_CENTER +} + +key BUTTON_12 { + base: fallback DPAD_CENTER +} + +key BUTTON_13 { + base: fallback DPAD_CENTER +} + +key BUTTON_14 { + base: fallback DPAD_CENTER +} + +key BUTTON_15 { + base: fallback DPAD_CENTER +} + +key BUTTON_16 { + base: fallback DPAD_CENTER } diff --git a/docs/html/resources/resources_toc.cs b/docs/html/resources/resources_toc.cs index 686bde3..a21708c 100644 --- a/docs/html/resources/resources_toc.cs +++ b/docs/html/resources/resources_toc.cs @@ -124,6 +124,23 @@ class="new"> new!</span></span> </li> <li class="toggle-list"> + <div><a href="<?cs var:toroot ?>training/cloudsync/index.html"> + <span class="en">Syncing to the Cloud<span class="new"> new!</span></span> + </a></div> + <ul> + <li><a href="<?cs var:toroot ?>training/cloudsync/aesync.html"> + <span class="en">Syncing with App Engine</span> + </a> + </li> + <li><a href="<?cs var:toroot ?>training/cloudsync/backupapi.html"> + <span class="en">Using the Backup API</span> + </a> + </li> + </ul> + </li> + + + <li class="toggle-list"> <div><a href="<?cs var:toroot ?>training/search/index.html"> <span class="en">Adding Search Functionality<span class="new"> new!</span></span> </a> @@ -369,11 +386,11 @@ class="new"> new!</span></span> </li> <li><a href="<?cs var:toroot ?>training/displaying-bitmaps/display-bitmap.html"> <span class="en">Displaying Bitmaps in Your UI</span> - </a> </li> - </ul> + <ul> </li> + <li class="toggle-list"> <div><a href="<?cs var:toroot ?>training/accessibility/index.html"> <span class="en">Implementing Accessibility<span class="new"> new!</span></span> @@ -391,9 +408,11 @@ class="new"> new!</span></span> </li> </ul> - </li> - - + </li> + + + + <li> <span class="heading"> <span class="en">Technical Resources</span> diff --git a/docs/html/sdk/sdk_toc.cs b/docs/html/sdk/sdk_toc.cs index a70b0f3..e994d95 100644 --- a/docs/html/sdk/sdk_toc.cs +++ b/docs/html/sdk/sdk_toc.cs @@ -151,7 +151,7 @@ </li> </ul> <ul> - <li><a href="<?cs var:toroot ?>sdk/tools-notes.html">SDK Tools, r18</a></li> + <li><a href="<?cs var:toroot ?>sdk/tools-notes.html">SDK Tools, r19</a></li> <li><a href="<?cs var:toroot ?>sdk/win-usb.html">Google USB Driver, r4</a></li> <li><a href="<?cs var:toroot ?>sdk/compatibility-library.html">Support Package, r7</a></li> </ul> diff --git a/docs/html/sdk/tools-notes.jd b/docs/html/sdk/tools-notes.jd index f4e9d4d..062f8f1 100644 --- a/docs/html/sdk/tools-notes.jd +++ b/docs/html/sdk/tools-notes.jd @@ -68,6 +68,40 @@ padding: .25em 1em; <a href="#" onclick="return toggleDiv(this)"> <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" /> + SDK Tools, Revision 19</a> <em>(April 2012)</em> + + <div class="toggleme"> + <p class="note"><strong>Note:</strong> This update of SDK Tools is only available through +the <a href="{@docRoot}sdk/adding-components.html">Android SDK Manager</a>. Use this tool to +download and install this update.</p> + + <dl> + <dt>Dependencies:</dt> + <dd> + <ul> + <li>Android SDK Platform-tools revision 9 or later.</li> + <li>If you are developing in Eclipse with ADT, note that the SDK Tools r19 is designed for + use with ADT 18.0.0 and later. If you haven't already, we highly recommend updating your + <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin</a> to 18.0.0.</li> + <li>If you are developing outside Eclipse, you must have + <a href="http://ant.apache.org/">Apache Ant</a> 1.8 or later.</li> + </ul> + </dd> + <dt>Bug fixes:</dt> + <dd> + <ul> + <li>Fixed an issue that prevented some developers from running the emulator with GPU +acceleration.</li> + </ul> + </dd> + </dl> + </div> +</div> + +<div class="toggleable closed"> + <a href="#" onclick="return toggleDiv(this)"> + <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" + width="9px" /> SDK Tools, Revision 18</a> <em>(April 2012)</em> <div class="toggleme"> diff --git a/docs/html/training/location/currentlocation.jd b/docs/html/training/basics/location/currentlocation.jd index 4692530..4692530 100644 --- a/docs/html/training/location/currentlocation.jd +++ b/docs/html/training/basics/location/currentlocation.jd diff --git a/docs/html/training/location/geocoding.jd b/docs/html/training/basics/location/geocoding.jd index 6364976..6364976 100644 --- a/docs/html/training/location/geocoding.jd +++ b/docs/html/training/basics/location/geocoding.jd diff --git a/docs/html/training/location/index.jd b/docs/html/training/basics/location/index.jd index 48cfbc3..48cfbc3 100644 --- a/docs/html/training/location/index.jd +++ b/docs/html/training/basics/location/index.jd diff --git a/docs/html/training/location/locationmanager.jd b/docs/html/training/basics/location/locationmanager.jd index 61abcbd..61abcbd 100644 --- a/docs/html/training/location/locationmanager.jd +++ b/docs/html/training/basics/location/locationmanager.jd diff --git a/docs/html/training/cloudsync/aesync.jd b/docs/html/training/cloudsync/aesync.jd new file mode 100644 index 0000000..c60d28b --- /dev/null +++ b/docs/html/training/cloudsync/aesync.jd @@ -0,0 +1,432 @@ +page.title=Syncing with App Engine +parent.title=Syncing to the Cloud +parent.link=index.html + +trainingnavtop=true +next.title=Using the Backup API +next.link=backupapi.html + +@jd:body + +<div id="tb-wrapper"> +<div id="tb"> + +<!-- table of contents --> +<h2>This lesson teaches you how to</h2> +<ol> + <li><a href="#prepare">Prepare Your Environment</a></li> + <li><a href="#project">Create Your Project</a></li> + <li><a href="#data">Create the Data Layer</a></li> + <li><a href="#persistence">Create the Persistence Layer</a></li> + <li><a href="#androidapp">Query and Update from the Android App</a></li> + <li><a href="#serverc2dm">Configure the C2DM Server-Side</a></li> + <li><a href="#clientc2dm">Configure the C2DM Client-Side</a></li> +</ol> +<h2>You should also read</h2> + <ul> + <li><a + href="http://developers.google.com/appengine/">App Engine</a></li> + <li><a href="http://code.google.com/android/c2dm/">Android Cloud to Device + Messaging Framework</a></li> + </ul> +<h2>Try it out</h2> + +<p>This lesson uses the Cloud Tasks sample code, originally shown at the +<a href="http://www.youtube.com/watch?v=M7SxNNC429U">Android + AppEngine: A Developer's Dream Combination</a> +talk at Google I/O. You can use the sample application as a source of reusable code for your own +application, or simply as a reference for how the Android and cloud pieces of the overall +application fit together. You can also build the sample application and see how it runs +on your own device or emulator.</p> +<p> + <a href="http://code.google.com/p/cloud-tasks-io/" class="button">Cloud Tasks + App</a> +</p> + +</div> +</div> + +<p>Writing an app that syncs to the cloud can be a challenge. There are many little +details to get right, like server-side auth, client-side auth, a shared data +model, and an API. One way to make this much easier is to use the Google Plugin +for Eclipse, which handles a lot of the plumbing for you when building Android +and App Engine applications that talk to each other. This lesson walks you through building such a project.</p> + +<p>Following this lesson shows you how to:</p> +<ul> + <li>Build Android and Appengine apps that can communicate with each other</li> + <li>Take advantage of Cloud to Device Messaging (C2DM) so your Android app doesn't have to poll for updates</li> +</ul> + +<p>This lesson focuses on local development, and does not cover distribution +(i.e, pushing your App Engine app live, or publishing your Android App to +market), as those topics are covered extensively elsewhere.</p> + +<h2 id="prepare">Prepare Your Environment</h2> +<p>If you want to follow along with the code example in this lesson, you must do +the following to prepare your development environment:</p> +<ul> +<li>Install the <a href="http://code.google.com/eclipse/">Google Plugin for + Eclipse.</a></li> +<li>Install the <a + href="http://code.google.com/webtoolkit/download.html">GWT SDK</a> and the <a + href="http://code.google.com/appengine/">Java App Engine SDK</a>. The <a + href="http://code.google.com/eclipse/docs/getting_started.html">Quick Start + Guide</a> shows you how to install these components.</li> +<li>Sign up for <a href="http://code.google.com/android/c2dm/signup.html">C2DM + access</a>. We strongly recommend <a + href="https://accounts.google.com/SignUp">creating a new Google account</a> specifically for +connecting to C2DM. The server component in this lesson uses this <em>role + account</em> repeatedly to authenticate with Google servers. +</li> +</ul> + +<h2 id="project">Create Your Projects</h2> +<p>After installing the Google Plugin for Eclipse, notice that a new kind of Android project +exists when you create a new Eclipse project: The <strong>App Engine Connected + Android Project</strong> (under the <strong>Google</strong> project category). +A wizard guides you through creating this project, +during the course of which you are prompted to enter the account credentials for the role +account you created.</p> + +<p class="note"><strong>Note:</strong> Remember to enter the credentials for +your <i>role account</i> (the one you created to access C2DM services), not an +account you'd log into as a user, or as an admin.</p> + +<p>Once you're done, you'll see two projects waiting for you in your +workspace—An Android application and an App Engine application. Hooray! +These two applications are already fully functional— the wizard has +created a sample application which lets you authenticate to the App Engine +application from your Android device using AccountManager (no need to type in +your credentials), and an App Engine app that can send messages to any logged-in +device using C2DM. In order to spin up your application and take it for a test +drive, do the following:</p> + +<p>To spin up the Android application, make sure you have an AVD with a platform +version of <em>at least</em> Android 2.2 (API Level 8). Right click on the Android project in +Eclipse, and go to <strong>Debug As > Local App Engine Connected Android + Application</strong>. This launches the emulator in such a way that it can +test C2DM functionality (which typically works through Google Play). It'll +also launch a local instance of App Engine containing your awesome +application.</p> + +<h2 id="data">Create the Data Layer</h2> + +<p>At this point you have a fully functional sample application running. Now +it's time to start changing the code to create your own application.</p> + +<p>First, create the data model that defines the data shared between +the App Engine and Android applications. To start, open up the source folder of +your App Engine project, and navigate down to the <strong>(yourApp)-AppEngine + > src > (yourapp) > server</strong> package. Create a new class in there containing some data you want to +store server-side. The code ends up looking something like this:</p> +<pre> +package com.cloudtasks.server; + +import javax.persistence.*; + +@Entity +public class Task { + + private String emailAddress; + private String name; + private String userId; + private String note; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + + public Task() { + } + + public String getEmailAddress() { + return this.emailAddress; + } + + public Long getId() { + return this.id; + } + ... +} +</pre> +<p>Note the use of annotations: <code>Entity</code>, <code>Id</code> and +<code>GeneratedValue</code> are all part of the <a + href="http://www.oracle.com/technetwork/articles/javaee/jpa-137156.html">Java + Persistence API</a>. Essentially, the <code>Entity</code> annotation goes +above the class declaration, and indicates that this class represents an entity +in your data layer. The <code>Id</code> and <code>GeneratedValue</code> +annotations, respectively, indicate the field used as a lookup key for this +class, and how that id is generated (in this case, +<code>GenerationType.IDENTITY</code> indicates that the is generated by +the database). You can find more on this topic in the App Engine documentation, +on the page <a + href="http://code.google.com/appengine/docs/java/datastore/jpa/overview.html">Using + JPA with App Engine</a>.</p> + +<p>Once you've written all the classes that represent entities in your data +layer, you need a way for the Android and App Engine applications to communicate +about this data. This communication is enabled by creating a Remote Procedure +Call (RPC) service. +Typically, this involves a lot of monotonous code. Fortunately, there's an easy way! Right +click on the server project in your App Engine source folder, and in the context +menu, navigate to <strong>New > Other</strong> and then, in the resulting +screen, select <strong>Google > RPC Service.</strong> A wizard appears, pre-populated +with all the Entities you created in the previous step, +which it found by seeking out the <code>@Entity</code> annotation in the +source files you added. Pretty neat, right? Click <strong>Finish</strong>, and the wizard +creates a Service class with stub methods for the Create, Retrieve, Update and +Delete (CRUD) operations of all your entities.</p> + +<h2 id="persistence">Create the Persistence Layer</h2> + +<p>The persistence layer is where your application data is stored +long-term, so any information you want to keep for your users needs to go here. +You have several options for writing your persistence layer, depending on +what kind of data you want to store. A few of the options hosted by Google +(though you don't have to use these services) include <a + href="http://code.google.com/apis/storage/">Google Storage for Developers</a> +and App Engine's built-in <a + href="http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html">Datastore</a>. +The sample code for this lesson uses DataStore code.</p> + +<p>Create a class in your <code>com.cloudtasks.server</code> package to handle +persistence layer input and output. In order to access the data store, use the <a + href="http://db.apache.org/jdo/api20/apidocs/javax/jdo/PersistenceManager.html">PersistenceManager</a> +class. You can generate an instance of this class using the PMF class in the +<code>com.google.android.c2dm.server.PMF</code> package, and then use that to +perform basic CRUD operations on your data store, like this:</p> +<pre> +/** +* Remove this object from the data store. +*/ +public void delete(Long id) { + PersistenceManager pm = PMF.get().getPersistenceManager(); + try { + Task item = pm.getObjectById(Task.class, id); + pm.deletePersistent(item); + } finally { + pm.close(); + } +} +</pre> + +<p>You can also use <a + href="http://code.google.com/appengine/docs/python/datastore/queryclass.html">Query</a> +objects to retrieve data from your Datastore. Here's an example of a method +that searches out an object by its ID.</p> + +<pre> +public Task find(Long id) { + if (id == null) { + return null; + } + + PersistenceManager pm = PMF.get().getPersistenceManager(); + try { + Query query = pm.newQuery("select from " + Task.class.getName() + + " where id==" + id.toString() + " && emailAddress=='" + getUserEmail() + "'"); + List<Task> list = (List<Task>) query.execute(); + return list.size() == 0 ? null : list.get(0); + } catch (RuntimeException e) { + System.out.println(e); + throw e; + } finally { + pm.close(); + } +} +</pre> + +<p>For a good example of a class that encapsulates the persistence layer for +you, check out the <a + href="http://code.google.com/p/cloud-tasks-io/source/browse/trunk/CloudTasks-AppEngine/src/com/cloudtasks/server/DataStore.java">DataStore</a> +class in the Cloud Tasks app.</p> + + + +<h2 id="androidapp">Query and Update from the Android App</h2> + +<p>In order to keep in sync with the App Engine application, your Android application +needs to know how to do two things: Pull data from the cloud, and send data up +to the cloud. Much of the plumbing for this is generated by the +plugin, but you need to wire it up to your Android user interface yourself.</p> + +<p>Pop open the source code for the main Activity in your project and look for +<code><YourProjectName> Activity.java</code>, then for the method +<code>setHelloWorldScreenContent()</code>. Obviously you're not building a +HelloWorld app, so delete this method entirely and replace it +with something relevant. However, the boilerplate code has some very important +characteristics. For one, the code that communicates with the cloud is wrapped +in an {@link android.os.AsyncTask} and therefore <em>not</em> hitting the +network on the UI thread. Also, it gives an easy template for how to access +the cloud in your own code, using the <a + href="http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html">RequestFactory</a> +class generated that was auto-generated for you by the Eclipse plugin (called +MyRequestFactory in the example below), and various {@code Request} types.</p> + +<p>For instance, if your server-side data model included an object called {@code +Task} when you generated an RPC layer it automatically created a +{@code TaskRequest} class for you, as well as a {@code TaskProxy} representing the individual +task. In code, requesting a list of all these tasks from the server looks +like this:</p> + +<pre> +public void fetchTasks (Long id) { + // Request is wrapped in an AsyncTask to avoid making a network request + // on the UI thread. + new AsyncTask<Long, Void, List<TaskProxy>>() { + @Override + protected List<TaskProxy> doInBackground(Long... arguments) { + final List<TaskProxy> list = new ArrayList<TaskProxy>(); + MyRequestFactory factory = Util.getRequestFactory(mContext, + MyRequestFactory.class); + TaskRequest taskRequest = factory.taskNinjaRequest(); + + if (arguments.length == 0 || arguments[0] == -1) { + factory.taskRequest().queryTasks().fire(new Receiver<List<TaskProxy>>() { + @Override + public void onSuccess(List<TaskProxy> arg0) { + list.addAll(arg0); + } + }); + } else { + newTask = true; + factory.taskRequest().readTask(arguments[0]).fire(new Receiver<TaskProxy>() { + @Override + public void onSuccess(TaskProxy arg0) { + list.add(arg0); + } + }); + } + return list; + } + + @Override + protected void onPostExecute(List<TaskProxy> result) { + TaskNinjaActivity.this.dump(result); + } + + }.execute(id); +} +... + +public void dump (List<TaskProxy> tasks) { + for (TaskProxy task : tasks) { + Log.i("Task output", task.getName() + "\n" + task.getNote()); + } +} +</pre> + +<p>This {@link android.os.AsyncTask} returns a list of +<code>TaskProxy</code> objects, and sends it to the debug {@code dump()} method +upon completion. Note that if the argument list is empty, or the first argument +is a -1, all tasks are retrieved from the server. Otherwise, only the ones with +IDs in the supplied list are returned. All the fields you added to the task +entity when building out the App Engine application are available via get/set +methods in the <code>TaskProxy</code> class.</p> + +<p>In order to create new tasks and send them to the cloud, create a request +object and use it to create a proxy object. Then populate the proxy object and +call its update method. Once again, this should be done in an +<code>AsyncTask</code> to avoid doing networking on the UI thread. The end +result looks something like this.</p> + +<pre> +new AsyncTask<Void, Void, Void>() { + @Override + protected Void doInBackground(Void... arg0) { + MyRequestFactory factory = (MyRequestFactory) + Util.getRequestFactory(TasksActivity.this, + MyRequestFactory.class); + TaskRequest request = factory.taskRequest(); + + // Create your local proxy object, populate it + TaskProxy task = request.create(TaskProxy.class); + task.setName(taskName); + task.setNote(taskDetails); + task.setDueDate(dueDate); + + // To the cloud! + request.updateTask(task).fire(); + return null; + } +}.execute(); +</pre> + +<h2 id="serverc2dm">Configure the C2DM Server-Side</h2> + +<p>In order to set up C2DM messages to be sent to your Android device, go back +into your App Engine codebase, and open up the service class that was created +when you generated your RPC layer. If the name of your project is Foo, +this class is called FooService. Add a line to each of the methods for +adding, deleting, or updating data so that a C2DM message is sent to the +user's device. Here's an example of an update task: +</p> + +<pre> +public static Task updateTask(Task task) { + task.setEmailAddress(DataStore.getUserEmail()); + task = db.update(task); + DataStore.sendC2DMUpdate(TaskChange.UPDATE + TaskChange.SEPARATOR + task.getId()); + return task; +} + +// Helper method. Given a String, send it to the current user's device via C2DM. +public static void sendC2DMUpdate(String message) { + UserService userService = UserServiceFactory.getUserService(); + User user = userService.getCurrentUser(); + ServletContext context = RequestFactoryServlet.getThreadLocalRequest().getSession().getServletContext(); + SendMessage.sendMessage(context, user.getEmail(), message); +} +</pre> + +<p>In the following example, a helper class, {@code TaskChange}, has been created with a few +constants. Creating such a helper class makes managing the communication +between App Engine and Android apps much easier. Just create it in the shared +folder, define a few constants (flags for what kind of message you're sending +and a seperator is typically enough), and you're done. By way of example, +the above code works off of a {@code TaskChange} class defined as this:</p> + +<pre> +public class TaskChange { + public static String UPDATE = "Update"; + public static String DELETE = "Delete"; + public static String SEPARATOR = ":"; +} +</pre> + +<h2 id="clientc2dm">Configure the C2DM Client-Side</h2> + +<p>In order to define the Android applications behavior when a C2DM is recieved, +open up the <code>C2DMReceiver</code> class, and browse to the +<code>onMessage()</code> method. Tweak this method to update based on the content +of the message.</p> +<pre> +//In your C2DMReceiver class + +public void notifyListener(Intent intent) { + if (listener != null) { + Bundle extras = intent.getExtras(); + if (extras != null) { + String message = (String) extras.get("message"); + String[] messages = message.split(Pattern.quote(TaskChange.SEPARATOR)); + listener.onTaskUpdated(messages[0], Long.parseLong(messages[1])); + } + } +} +</pre> + +<pre> +// Elsewhere in your code, wherever it makes sense to perform local updates +public void onTasksUpdated(String messageType, Long id) { + if (messageType.equals(TaskChange.DELETE)) { + // Delete this task from your local data store + ... + } else { + // Call that monstrous Asynctask defined earlier. + fetchTasks(id); + } +} +</pre> +<p> +Once you have C2DM set up to trigger local updates, you're all done. +Congratulations, you have a cloud-connected Android application!</p> diff --git a/docs/html/training/cloudsync/backupapi.jd b/docs/html/training/cloudsync/backupapi.jd new file mode 100644 index 0000000..3055596 --- /dev/null +++ b/docs/html/training/cloudsync/backupapi.jd @@ -0,0 +1,193 @@ +page.title=Using the Backup API +parent.title=Syncing to the Cloud +parent.link=index.html + +trainingnavtop=true +previous.title=Syncing with App Engine +previous.link=aesync.html + +@jd:body + +<div id="tb-wrapper"> + <div id="tb"> + <h2>This lesson teaches you to</h2> + <ol> + <li><a href="#register">Register for the Android Backup Service</a></li> + <li><a href="#manifest">Configure Your Manifest</a></li> + <li><a href="#agent">Write Your Backup Agent</a></li> + <li><a href="#backup">Request a Backup</a></li> + <li><a href="#restore">Restore from a Backup</a></li> + </ol> + <h2>You should also read</h2> + <ul> + <li><a + href="http://developer.android.com/guide/topics/data/backup.html">Data + Backup</a></li> + </ul> + </div> +</div> + +<p>When a user purchases a new device or resets their existing one, they might +expect that when Google Play restores your app back to their device during the +initial setup, the previous data associated with the app restores as well. By +default, that doesn't happen and all the user's accomplishments or settings in +your app are lost.</p> +<p>For situations where the volume of data is relatively light (less than a +megabyte), like the user's preferences, notes, game high scores or other +stats, the Backup API provides a lightweight solution. This lesson walks you +through integrating the Backup API into your application, and restoring data to +new devices using the Backup API.</p> + +<h2 id="register">Register for the Android Backup Service</h2> +<p>This lesson requires the use of the <a + href="http://code.google.com/android/backup/index.html">Android Backup + Service</a>, which requires registration. Go ahead and <a + href="http://code.google.com/android/backup/signup.html">register here</a>. Once +that's done, the service pre-populates an XML tag for insertion in your Android +Manifest, which looks like this:</p> +<pre> +<meta-data android:name="com.google.android.backup.api_key" +android:value="ABcDe1FGHij2KlmN3oPQRs4TUvW5xYZ" /> +</pre> +<p>Note that each backup key works with a specific package name. If you have +different applications, register separate keys for each one.</p> + + +<h2 id="manifest">Configure Your Manifest</h2> +<p>Use of the Android Backup Service requires two additions to your application +manifest. First, declare the name of the class that acts as your backup agent, +then add the snippet above as a child element of the Application tag. Assuming +your backup agent is going to be called {@code TheBackupAgent}, here's an example of +what the manifest looks like with this tag included:</p> + +<pre> +<application android:label="MyApp" + android:backupAgent="TheBackupAgent"> + ... + <meta-data android:name="com.google.android.backup.api_key" + android:value="ABcDe1FGHij2KlmN3oPQRs4TUvW5xYZ" /> + ... +</application> +</pre> +<h2 id="agent">Write Your Backup Agent</h2> +<p>The easiest way to create your backup agent is by extending the wrapper class +{@link android.app.backup.BackupAgentHelper}. Creating this helper class is +actually a very simple process. Just create a class with the same name as you +used in the manifest in the previous step (in this example, {@code +TheBackupAgent}), +and extend {@code BackupAgentHelper}. Then override the {@link +android.app.backup.BackupAgent#onCreate()}.</p> + +<p>Inside the {@link android.app.backup.BackupAgent#onCreate()} method, create a {@link +android.app.backup.BackupHelper}. These helpers are +specialized classes for backing up certain kinds of data. The Android framework +currently includes two such helpers: {@link +android.app.backup.FileBackupHelper} and {@link +android.app.backup.SharedPreferencesBackupHelper}. After you create the helper +and point it at the data you want to back up, just add it to the +BackupAgentHelper using the {@link android.app.backup.BackupAgentHelper#addHelper(String, BackupHelper) addHelper()} +method, adding a key which is used to +retrieve the data later. In most cases the entire +implementation is perhaps 10 lines of code.</p> + +<p>Here's an example that backs up a high scores file.</p> + +<pre> + import android.app.backup.BackupAgentHelper; + import android.app.backup.FileBackupHelper; + + + public class TheBackupAgent extends BackupAgentHelper { + // The name of the SharedPreferences file + static final String HIGH_SCORES_FILENAME = "scores"; + + // A key to uniquely identify the set of backup data + static final String FILES_BACKUP_KEY = "myfiles"; + + // Allocate a helper and add it to the backup agent + @Override + void onCreate() { + FileBackupHelper helper = new FileBackupHelper(this, HIGH_SCORES_FILENAME); + addHelper(FILES_BACKUP_KEY, helper); + } +} +</pre> +<p>For added flexibility, {@link android.app.backup.FileBackupHelper}'s +constructor can take a variable number of filenames. You could just as easily +have backed up both a high scores file and a game progress file just by adding +an extra parameter, like this:</p> +<pre> + @Override + void onCreate() { + FileBackupHelper helper = new FileBackupHelper(this, HIGH_SCORES_FILENAME, PROGRESS_FILENAME); + addHelper(FILES_BACKUP_KEY, helper); + } +</pre> +<p>Backing up preferences is similarly easy. Create a {@link +android.app.backup.SharedPreferencesBackupHelper} the same way you did a {@link +android.app.backup.FileBackupHelper}. In this case, instead of adding filenames +to the constructor, add the names of the shared preference groups being used by +your application. Here's an example of how your backup agent helper might look if +high scores are implemented as preferences instead of a flat file:</p> + +<pre> + import android.app.backup.BackupAgentHelper; + import android.app.backup.SharedPreferencesBackupHelper; + + public class TheBackupAgent extends BackupAgentHelper { + // The names of the SharedPreferences groups that the application maintains. These + // are the same strings that are passed to getSharedPreferences(String, int). + static final String PREFS_DISPLAY = "displayprefs"; + static final String PREFS_SCORES = "highscores"; + + // An arbitrary string used within the BackupAgentHelper implementation to + // identify the SharedPreferencesBackupHelper's data. + static final String MY_PREFS_BACKUP_KEY = "myprefs"; + + // Simply allocate a helper and install it + void onCreate() { + SharedPreferencesBackupHelper helper = + new SharedPreferencesBackupHelper(this, PREFS_DISPLAY, PREFS_SCORES); + addHelper(MY_PREFS_BACKUP_KEY, helper); + } + } +</pre> + +<p>You can add as many backup helper instances to your backup agent helper as you +like, but remember that you only need one of each type. One {@link +android.app.backup.FileBackupHelper} handles all the files that you need to back up, and one +{@link android.app.backup.SharedPreferencesBackupHelper} handles all the shared +preferencegroups you need backed up. +</p> + + +<h2 id="backup">Request a Backup</h2> +<p>In order to request a backup, just create an instance of the {@link +android.app.backup.BackupManager}, and call it's {@link +android.app.backup.BackupManager#dataChanged()} method.</p> + +<pre> + import android.app.backup.BackupManager; + ... + + public void requestBackup() { + BackupManager bm = new BackupManager(this); + bm.dataChanged(); + } +</pre> + +<p>This call notifies the backup manager that there is data ready to be backed +up to the cloud. At some point in the future, the backup manager then calls +your backup agent's {@link +android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor, BackupDataOutput, +ParcelFileDescriptor) onBackup()} method. You can make +the call whenever your data has changed, without having to worry about causing +excessive network activity. If you request a backup twice before a backup +occurs, the backup only occurs once.</p> + + +<h2 id="restore">Restore from a Backup</h2> +<p>Typically you shouldn't ever have to manually request a restore, as it +happens automatically when your application is installed on a device. However, +if it <em>is</em> necessary to trigger a manual restore, just call the +{@link android.app.backup.BackupManager#requestRestore(RestoreObserver) requestRestore()} method.</p> diff --git a/docs/html/training/cloudsync/index.jd b/docs/html/training/cloudsync/index.jd new file mode 100644 index 0000000..e53844b --- /dev/null +++ b/docs/html/training/cloudsync/index.jd @@ -0,0 +1,34 @@ +page.title=Syncing to the Cloud + +trainingnavtop=true +startpage=true +next.title=Syncing with App Engine +next.link=aesync.html + +@jd:body + +<p>By providing powerful APIs for internet connectivity, the Android framework +helps you build rich cloud-enabled apps that sync their data to a remote web +service, making sure all your devices always stay in sync, and your valuable +data is always backed up to the cloud.</p> + +<p>This class covers different strategies for cloud enabled applications. It +covers syncing data with the cloud using your own back-end web application, and +backing up data using the cloud so that users can restore their data when +installing your application on a new device. +</p> + +<h2>Lessons</h2> + +<dl> + <dt><strong><a href="aesync.html">Syncing with App Engine.</a></strong></dt> + <dd>Learn how to create a paired App Engine app and Android app which share a + data model, authenticates using the AccountManager, and communicate with each + other via REST and C2DM.</dd> + <dt><strong><a href="backupapi.html">Using the Backup + API</a></strong></dt> + <dd>Learn how to integrate the Backup API into your Android Application, so + that user data such as preferences, notes, and high scores update seamlessly + across all of a user's devices</dd> +</dl> + diff --git a/graphics/java/android/graphics/Insets.java b/graphics/java/android/graphics/Insets.java index c570cd4..156f990 100644 --- a/graphics/java/android/graphics/Insets.java +++ b/graphics/java/android/graphics/Insets.java @@ -67,7 +67,7 @@ public class Insets { * @return an Insets instance with the appropriate values */ public static Insets of(Rect r) { - return of(r.left, r.top, r.right, r.bottom); + return (r == null) ? NONE : of(r.left, r.top, r.right, r.bottom); } /** diff --git a/graphics/java/android/graphics/drawable/Drawable.java b/graphics/java/android/graphics/drawable/Drawable.java index 7d1942a..6193ca7 100644 --- a/graphics/java/android/graphics/drawable/Drawable.java +++ b/graphics/java/android/graphics/drawable/Drawable.java @@ -16,6 +16,7 @@ package android.graphics.drawable; +import android.graphics.Insets; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; @@ -706,16 +707,12 @@ public abstract class Drawable { /** * Return in insets the layout insets suggested by this Drawable for use with alignment - * operations during layout. Positive values move toward the - * center of the Drawable. Returns true if this drawable - * actually has a layout insets, else false. When false is returned, the padding - * is always set to 0. + * operations during layout. * * @hide */ - public boolean getLayoutInsets(Rect insets) { - insets.set(0, 0, 0, 0); - return false; + public Insets getLayoutInsets() { + return Insets.NONE; } /** diff --git a/graphics/java/android/graphics/drawable/DrawableContainer.java b/graphics/java/android/graphics/drawable/DrawableContainer.java index e10f9e8..15b2c0b 100644 --- a/graphics/java/android/graphics/drawable/DrawableContainer.java +++ b/graphics/java/android/graphics/drawable/DrawableContainer.java @@ -19,6 +19,7 @@ package android.graphics.drawable; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.ColorFilter; +import android.graphics.Insets; import android.graphics.PixelFormat; import android.graphics.Rect; import android.os.SystemClock; @@ -94,12 +95,8 @@ public class DrawableContainer extends Drawable implements Drawable.Callback { * @hide */ @Override - public boolean getLayoutInsets(Rect insets) { - if (mCurrDrawable != null) { - return mCurrDrawable.getLayoutInsets(insets); - } else { - return super.getLayoutInsets(insets); - } + public Insets getLayoutInsets() { + return (mCurrDrawable == null) ? Insets.NONE : mCurrDrawable.getLayoutInsets(); } @Override diff --git a/graphics/java/android/graphics/drawable/NinePatchDrawable.java b/graphics/java/android/graphics/drawable/NinePatchDrawable.java index e502b7a..006baa7 100644 --- a/graphics/java/android/graphics/drawable/NinePatchDrawable.java +++ b/graphics/java/android/graphics/drawable/NinePatchDrawable.java @@ -22,6 +22,7 @@ import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.ColorFilter; +import android.graphics.Insets; import android.graphics.NinePatch; import android.graphics.Paint; import android.graphics.PixelFormat; @@ -224,13 +225,8 @@ public class NinePatchDrawable extends Drawable { * @hide */ @Override - public boolean getLayoutInsets(Rect insets) { - Rect layoutInsets = mNinePatchState.mLayoutInsets; - if (layoutInsets == null) { - return super.getLayoutInsets(insets); - } - insets.set(layoutInsets); - return true; + public Insets getLayoutInsets() { + return mNinePatchState.mLayoutInsets; } @Override @@ -390,7 +386,7 @@ public class NinePatchDrawable extends Drawable { private final static class NinePatchState extends ConstantState { final NinePatch mNinePatch; final Rect mPadding; - final Rect mLayoutInsets; + final Insets mLayoutInsets; final boolean mDither; int mChangingConfigurations; int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; @@ -406,7 +402,7 @@ public class NinePatchDrawable extends Drawable { NinePatchState(NinePatch ninePatch, Rect rect, Rect layoutInsets, boolean dither) { mNinePatch = ninePatch; mPadding = rect; - mLayoutInsets = layoutInsets; + mLayoutInsets = Insets.of(layoutInsets); mDither = dither; } diff --git a/include/androidfw/KeyCharacterMap.h b/include/androidfw/KeyCharacterMap.h index 8db5781..06799f9 100644 --- a/include/androidfw/KeyCharacterMap.h +++ b/include/androidfw/KeyCharacterMap.h @@ -206,6 +206,7 @@ private: status_t parseMapKey(); status_t parseKey(); status_t parseKeyProperty(); + status_t finishKey(Key* key); status_t parseModifier(const String8& token, int32_t* outMetaState); status_t parseCharacterLiteral(char16_t* outCharacter); }; @@ -224,6 +225,7 @@ private: bool getKey(int32_t keyCode, const Key** outKey) const; bool getKeyBehavior(int32_t keyCode, int32_t metaState, const Key** outKey, const Behavior** outBehavior) const; + static bool matchesMetaState(int32_t eventMetaState, int32_t behaviorMetaState); bool findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const; diff --git a/libs/androidfw/KeyCharacterMap.cpp b/libs/androidfw/KeyCharacterMap.cpp index c8f9439..2dc7507 100644 --- a/libs/androidfw/KeyCharacterMap.cpp +++ b/libs/androidfw/KeyCharacterMap.cpp @@ -372,7 +372,7 @@ bool KeyCharacterMap::getKeyBehavior(int32_t keyCode, int32_t metaState, if (getKey(keyCode, &key)) { const Behavior* behavior = key->firstBehavior; while (behavior) { - if ((behavior->metaState & metaState) == behavior->metaState) { + if (matchesMetaState(metaState, behavior->metaState)) { *outKey = key; *outBehavior = behavior; return true; @@ -383,6 +383,37 @@ bool KeyCharacterMap::getKeyBehavior(int32_t keyCode, int32_t metaState, return false; } +bool KeyCharacterMap::matchesMetaState(int32_t eventMetaState, int32_t behaviorMetaState) { + // Behavior must have at least the set of meta states specified. + // And if the key event has CTRL, ALT or META then the behavior must exactly + // match those, taking into account that a behavior can specify that it handles + // one, both or either of a left/right modifier pair. + if ((eventMetaState & behaviorMetaState) == behaviorMetaState) { + const int32_t EXACT_META_STATES = + AMETA_CTRL_ON | AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON + | AMETA_ALT_ON | AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON + | AMETA_META_ON | AMETA_META_LEFT_ON | AMETA_META_RIGHT_ON; + int32_t unmatchedMetaState = eventMetaState & ~behaviorMetaState & EXACT_META_STATES; + if (behaviorMetaState & AMETA_CTRL_ON) { + unmatchedMetaState &= ~(AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON); + } else if (behaviorMetaState & (AMETA_CTRL_LEFT_ON | AMETA_CTRL_RIGHT_ON)) { + unmatchedMetaState &= ~AMETA_CTRL_ON; + } + if (behaviorMetaState & AMETA_ALT_ON) { + unmatchedMetaState &= ~(AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON); + } else if (behaviorMetaState & (AMETA_ALT_LEFT_ON | AMETA_ALT_RIGHT_ON)) { + unmatchedMetaState &= ~AMETA_ALT_ON; + } + if (behaviorMetaState & AMETA_META_ON) { + unmatchedMetaState &= ~(AMETA_META_LEFT_ON | AMETA_META_RIGHT_ON); + } else if (behaviorMetaState & (AMETA_META_LEFT_ON | AMETA_META_RIGHT_ON)) { + unmatchedMetaState &= ~AMETA_META_ON; + } + return !unmatchedMetaState; + } + return false; +} + bool KeyCharacterMap::findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const { if (!ch) { return false; @@ -699,12 +730,13 @@ status_t KeyCharacterMap::Parser::parse() { return BAD_VALUE; } + if (mMap->mType == KEYBOARD_TYPE_UNKNOWN) { + ALOGE("%s: Keyboard layout missing required keyboard 'type' declaration.", + mTokenizer->getLocation().string()); + return BAD_VALUE; + } + if (mFormat == FORMAT_BASE) { - if (mMap->mType == KEYBOARD_TYPE_UNKNOWN) { - ALOGE("%s: Base keyboard layout missing required keyboard 'type' declaration.", - mTokenizer->getLocation().string()); - return BAD_VALUE; - } if (mMap->mType == KEYBOARD_TYPE_OVERLAY) { ALOGE("%s: Base keyboard layout must specify a keyboard 'type' other than 'OVERLAY'.", mTokenizer->getLocation().string()); @@ -840,10 +872,11 @@ status_t KeyCharacterMap::Parser::parseKey() { } status_t KeyCharacterMap::Parser::parseKeyProperty() { + Key* key = mMap->mKeys.valueFor(mKeyCode); String8 token = mTokenizer->nextToken(WHITESPACE_OR_PROPERTY_DELIMITER); if (token == "}") { mState = STATE_TOP; - return NO_ERROR; + return finishKey(key); } Vector<Property> properties; @@ -943,7 +976,6 @@ status_t KeyCharacterMap::Parser::parseKeyProperty() { } while (!mTokenizer->isEol()); // Add the behavior. - Key* key = mMap->mKeys.valueFor(mKeyCode); for (size_t i = 0; i < properties.size(); i++) { const Property& property = properties.itemAt(i); switch (property.property) { @@ -992,6 +1024,28 @@ status_t KeyCharacterMap::Parser::parseKeyProperty() { return NO_ERROR; } +status_t KeyCharacterMap::Parser::finishKey(Key* key) { + // Fill in default number property. + if (!key->number) { + char16_t digit = 0; + char16_t symbol = 0; + for (Behavior* b = key->firstBehavior; b; b = b->next) { + char16_t ch = b->character; + if (ch) { + if (ch >= '0' && ch <= '9') { + digit = ch; + } else if (ch == '(' || ch == ')' || ch == '#' || ch == '*' + || ch == '-' || ch == '+' || ch == ',' || ch == '.' + || ch == '\'' || ch == ':' || ch == ';' || ch == '/') { + symbol = ch; + } + } + } + key->number = digit ? digit : symbol; + } + return NO_ERROR; +} + status_t KeyCharacterMap::Parser::parseModifier(const String8& token, int32_t* outMetaState) { if (token == "base") { *outMetaState = 0; diff --git a/media/java/android/media/MediaCodec.java b/media/java/android/media/MediaCodec.java index a65c2aa..2efacd8 100644 --- a/media/java/android/media/MediaCodec.java +++ b/media/java/android/media/MediaCodec.java @@ -309,36 +309,57 @@ final public class MediaCodec { int index, int offset, int size, long presentationTimeUs, int flags); + /** Metadata describing the structure of a (at least partially) encrypted + * input sample. + * A buffer's data is considered to be partitioned into "subSamples", + * each subSample starts with a (potentially empty) run of plain, + * unencrypted bytes followed by a (also potentially empty) run of + * encrypted bytes. + * numBytesOfClearData can be null to indicate that all data is encrypted. + */ + public final static class CryptoInfo { + public void set( + int newNumSubSamples, + int[] newNumBytesOfClearData, + int[] newNumBytesOfEncryptedData, + byte[] newKey, + byte[] newIV, + int newMode) { + numSubSamples = newNumSubSamples; + numBytesOfClearData = newNumBytesOfClearData; + numBytesOfEncryptedData = newNumBytesOfEncryptedData; + key = newKey; + iv = newIV; + mode = newMode; + } + + /** The number of subSamples that make up the buffer's contents. */ + public int numSubSamples; + /** The number of leading unencrypted bytes in each subSample. */ + public int[] numBytesOfClearData; + /** The number of trailing encrypted bytes in each subSample. */ + public int[] numBytesOfEncryptedData; + /** A 16-byte opaque key */ + public byte[] key; + /** A 16-byte initialization vector */ + public byte[] iv; + /** The type of encryption that has been applied */ + public int mode; + }; + /** Similar to {@link #queueInputBuffer} but submits a buffer that is - * potentially encrypted. The buffer's data is considered to be - * partitioned into "subSamples", each subSample starts with a - * (potentially empty) run of plain, unencrypted bytes followed - * by a (also potentially empty) run of encrypted bytes. + * potentially encrypted. * @param index The index of a client-owned input buffer previously returned * in a call to {@link #dequeueInputBuffer}. * @param offset The byte offset into the input buffer at which the data starts. - * @param numBytesOfClearData The number of leading unencrypted bytes in - * each subSample. - * @param numBytesOfEncryptedData The number of trailing encrypted bytes - * in each subSample. - * @param numSubSamples The number of subSamples that make up the - * buffer's contents. - * @param key A 16-byte opaque key - * @param iv A 16-byte initialization vector - * @param mode The type of encryption that has been applied - * - * Either numBytesOfClearData or numBytesOfEncryptedData (but not both) - * can be null to indicate that all respective sizes are 0. + * @param presentationTimeUs The time at which this buffer should be rendered. + * @param flags A bitmask of flags {@link #FLAG_SYNCFRAME}, + * {@link #FLAG_CODECCONFIG} or {@link #FLAG_EOS}. */ public native final void queueSecureInputBuffer( int index, int offset, - int[] numBytesOfClearData, - int[] numBytesOfEncryptedData, - int numSubSamples, - byte[] key, - byte[] iv, - int mode, + CryptoInfo info, long presentationTimeUs, int flags); diff --git a/media/java/android/media/MediaExtractor.java b/media/java/android/media/MediaExtractor.java index 3f8b2ca..3b17a7d 100644 --- a/media/java/android/media/MediaExtractor.java +++ b/media/java/android/media/MediaExtractor.java @@ -19,6 +19,7 @@ package android.media; import android.content.ContentResolver; import android.content.Context; import android.content.res.AssetFileDescriptor; +import android.media.MediaCodec; import android.net.Uri; import java.io.FileDescriptor; import java.io.IOException; @@ -235,6 +236,15 @@ final public class MediaExtractor { /** Returns the current sample's flags. */ public native int getSampleFlags(); + /** If the sample flags indicate that the current sample is at least + * partially encrypted, this call returns relevant information about + * the structure of the sample data required for decryption. + * @param info The android.media.MediaCodec.CryptoInfo structure + * to be filled in. + * @return true iff the sample flags contain {@link #SAMPLE_FLAG_ENCRYPTED} + */ + public native boolean getSampleCryptoInfo(MediaCodec.CryptoInfo info); + private static native final void native_init(); private native final void native_setup(); private native final void native_finalize(); diff --git a/media/jni/android_media_MediaCodec.cpp b/media/jni/android_media_MediaCodec.cpp index 979ffb0..a120a2f 100644 --- a/media/jni/android_media_MediaCodec.cpp +++ b/media/jni/android_media_MediaCodec.cpp @@ -49,6 +49,13 @@ enum { struct fields_t { jfieldID context; + + jfieldID cryptoInfoNumSubSamplesID; + jfieldID cryptoInfoNumBytesOfClearDataID; + jfieldID cryptoInfoNumBytesOfEncryptedDataID; + jfieldID cryptoInfoKeyID; + jfieldID cryptoInfoIVID; + jfieldID cryptoInfoModeID; }; static fields_t gFields; @@ -387,12 +394,7 @@ static void android_media_MediaCodec_queueSecureInputBuffer( jobject thiz, jint index, jint offset, - jintArray numBytesOfClearDataObj, - jintArray numBytesOfEncryptedDataObj, - jint numSubSamples, - jbyteArray keyObj, - jbyteArray ivObj, - jint mode, + jobject cryptoInfoObj, jlong timestampUs, jint flags) { ALOGV("android_media_MediaCodec_queueSecureInputBuffer"); @@ -404,6 +406,25 @@ static void android_media_MediaCodec_queueSecureInputBuffer( return; } + jint numSubSamples = + env->GetIntField(cryptoInfoObj, gFields.cryptoInfoNumSubSamplesID); + + jintArray numBytesOfClearDataObj = + (jintArray)env->GetObjectField( + cryptoInfoObj, gFields.cryptoInfoNumBytesOfClearDataID); + + jintArray numBytesOfEncryptedDataObj = + (jintArray)env->GetObjectField( + cryptoInfoObj, gFields.cryptoInfoNumBytesOfEncryptedDataID); + + jbyteArray keyObj = + (jbyteArray)env->GetObjectField(cryptoInfoObj, gFields.cryptoInfoKeyID); + + jbyteArray ivObj = + (jbyteArray)env->GetObjectField(cryptoInfoObj, gFields.cryptoInfoIVID); + + jint mode = env->GetIntField(cryptoInfoObj, gFields.cryptoInfoModeID); + status_t err = OK; CryptoPlugin::SubSample *subSamples = NULL; @@ -612,6 +633,30 @@ static void android_media_MediaCodec_native_init(JNIEnv *env) { gFields.context = env->GetFieldID(clazz, "mNativeContext", "I"); CHECK(gFields.context != NULL); + + clazz = env->FindClass("android/media/MediaCodec$CryptoInfo"); + CHECK(clazz != NULL); + + gFields.cryptoInfoNumSubSamplesID = + env->GetFieldID(clazz, "numSubSamples", "I"); + CHECK(gFields.cryptoInfoNumSubSamplesID != NULL); + + gFields.cryptoInfoNumBytesOfClearDataID = + env->GetFieldID(clazz, "numBytesOfClearData", "[I"); + CHECK(gFields.cryptoInfoNumBytesOfClearDataID != NULL); + + gFields.cryptoInfoNumBytesOfEncryptedDataID = + env->GetFieldID(clazz, "numBytesOfEncryptedData", "[I"); + CHECK(gFields.cryptoInfoNumBytesOfEncryptedDataID != NULL); + + gFields.cryptoInfoKeyID = env->GetFieldID(clazz, "key", "[B"); + CHECK(gFields.cryptoInfoKeyID != NULL); + + gFields.cryptoInfoIVID = env->GetFieldID(clazz, "iv", "[B"); + CHECK(gFields.cryptoInfoIVID != NULL); + + gFields.cryptoInfoModeID = env->GetFieldID(clazz, "mode", "I"); + CHECK(gFields.cryptoInfoModeID != NULL); } static void android_media_MediaCodec_native_setup( @@ -666,7 +711,7 @@ static JNINativeMethod gMethods[] = { { "queueInputBuffer", "(IIIJI)V", (void *)android_media_MediaCodec_queueInputBuffer }, - { "queueSecureInputBuffer", "(II[I[II[B[BIJI)V", + { "queueSecureInputBuffer", "(IILandroid/media/MediaCodec$CryptoInfo;JI)V", (void *)android_media_MediaCodec_queueSecureInputBuffer }, { "dequeueInputBuffer", "(J)I", diff --git a/media/jni/android_media_MediaExtractor.cpp b/media/jni/android_media_MediaExtractor.cpp index e2cdbca..bf3d44a 100644 --- a/media/jni/android_media_MediaExtractor.cpp +++ b/media/jni/android_media_MediaExtractor.cpp @@ -25,17 +25,21 @@ #include "jni.h" #include "JNIHelp.h" +#include <media/hardware/CryptoAPI.h> #include <media/stagefright/foundation/ABuffer.h> #include <media/stagefright/foundation/ADebug.h> #include <media/stagefright/foundation/AMessage.h> #include <media/stagefright/DataSource.h> #include <media/stagefright/MediaErrors.h> +#include <media/stagefright/MetaData.h> #include <media/stagefright/NuMediaExtractor.h> namespace android { struct fields_t { jfieldID context; + + jmethodID cryptoInfoSetID; }; static fields_t gFields; @@ -166,7 +170,32 @@ status_t JMediaExtractor::getSampleTime(int64_t *sampleTimeUs) { } status_t JMediaExtractor::getSampleFlags(uint32_t *sampleFlags) { - return mImpl->getSampleFlags(sampleFlags); + *sampleFlags = 0; + + sp<MetaData> meta; + status_t err = mImpl->getSampleMeta(&meta); + + if (err != OK) { + return err; + } + + int32_t val; + if (meta->findInt32(kKeyIsSyncFrame, &val) && val != 0) { + (*sampleFlags) |= NuMediaExtractor::SAMPLE_FLAG_SYNC; + } + + uint32_t type; + const void *data; + size_t size; + if (meta->findData(kKeyEncryptedSizes, &type, &data, &size)) { + (*sampleFlags) |= NuMediaExtractor::SAMPLE_FLAG_ENCRYPTED; + } + + return OK; +} + +status_t JMediaExtractor::getSampleMeta(sp<MetaData> *sampleMeta) { + return mImpl->getSampleMeta(sampleMeta); } } // namespace android @@ -369,6 +398,110 @@ static jint android_media_MediaExtractor_getSampleFlags( return sampleFlags; } +static jboolean android_media_MediaExtractor_getSampleCryptoInfo( + JNIEnv *env, jobject thiz, jobject cryptoInfoObj) { + sp<JMediaExtractor> extractor = getMediaExtractor(env, thiz); + + if (extractor == NULL) { + jniThrowException(env, "java/lang/IllegalStateException", NULL); + return -1ll; + } + + sp<MetaData> meta; + status_t err = extractor->getSampleMeta(&meta); + + if (err != OK) { + return false; + } + + uint32_t type; + const void *data; + size_t size; + if (!meta->findData(kKeyEncryptedSizes, &type, &data, &size)) { + return false; + } + + size_t numSubSamples = size / sizeof(size_t); + + if (numSubSamples == 0) { + return false; + } + + jintArray numBytesOfEncryptedDataObj = env->NewIntArray(numSubSamples); + jboolean isCopy; + jint *dst = env->GetIntArrayElements(numBytesOfEncryptedDataObj, &isCopy); + for (size_t i = 0; i < numSubSamples; ++i) { + dst[i] = ((const size_t *)data)[i]; + } + env->ReleaseIntArrayElements(numBytesOfEncryptedDataObj, dst, 0); + dst = NULL; + + size_t encSize = size; + jintArray numBytesOfPlainDataObj = NULL; + if (meta->findData(kKeyPlainSizes, &type, &data, &size)) { + if (size != encSize) { + // The two must be of the same length. + return false; + } + + numBytesOfPlainDataObj = env->NewIntArray(numSubSamples); + jboolean isCopy; + jint *dst = env->GetIntArrayElements(numBytesOfPlainDataObj, &isCopy); + for (size_t i = 0; i < numSubSamples; ++i) { + dst[i] = ((const size_t *)data)[i]; + } + env->ReleaseIntArrayElements(numBytesOfPlainDataObj, dst, 0); + dst = NULL; + } + + jbyteArray keyObj = NULL; + if (meta->findData(kKeyCryptoKey, &type, &data, &size)) { + if (size != 16) { + // Keys must be 16 bytes in length. + return false; + } + + keyObj = env->NewByteArray(size); + jboolean isCopy; + jbyte *dst = env->GetByteArrayElements(keyObj, &isCopy); + memcpy(dst, data, size); + env->ReleaseByteArrayElements(keyObj, dst, 0); + dst = NULL; + } + + jbyteArray ivObj = NULL; + if (meta->findData(kKeyCryptoIV, &type, &data, &size)) { + if (size != 16) { + // IVs must be 16 bytes in length. + return false; + } + + ivObj = env->NewByteArray(size); + jboolean isCopy; + jbyte *dst = env->GetByteArrayElements(ivObj, &isCopy); + memcpy(dst, data, size); + env->ReleaseByteArrayElements(ivObj, dst, 0); + dst = NULL; + } + + int32_t mode; + if (!meta->findInt32(kKeyCryptoMode, &mode)) { + mode = CryptoPlugin::kMode_AES_CTR; + } + + env->CallVoidMethod( + cryptoInfoObj, + gFields.cryptoInfoSetID, + numSubSamples, + numBytesOfPlainDataObj, + numBytesOfEncryptedDataObj, + keyObj, + ivObj, + mode); + + return true; +} + static void android_media_MediaExtractor_native_init(JNIEnv *env) { jclass clazz = env->FindClass("android/media/MediaExtractor"); CHECK(clazz != NULL); @@ -376,6 +509,12 @@ static void android_media_MediaExtractor_native_init(JNIEnv *env) { gFields.context = env->GetFieldID(clazz, "mNativeContext", "I"); CHECK(gFields.context != NULL); + clazz = env->FindClass("android/media/MediaCodec$CryptoInfo"); + CHECK(clazz != NULL); + + gFields.cryptoInfoSetID = + env->GetMethodID(clazz, "set", "(I[I[I[B[BI)V"); + DataSource::RegisterDefaultSniffers(); } @@ -485,6 +624,9 @@ static JNINativeMethod gMethods[] = { { "getSampleFlags", "()I", (void *)android_media_MediaExtractor_getSampleFlags }, + { "getSampleCryptoInfo", "(Landroid/media/MediaCodec$CryptoInfo;)Z", + (void *)android_media_MediaExtractor_getSampleCryptoInfo }, + { "native_init", "()V", (void *)android_media_MediaExtractor_native_init }, { "native_setup", "()V", diff --git a/media/jni/android_media_MediaExtractor.h b/media/jni/android_media_MediaExtractor.h index 1aacea2..f7ce2ff 100644 --- a/media/jni/android_media_MediaExtractor.h +++ b/media/jni/android_media_MediaExtractor.h @@ -27,6 +27,7 @@ namespace android { +struct MetaData; struct NuMediaExtractor; struct JMediaExtractor : public RefBase { @@ -50,6 +51,7 @@ struct JMediaExtractor : public RefBase { status_t getSampleTrackIndex(size_t *trackIndex); status_t getSampleTime(int64_t *sampleTimeUs); status_t getSampleFlags(uint32_t *sampleFlags); + status_t getSampleMeta(sp<MetaData> *sampleMeta); protected: virtual ~JMediaExtractor(); diff --git a/packages/SystemUI/res/values-bg/strings.xml b/packages/SystemUI/res/values-bg/strings.xml index e5167a5..429f246 100644 --- a/packages/SystemUI/res/values-bg/strings.xml +++ b/packages/SystemUI/res/values-bg/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Известия"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Bluetooth има връзка с тетъринг"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Методи на въвеждане: Настройка"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Физическа клавиатура"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Да се разреши ли на приложението <xliff:g id="APPLICATION">%1$s</xliff:g> достъп до USB устройството?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Да се разреши ли на приложението <xliff:g id="APPLICATION">%1$s</xliff:g> достъп до аксесоара за USB?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Да се отвори ли <xliff:g id="ACTIVITY">%1$s</xliff:g>, когато това USB устройство е свързано?"</string> diff --git a/packages/SystemUI/res/values-cs/strings.xml b/packages/SystemUI/res/values-cs/strings.xml index 847bfc4..9c9674a 100644 --- a/packages/SystemUI/res/values-cs/strings.xml +++ b/packages/SystemUI/res/values-cs/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Oznámení"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Datové připojení Bluetooth se sdílí"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Nastavit metody vstupu"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Fyzická klávesnice"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Povolit aplikaci <xliff:g id="APPLICATION">%1$s</xliff:g> přístup k zařízení USB?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Povolit aplikaci <xliff:g id="APPLICATION">%1$s</xliff:g> přístup k perifernímu zařízení USB?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Chcete při připojení tohoto zařízení USB otevřít aplikaci <xliff:g id="ACTIVITY">%1$s</xliff:g>?"</string> diff --git a/packages/SystemUI/res/values-hr/strings.xml b/packages/SystemUI/res/values-hr/strings.xml index f3d4043..2226aa8 100644 --- a/packages/SystemUI/res/values-hr/strings.xml +++ b/packages/SystemUI/res/values-hr/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Obavijesti"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Bluetooth posredno povezan"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Postavljanje načina unosa"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Fizička tipkovnica"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Dopustiti aplikaciji <xliff:g id="APPLICATION">%1$s</xliff:g> da pristupi ovom USB uređaju?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Dopustiti aplikaciji <xliff:g id="APPLICATION">%1$s</xliff:g> da pristupi ovom USB dodatku?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Otvoriti <xliff:g id="ACTIVITY">%1$s</xliff:g> kad se spoji ovaj USB uređaj?"</string> diff --git a/packages/SystemUI/res/values-in/strings.xml b/packages/SystemUI/res/values-in/strings.xml index 267f5e7..f246132 100644 --- a/packages/SystemUI/res/values-in/strings.xml +++ b/packages/SystemUI/res/values-in/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Pemberitahuan"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Bluetooth tertambat"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Menyiapkan metode masukan"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Keyboard fisik"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Izinkan apl <xliff:g id="APPLICATION">%1$s</xliff:g> mengakses perangkat USB?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Izinkan apl <xliff:g id="APPLICATION">%1$s</xliff:g> mengakses aksesori USB?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Buka <xliff:g id="ACTIVITY">%1$s</xliff:g> ketika perangkat USB ini tersambung?"</string> diff --git a/packages/SystemUI/res/values-nb/strings.xml b/packages/SystemUI/res/values-nb/strings.xml index fdd3b10..c7b272a 100644 --- a/packages/SystemUI/res/values-nb/strings.xml +++ b/packages/SystemUI/res/values-nb/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Varslinger"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Bluetooth tilknyttet"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Konfigurer inndatametoder"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Fysisk tastatur"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Vil du gi appen <xliff:g id="APPLICATION">%1$s</xliff:g> tilgang til USB-enheten?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Vil du gi appen <xliff:g id="APPLICATION">%1$s</xliff:g> tilgang til USB-tilbehøret?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Vil du åpne <xliff:g id="ACTIVITY">%1$s</xliff:g> når denne USB-enheten er tilkoblet?"</string> diff --git a/packages/SystemUI/res/values-ro/strings.xml b/packages/SystemUI/res/values-ro/strings.xml index ff6ca3d..b778e4d 100644 --- a/packages/SystemUI/res/values-ro/strings.xml +++ b/packages/SystemUI/res/values-ro/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Notificări"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Conectat prin tethering prin Bluetooth"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Configuraţi metode de intrare"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Tastatură fizică"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Permiteţi aplicaţiei <xliff:g id="APPLICATION">%1$s</xliff:g> să acceseze dispozitivul USB?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Permiteţi aplicaţiei <xliff:g id="APPLICATION">%1$s</xliff:g> să acceseze accesoriul USB?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Deschideţi <xliff:g id="ACTIVITY">%1$s</xliff:g> la conectarea acestui dispozitiv USB?"</string> diff --git a/packages/SystemUI/res/values-sr/strings.xml b/packages/SystemUI/res/values-sr/strings.xml index 3268544..fb7c21a 100644 --- a/packages/SystemUI/res/values-sr/strings.xml +++ b/packages/SystemUI/res/values-sr/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Обавештења"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Веза преко Bluetooth-а"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Подеси методе уноса"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Физичка тастатура"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Желите ли да дозволите апликацији <xliff:g id="APPLICATION">%1$s</xliff:g> да приступа USB уређају?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Желите ли да дозволите апликацији <xliff:g id="APPLICATION">%1$s</xliff:g> да приступа USB помоћном уређају?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Желите ли да се отвори <xliff:g id="ACTIVITY">%1$s</xliff:g> када се прикључи овај USB уређај?"</string> diff --git a/packages/SystemUI/res/values-th/strings.xml b/packages/SystemUI/res/values-th/strings.xml index 42c4721..82c5dd7 100644 --- a/packages/SystemUI/res/values-th/strings.xml +++ b/packages/SystemUI/res/values-th/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"การแจ้งเตือน"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"บลูทูธที่ปล่อยสัญญาณ"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"ตั้งค่าวิธีการป้อนข้อมูล"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"แป้นพิมพ์บนเครื่อง"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"อนุญาตให้แอปพลิเคชัน <xliff:g id="APPLICATION">%1$s</xliff:g> เข้าถึงอุปกรณ์ USB นี้หรือไม่"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"อนุญาตให้แอปพลิเคชัน <xliff:g id="APPLICATION">%1$s</xliff:g> เข้าถึงอุปกรณ์เสริม USB นี้หรือไม่"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"เปิด <xliff:g id="ACTIVITY">%1$s</xliff:g> เมื่อมีการเชื่อมต่ออุปกรณ์ USB นี้หรือไม่"</string> diff --git a/packages/SystemUI/res/values-uk/strings.xml b/packages/SystemUI/res/values-uk/strings.xml index 9a05919..8a13400 100644 --- a/packages/SystemUI/res/values-uk/strings.xml +++ b/packages/SystemUI/res/values-uk/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"Сповіщення"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"Створено прив\'язку Bluetooth"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"Налаштувати методи введення"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"Фізична клавіатура"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"Надати програмі <xliff:g id="APPLICATION">%1$s</xliff:g> доступ до пристрою USB?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"Надати програмі <xliff:g id="APPLICATION">%1$s</xliff:g> доступ до аксесуара USB?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"Відкривати \"<xliff:g id="ACTIVITY">%1$s</xliff:g>\", коли під’єднано пристрій USB?"</string> diff --git a/packages/SystemUI/res/values-zh-rTW/strings.xml b/packages/SystemUI/res/values-zh-rTW/strings.xml index cabc243..399890b 100644 --- a/packages/SystemUI/res/values-zh-rTW/strings.xml +++ b/packages/SystemUI/res/values-zh-rTW/strings.xml @@ -48,8 +48,7 @@ <string name="status_bar_settings_notifications" msgid="397146176280905137">"通知"</string> <string name="bluetooth_tethered" msgid="7094101612161133267">"藍牙網路共用已開"</string> <string name="status_bar_input_method_settings_configure_input_methods" msgid="3504292471512317827">"設定輸入法"</string> - <!-- no translation found for status_bar_use_physical_keyboard (7551903084416057810) --> - <skip /> + <string name="status_bar_use_physical_keyboard" msgid="7551903084416057810">"實體鍵盤"</string> <string name="usb_device_permission_prompt" msgid="834698001271562057">"允許 <xliff:g id="APPLICATION">%1$s</xliff:g> 應用程式存取 USB 裝置嗎?"</string> <string name="usb_accessory_permission_prompt" msgid="5171775411178865750">"允許 <xliff:g id="APPLICATION">%1$s</xliff:g> 應用程式存取 USB 配件嗎?"</string> <string name="usb_device_confirm_prompt" msgid="5161205258635253206">"連接這個 USB 裝置時啟用 <xliff:g id="ACTIVITY">%1$s</xliff:g> 嗎?"</string> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index f45b3ad..76f7ea6 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -94,7 +94,7 @@ public class PhoneStatusBar extends BaseStatusBar { public static final String ACTION_STATUSBAR_START = "com.android.internal.policy.statusbar.START"; - private static final boolean ENABLE_INTRUDERS = true; + private static final boolean ENABLE_INTRUDERS = false; static final int EXPANDED_LEAVE_ALONE = -10000; static final int EXPANDED_FULL_OPEN = -10001; @@ -280,9 +280,11 @@ public class PhoneStatusBar extends BaseStatusBar { } mNotificationPanel = expanded.findViewById(R.id.notification_panel); - mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null); - mIntruderAlertView.setVisibility(View.GONE); - mIntruderAlertView.setBar(this); + if (ENABLE_INTRUDERS) { + mIntruderAlertView = (IntruderAlertView) View.inflate(context, R.layout.intruder_alert, null); + mIntruderAlertView.setVisibility(View.GONE); + mIntruderAlertView.setBar(this); + } PhoneStatusBarView sb = (PhoneStatusBarView)View.inflate(context, R.layout.status_bar, null); @@ -520,12 +522,12 @@ public class PhoneStatusBar extends BaseStatusBar { } } catch (RemoteException ex) { } + + /* + * DISABLED due to missing API if (ENABLE_INTRUDERS && ( // TODO(dsandler): Only if the screen is on notification.notification.intruderView != null)) { -// notification.notification.fullScreenIntent != null -// || (notification.score >= mIntruderInImmersiveMinScore) -// || (!immersive && (notification.score > mIntruderMinScore)))) { Slog.d(TAG, "Presenting high-priority notification"); // special new transient ticker mode // 1. Populate mIntruderAlertView @@ -554,7 +556,10 @@ public class PhoneStatusBar extends BaseStatusBar { if (INTRUDER_ALERT_DECAY_MS > 0) { mHandler.sendEmptyMessageDelayed(MSG_HIDE_INTRUDER, INTRUDER_ALERT_DECAY_MS); } - } else if (notification.notification.fullScreenIntent != null) { + } else + */ + + if (notification.notification.fullScreenIntent != null) { // not immersive & a full-screen alert should be shown Slog.d(TAG, "Notification has fullScreenIntent; sending fullScreenIntent"); try { @@ -675,7 +680,7 @@ public class PhoneStatusBar extends BaseStatusBar { updateExpandedViewPos(EXPANDED_LEAVE_ALONE); // See if we need to update the intruder. - if (oldNotification == mCurrentlyIntrudingNotification) { + if (ENABLE_INTRUDERS && oldNotification == mCurrentlyIntrudingNotification) { if (DEBUG) Slog.d(TAG, "updating the current intruder:" + notification); // XXX: this is a hack for Alarms. The real implementation will need to *update* // the intruder. @@ -697,7 +702,7 @@ public class PhoneStatusBar extends BaseStatusBar { // Recalculate the position of the sliding windows and the titles. updateExpandedViewPos(EXPANDED_LEAVE_ALONE); - if (old == mCurrentlyIntrudingNotification) { + if (ENABLE_INTRUDERS && old == mCurrentlyIntrudingNotification) { mHandler.sendEmptyMessage(MSG_HIDE_INTRUDER); } @@ -2039,6 +2044,7 @@ public class PhoneStatusBar extends BaseStatusBar { }; private void setIntruderAlertVisibility(boolean vis) { + if (!ENABLE_INTRUDERS) return; if (DEBUG) { Slog.v(TAG, (vis ? "showing" : "hiding") + " intruder alert window"); } diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 897b8d0..b22a109 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -306,7 +306,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { WindowState mStatusBar = null; boolean mHasSystemNavBar; int mStatusBarHeight; - final ArrayList<WindowState> mStatusBarPanels = new ArrayList<WindowState>(); + final ArrayList<WindowState> mStatusBarSubPanels = new ArrayList<WindowState>(); WindowState mNavigationBar = null; boolean mHasNavigationBar = false; boolean mCanHideNavigationBar = false; @@ -1560,13 +1560,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { mContext.enforceCallingOrSelfPermission( android.Manifest.permission.STATUS_BAR_SERVICE, "PhoneWindowManager"); - mStatusBarPanels.add(win); break; case TYPE_STATUS_BAR_SUB_PANEL: mContext.enforceCallingOrSelfPermission( android.Manifest.permission.STATUS_BAR_SERVICE, "PhoneWindowManager"); - mStatusBarPanels.add(win); + mStatusBarSubPanels.add(win); break; case TYPE_KEYGUARD: if (mKeyguard != null) { @@ -1587,7 +1586,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { } else if (mNavigationBar == win) { mNavigationBar = null; } else { - mStatusBarPanels.remove(win); + mStatusBarSubPanels.remove(win); } } @@ -2760,8 +2759,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { } if (mStatusBar != null && mStatusBar.isVisibleLw()) { RectF rect = new RectF(mStatusBar.getShownFrameLw()); - for (int i=mStatusBarPanels.size()-1; i>=0; i--) { - WindowState w = mStatusBarPanels.get(i); + for (int i=mStatusBarSubPanels.size()-1; i>=0; i--) { + WindowState w = mStatusBarSubPanels.get(i); if (w.isVisibleLw()) { rect.union(w.getShownFrameLw()); } diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java index 359074a..722e312 100644 --- a/services/java/com/android/server/ConnectivityService.java +++ b/services/java/com/android/server/ConnectivityService.java @@ -865,27 +865,39 @@ private NetworkStateTracker makeWimaxStateTracker() { @Override public NetworkQuotaInfo getActiveNetworkQuotaInfo() { enforceAccessPermission(); - final NetworkState state = getNetworkStateUnchecked(mActiveDefaultNetwork); - if (state != null) { - try { - return mPolicyManager.getNetworkQuotaInfo(state); - } catch (RemoteException e) { + + final long token = Binder.clearCallingIdentity(); + try { + final NetworkState state = getNetworkStateUnchecked(mActiveDefaultNetwork); + if (state != null) { + try { + return mPolicyManager.getNetworkQuotaInfo(state); + } catch (RemoteException e) { + } } + return null; + } finally { + Binder.restoreCallingIdentity(token); } - return null; } @Override public boolean isActiveNetworkMetered() { enforceAccessPermission(); - final NetworkState state = getNetworkStateUnchecked(mActiveDefaultNetwork); - if (state != null) { - try { - return mPolicyManager.isNetworkMetered(state); - } catch (RemoteException e) { + + final long token = Binder.clearCallingIdentity(); + try { + final NetworkState state = getNetworkStateUnchecked(mActiveDefaultNetwork); + if (state != null) { + try { + return mPolicyManager.isNetworkMetered(state); + } catch (RemoteException e) { + } } + return false; + } finally { + Binder.restoreCallingIdentity(token); } - return false; } public boolean setRadios(boolean turnOn) { diff --git a/services/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/java/com/android/server/accessibility/AccessibilityManagerService.java index ed2a6c0..6675816 100644 --- a/services/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -36,6 +36,7 @@ import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.database.ContentObserver; import android.graphics.Rect; +import android.hardware.input.InputManager; import android.net.Uri; import android.os.Binder; import android.os.Build; @@ -44,12 +45,16 @@ import android.os.IBinder; import android.os.Message; import android.os.RemoteException; import android.os.ServiceManager; +import android.os.SystemClock; import android.provider.Settings; import android.text.TextUtils; import android.text.TextUtils.SimpleStringSplitter; import android.util.Slog; import android.util.SparseArray; import android.view.IWindow; +import android.view.InputDevice; +import android.view.KeyCharacterMap; +import android.view.KeyEvent; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityManager; import android.view.accessibility.AccessibilityNodeInfo; @@ -1301,11 +1306,11 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub } } } - final int flags = (mIncludeNotImportantViews) ? - AccessibilityNodeInfo.INCLUDE_NOT_IMPORTANT_VIEWS : 0; - final int interrogatingPid = Binder.getCallingPid(); final long identityToken = Binder.clearCallingIdentity(); try { + final int flags = (mIncludeNotImportantViews) ? + AccessibilityNodeInfo.INCLUDE_NOT_IMPORTANT_VIEWS : 0; + final int interrogatingPid = Binder.getCallingPid(); connection.performAccessibilityAction(accessibilityNodeId, action, interactionId, callback, flags, interrogatingPid, interrogatingTid); } catch (RemoteException re) { @@ -1318,6 +1323,24 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub return true; } + public boolean perfromGlobalAction(int action) { + switch (action) { + case AccessibilityService.GLOBAL_ACTION_BACK: { + sendDownAndUpKeyEvents(KeyEvent.KEYCODE_BACK); + } return true; + case AccessibilityService.GLOBAL_ACTION_HOME: { + sendDownAndUpKeyEvents(KeyEvent.KEYCODE_HOME); + } return true; + case AccessibilityService.GLOBAL_ACTION_RECENTS: { + sendDownAndUpKeyEvents(KeyEvent.KEYCODE_APP_SWITCH); + } return true; + case AccessibilityService.GLOBAL_ACTION_NOTIFICATIONS: { + // TODO: Implement when 6346026 is fixed. + } return true; + } + return false; + } + public void onServiceDisconnected(ComponentName componentName) { /* do nothing - #binderDied takes care */ } @@ -1358,6 +1381,30 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub } } + private void sendDownAndUpKeyEvents(int keyCode) { + final long token = Binder.clearCallingIdentity(); + + // Inject down. + final long downTime = SystemClock.uptimeMillis(); + KeyEvent down = KeyEvent.obtain(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0, 0, + KeyCharacterMap.VIRTUAL_KEYBOARD, 0, KeyEvent.FLAG_FROM_SYSTEM, + InputDevice.SOURCE_KEYBOARD, null); + InputManager.getInstance().injectInputEvent(down, + InputManager.INJECT_INPUT_EVENT_MODE_ASYNC); + down.recycle(); + + // Inject up. + final long upTime = SystemClock.uptimeMillis(); + KeyEvent up = KeyEvent.obtain(downTime, upTime, KeyEvent.ACTION_UP, keyCode, 0, 0, + KeyCharacterMap.VIRTUAL_KEYBOARD, 0, KeyEvent.FLAG_FROM_SYSTEM, + InputDevice.SOURCE_KEYBOARD, null); + InputManager.getInstance().injectInputEvent(up, + InputManager.INJECT_INPUT_EVENT_MODE_ASYNC); + up.recycle(); + + Binder.restoreCallingIdentity(token); + } + private IAccessibilityInteractionConnection getConnectionLocked(int windowId) { if (DEBUG) { Slog.i(LOG_TAG, "Trying to get interaction connection to windowId: " + windowId); diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index 2c53186..ad13c41 100644 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java @@ -2944,7 +2944,7 @@ final class ActivityStack { // Collect information about the target of the Intent. ActivityInfo aInfo = resolveActivity(intent, resolvedType, startFlags, profileFile, profileFd, userId); - if (mService.isSingleton(aInfo.processName, aInfo.applicationInfo)) { + if (aInfo != null && mService.isSingleton(aInfo.processName, aInfo.applicationInfo)) { userId = 0; } aInfo = mService.getActivityInfoForUser(aInfo, userId); @@ -3946,6 +3946,17 @@ final class ActivityStack { } } + final void updateTransitLocked(int transit, Bundle options) { + if (options != null) { + ActivityRecord r = topRunningActivityLocked(null); + if (r != null && r.state != ActivityState.RESUMED) { + r.updateOptionsLocked(options); + } else { + ActivityOptions.abort(options); + } + } + mService.mWindowManager.prepareAppTransition(transit, false); + } final void moveTaskToFrontLocked(TaskRecord tr, ActivityRecord reason, Bundle options) { if (DEBUG_SWITCH) Slog.v(TAG, "moveTaskToFront: " + tr); @@ -3955,7 +3966,12 @@ final class ActivityStack { if (top < 0 || (mHistory.get(top)).task.taskId == task) { // nothing to do! - ActivityOptions.abort(options); + if (reason != null && + (reason.intent.getFlags()&Intent.FLAG_ACTIVITY_NO_ANIMATION) != 0) { + ActivityOptions.abort(options); + } else { + updateTransitLocked(WindowManagerPolicy.TRANSIT_TASK_TO_FRONT, options); + } return; } @@ -3999,16 +4015,7 @@ final class ActivityStack { } ActivityOptions.abort(options); } else { - if (options != null) { - ActivityRecord r = topRunningActivityLocked(null); - if (r != null && r.state != ActivityState.RESUMED) { - r.updateOptionsLocked(options); - } else { - ActivityOptions.abort(options); - } - } - mService.mWindowManager.prepareAppTransition( - WindowManagerPolicy.TRANSIT_TASK_TO_FRONT, false); + updateTransitLocked(WindowManagerPolicy.TRANSIT_TASK_TO_FRONT, options); } mService.mWindowManager.moveAppTokensToTop(moved); diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java index 966f4c1..b4a458f 100644..100755 --- a/services/java/com/android/server/wm/WindowManagerService.java +++ b/services/java/com/android/server/wm/WindowManagerService.java @@ -3076,6 +3076,43 @@ public class WindowManagerService extends IWindowManager.Stub return null; } + private Animation createExitAnimationLocked(int transit, int duration) { + if (transit == WindowManagerPolicy.TRANSIT_WALLPAPER_INTRA_OPEN || + transit == WindowManagerPolicy.TRANSIT_WALLPAPER_INTRA_CLOSE) { + // If we are on top of the wallpaper, we need an animation that + // correctly handles the wallpaper staying static behind all of + // the animated elements. To do this, will just have the existing + // element fade out. + Animation a = new AlphaAnimation(1, 0); + a.setDetachWallpaper(true); + a.setDuration(duration); + return a; + } else { + // For normal animations, the exiting element just holds in place. + Animation a = new AlphaAnimation(1, 1); + a.setDuration(duration); + return a; + } + } + + /** + * Compute the pivot point for an animation that is scaling from a small + * rect on screen to a larger rect. The pivot point varies depending on + * the distance between the inner and outer edges on both sides. This + * function computes the pivot point for one dimension. + * @param startPos Offset from left/top edge of outer rectangle to + * left/top edge of inner rectangle. + * @param finalScale The scaling factor between the size of the outer + * and inner rectangles. + */ + private static float computePivot(int startPos, float finalScale) { + final float denom = finalScale-1; + if (Math.abs(denom) < .0001f) { + return startPos; + } + return -startPos / denom; + } + private Animation createScaleUpAnimationLocked(int transit, boolean enter) { Animation a; // Pick the desired duration. If this is an inter-activity transition, @@ -3094,11 +3131,12 @@ public class WindowManagerService extends IWindowManager.Stub } if (enter) { // Entering app zooms out from the center of the initial rect. - Animation scale = new ScaleAnimation( - mNextAppTransitionStartWidth/mAppDisplayWidth, 1, - mNextAppTransitionStartHeight/mAppDisplayHeight, 1, - mNextAppTransitionStartX + mNextAppTransitionStartWidth/2, - mNextAppTransitionStartY + mNextAppTransitionStartHeight/2); + float scaleW = mNextAppTransitionStartWidth/(float)mAppDisplayWidth; + float scaleH = mNextAppTransitionStartHeight/(float)mAppDisplayHeight; + Animation scale = new ScaleAnimation(scaleW, 1, scaleH, 1, + computePivot(mNextAppTransitionStartX, scaleW), + computePivot(mNextAppTransitionStartY, scaleH)); + scale.setDuration(duration); AnimationSet set = new AnimationSet(true); Animation alpha = new AlphaAnimation(0, 1); scale.setDuration(duration); @@ -3107,13 +3145,11 @@ public class WindowManagerService extends IWindowManager.Stub set.addAnimation(alpha); a = set; } else { - // Exiting app just holds in place. - a = new AlphaAnimation(1, 1); - a.setDuration(duration); + a = createExitAnimationLocked(transit, duration); } a.setFillAfter(true); final Interpolator interpolator = AnimationUtils.loadInterpolator(mContext, - com.android.internal.R.interpolator.decelerate_quint); + com.android.internal.R.interpolator.decelerate_quad); a.setInterpolator(interpolator); a.initialize(mAppDisplayWidth, mAppDisplayHeight, mAppDisplayWidth, mAppDisplayHeight); @@ -3123,8 +3159,10 @@ public class WindowManagerService extends IWindowManager.Stub private Animation createThumbnailAnimationLocked(int transit, boolean enter, boolean thumb) { Animation a; - final float thumbWidth = mNextAppTransitionThumbnail.getWidth(); - final float thumbHeight = mNextAppTransitionThumbnail.getHeight(); + final int thumbWidthI = mNextAppTransitionThumbnail.getWidth(); + final float thumbWidth = thumbWidthI > 0 ? thumbWidthI : 1; + final int thumbHeightI = mNextAppTransitionThumbnail.getHeight(); + final float thumbHeight = thumbHeightI > 0 ? thumbHeightI : 1; // Pick the desired duration. If this is an inter-activity transition, // it is the standard duration for that. Otherwise we use the longer // task transition duration. @@ -3142,11 +3180,11 @@ public class WindowManagerService extends IWindowManager.Stub if (thumb) { // Animation for zooming thumbnail from its initial size to // filling the screen. - Animation scale = new ScaleAnimation( - 1, mAppDisplayWidth/thumbWidth, - 1, mAppDisplayHeight/thumbHeight, - mNextAppTransitionStartX + thumbWidth/2, - mNextAppTransitionStartY + thumbHeight/2); + float scaleW = mAppDisplayWidth/thumbWidth; + float scaleH = mAppDisplayHeight/thumbHeight; + Animation scale = new ScaleAnimation(1, scaleW, 1, scaleH, + computePivot(mNextAppTransitionStartX, 1/scaleW), + computePivot(mNextAppTransitionStartY, 1/scaleH)); AnimationSet set = new AnimationSet(true); Animation alpha = new AlphaAnimation(1, 0); scale.setDuration(duration); @@ -3156,20 +3194,18 @@ public class WindowManagerService extends IWindowManager.Stub a = set; } else if (enter) { // Entering app zooms out from the center of the thumbnail. - a = new ScaleAnimation( - thumbWidth/mAppDisplayWidth, 1, - thumbHeight/mAppDisplayHeight, 1, - mNextAppTransitionStartX + thumbWidth/2, - mNextAppTransitionStartY + thumbHeight/2); + float scaleW = thumbWidth/mAppDisplayWidth; + float scaleH = thumbHeight/mAppDisplayHeight; + a = new ScaleAnimation(scaleW, 1, scaleH, 1, + computePivot(mNextAppTransitionStartX, scaleW), + computePivot(mNextAppTransitionStartY, scaleH)); a.setDuration(duration); } else { - // Exiting app just holds in place. - a = new AlphaAnimation(1, 1); - a.setDuration(duration); + a = createExitAnimationLocked(transit, duration); } a.setFillAfter(true); final Interpolator interpolator = AnimationUtils.loadInterpolator(mContext, - com.android.internal.R.interpolator.decelerate_quint); + com.android.internal.R.interpolator.decelerate_quad); a.setInterpolator(interpolator); a.initialize(mAppDisplayWidth, mAppDisplayHeight, mAppDisplayWidth, mAppDisplayHeight); @@ -3521,17 +3557,7 @@ public class WindowManagerService extends IWindowManager.Stub continue; } - if (!haveGroup) { - // We ignore any hidden applications on the top. - if (wtoken.hiddenRequested || wtoken.willBeHidden) { - if (DEBUG_ORIENTATION) Slog.v(TAG, "Skipping " + wtoken - + " -- hidden on top"); - continue; - } - haveGroup = true; - curGroup = wtoken.groupId; - lastOrientation = wtoken.requestedOrientation; - } else if (curGroup != wtoken.groupId) { + if (haveGroup == true && curGroup != wtoken.groupId) { // If we have hit a new application group, and the bottom // of the previous group didn't explicitly say to use // the orientation behind it, and the last app was @@ -3544,6 +3570,20 @@ public class WindowManagerService extends IWindowManager.Stub return lastOrientation; } } + + // We ignore any hidden applications on the top. + if (wtoken.hiddenRequested || wtoken.willBeHidden) { + if (DEBUG_ORIENTATION) Slog.v(TAG, "Skipping " + wtoken + + " -- hidden on top"); + continue; + } + + if (!haveGroup) { + haveGroup = true; + curGroup = wtoken.groupId; + lastOrientation = wtoken.requestedOrientation; + } + int or = wtoken.requestedOrientation; // If this application is fullscreen, and didn't explicitly say // to use the orientation behind it, then just take whatever diff --git a/services/java/com/android/server/wm/WindowStateAnimator.java b/services/java/com/android/server/wm/WindowStateAnimator.java index 0a7e7fd..3a51afe 100644 --- a/services/java/com/android/server/wm/WindowStateAnimator.java +++ b/services/java/com/android/server/wm/WindowStateAnimator.java @@ -978,7 +978,7 @@ class WindowStateAnimator { setSurfaceBoundaries(recoveringMemory); - if (w.mAttachedHidden || !w.isReadyForDisplay()) { + if (w.mAttachedHidden || !w.isReadyForDisplay() || !w.isDrawnLw()) { if (!mLastHidden) { //dump(); mLastHidden = true; diff --git a/telephony/java/com/android/internal/telephony/DataConnectionTracker.java b/telephony/java/com/android/internal/telephony/DataConnectionTracker.java index 214627d..55f2ca3 100644 --- a/telephony/java/com/android/internal/telephony/DataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/DataConnectionTracker.java @@ -46,7 +46,6 @@ import android.util.Log; import com.android.internal.R; import com.android.internal.telephony.DataConnection.FailCause; -import com.android.internal.telephony.uicc.UiccController; import com.android.internal.util.AsyncChannel; import com.android.internal.util.Protocol; @@ -58,7 +57,6 @@ import java.util.Map.Entry; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.atomic.AtomicReference; /** * {@hide} @@ -140,7 +138,6 @@ public abstract class DataConnectionTracker extends Handler { public static final int EVENT_CLEAN_UP_ALL_CONNECTIONS = BASE + 30; public static final int CMD_SET_DEPENDENCY_MET = BASE + 31; public static final int CMD_SET_POLICY_DATA_ENABLE = BASE + 32; - protected static final int EVENT_ICC_CHANGED = BASE + 33; /***** Constants *****/ @@ -253,8 +250,6 @@ public abstract class DataConnectionTracker extends Handler { // member variables protected PhoneBase mPhone; - protected UiccController mUiccController; - protected AtomicReference<IccRecords> mIccRecords = new AtomicReference<IccRecords>(); protected Activity mActivity = Activity.NONE; protected State mState = State.IDLE; protected Handler mDataConnectionTracker = null; @@ -505,8 +500,6 @@ public abstract class DataConnectionTracker extends Handler { protected DataConnectionTracker(PhoneBase phone) { super(); mPhone = phone; - mUiccController = UiccController.getInstance(); - mUiccController.registerForIccChanged(this, EVENT_ICC_CHANGED, null); IntentFilter filter = new IntentFilter(); filter.addAction(getActionIntentReconnectAlarm()); @@ -548,7 +541,6 @@ public abstract class DataConnectionTracker extends Handler { mIsDisposed = true; mPhone.getContext().unregisterReceiver(this.mIntentReceiver); mDataRoamingSettingObserver.unregister(mPhone.getContext()); - mUiccController.unregisterForIccChanged(this); } protected void broadcastMessenger() { @@ -671,7 +663,6 @@ public abstract class DataConnectionTracker extends Handler { protected abstract void onCleanUpConnection(boolean tearDown, int apnId, String reason); protected abstract void onCleanUpAllConnections(String cause); protected abstract boolean isDataPossible(String apnType); - protected abstract void onUpdateIcc(); protected void onDataStallAlarm(int tag) { loge("onDataStallAlarm: not impleted tag=" + tag); @@ -782,10 +773,6 @@ public abstract class DataConnectionTracker extends Handler { onSetPolicyDataEnabled(enabled); break; } - case EVENT_ICC_CHANGED: - onUpdateIcc(); - break; - default: Log.e("DATA", "Unidentified event msg=" + msg); break; diff --git a/telephony/java/com/android/internal/telephony/IccCard.java b/telephony/java/com/android/internal/telephony/IccCard.java index 140b7c6..92024cd 100644 --- a/telephony/java/com/android/internal/telephony/IccCard.java +++ b/telephony/java/com/android/internal/telephony/IccCard.java @@ -35,12 +35,10 @@ import android.view.WindowManager; import com.android.internal.telephony.PhoneBase; import com.android.internal.telephony.CommandsInterface.RadioState; -import com.android.internal.telephony.gsm.GSMPhone; import com.android.internal.telephony.gsm.SIMFileHandler; import com.android.internal.telephony.gsm.SIMRecords; import com.android.internal.telephony.cat.CatService; import com.android.internal.telephony.cdma.CDMALTEPhone; -import com.android.internal.telephony.cdma.CDMAPhone; import com.android.internal.telephony.cdma.CdmaLteUiccFileHandler; import com.android.internal.telephony.cdma.CdmaLteUiccRecords; import com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager; @@ -116,6 +114,8 @@ public class IccCard { protected static final int EVENT_ICC_LOCKED = 1; private static final int EVENT_GET_ICC_STATUS_DONE = 2; protected static final int EVENT_RADIO_OFF_OR_NOT_AVAILABLE = 3; + private static final int EVENT_PINPUK_DONE = 4; + private static final int EVENT_REPOLL_STATUS_DONE = 5; protected static final int EVENT_ICC_READY = 6; private static final int EVENT_QUERY_FACILITY_LOCK_DONE = 7; private static final int EVENT_CHANGE_FACILITY_LOCK_DONE = 8; @@ -178,19 +178,34 @@ public class IccCard { return State.UNKNOWN; } - public IccCard(PhoneBase phone, IccCardStatus ics, String logTag, boolean dbg) { + public IccCard(PhoneBase phone, String logTag, Boolean is3gpp, Boolean dbg) { mLogTag = logTag; mDbg = dbg; - if (mDbg) log("Creating"); - update(phone, ics); + if (mDbg) log("[IccCard] Creating card type " + (is3gpp ? "3gpp" : "3gpp2")); + mPhone = phone; + this.is3gpp = is3gpp; mCdmaSSM = CdmaSubscriptionSourceManager.getInstance(mPhone.getContext(), mPhone.mCM, mHandler, EVENT_CDMA_SUBSCRIPTION_SOURCE_CHANGED, null); + if (phone.mCM.getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE + && phone instanceof CDMALTEPhone) { + mIccFileHandler = new CdmaLteUiccFileHandler(this, "", mPhone.mCM); + mIccRecords = new CdmaLteUiccRecords(this, mPhone.mContext, mPhone.mCM); + } else { + // Correct aid will be set later (when GET_SIM_STATUS returns) + mIccFileHandler = is3gpp ? new SIMFileHandler(this, "", mPhone.mCM) : + new RuimFileHandler(this, "", mPhone.mCM); + mIccRecords = is3gpp ? new SIMRecords(this, mPhone.mContext, mPhone.mCM) : + new RuimRecords(this, mPhone.mContext, mPhone.mCM); + } + mCatService = CatService.getInstance(mPhone.mCM, mIccRecords, + mPhone.mContext, mIccFileHandler, this); mPhone.mCM.registerForOffOrNotAvailable(mHandler, EVENT_RADIO_OFF_OR_NOT_AVAILABLE, null); mPhone.mCM.registerForOn(mHandler, EVENT_RADIO_ON, null); + mPhone.mCM.registerForIccStatusChanged(mHandler, EVENT_ICC_STATUS_CHANGED, null); } public void dispose() { - if (mDbg) log("Disposing card type " + (is3gpp ? "3gpp" : "3gpp2")); + if (mDbg) log("[IccCard] Disposing card type " + (is3gpp ? "3gpp" : "3gpp2")); mPhone.mCM.unregisterForIccStatusChanged(mHandler); mPhone.mCM.unregisterForOffOrNotAvailable(mHandler); mPhone.mCM.unregisterForOn(mHandler); @@ -200,40 +215,6 @@ public class IccCard { mIccFileHandler.dispose(); } - public void update(PhoneBase phone, IccCardStatus ics) { - if (phone != mPhone) { - PhoneBase oldPhone = mPhone; - mPhone = phone; - log("Update"); - if (phone instanceof GSMPhone) { - is3gpp = true; - } else if (phone instanceof CDMALTEPhone){ - is3gpp = true; - } else if (phone instanceof CDMAPhone){ - is3gpp = false; - } else { - throw new RuntimeException("Update: Unhandled phone type. Critical error!" + - phone.getPhoneName()); - } - - - if (phone.mCM.getLteOnCdmaMode() == Phone.LTE_ON_CDMA_TRUE - && phone instanceof CDMALTEPhone) { - mIccFileHandler = new CdmaLteUiccFileHandler(this, "", mPhone.mCM); - mIccRecords = new CdmaLteUiccRecords(this, mPhone.mContext, mPhone.mCM); - } else { - // Correct aid will be set later (when GET_SIM_STATUS returns) - mIccFileHandler = is3gpp ? new SIMFileHandler(this, "", mPhone.mCM) : - new RuimFileHandler(this, "", mPhone.mCM); - mIccRecords = is3gpp ? new SIMRecords(this, mPhone.mContext, mPhone.mCM) : - new RuimRecords(this, mPhone.mContext, mPhone.mCM); - } - mCatService = CatService.getInstance(mPhone.mCM, mIccRecords, mPhone.mContext, - mIccFileHandler, this); - } - mHandler.sendMessage(mHandler.obtainMessage(EVENT_GET_ICC_STATUS_DONE, ics)); - } - protected void finalize() { if (mDbg) log("[IccCard] Finalized card type " + (is3gpp ? "3gpp" : "3gpp2")); } @@ -363,23 +344,27 @@ public class IccCard { */ public void supplyPin (String pin, Message onComplete) { - mPhone.mCM.supplyIccPin(pin, onComplete); + mPhone.mCM.supplyIccPin(pin, mHandler.obtainMessage(EVENT_PINPUK_DONE, onComplete)); } public void supplyPuk (String puk, String newPin, Message onComplete) { - mPhone.mCM.supplyIccPuk(puk, newPin, onComplete); + mPhone.mCM.supplyIccPuk(puk, newPin, + mHandler.obtainMessage(EVENT_PINPUK_DONE, onComplete)); } public void supplyPin2 (String pin2, Message onComplete) { - mPhone.mCM.supplyIccPin2(pin2, onComplete); + mPhone.mCM.supplyIccPin2(pin2, + mHandler.obtainMessage(EVENT_PINPUK_DONE, onComplete)); } public void supplyPuk2 (String puk2, String newPin2, Message onComplete) { - mPhone.mCM.supplyIccPuk2(puk2, newPin2, onComplete); + mPhone.mCM.supplyIccPuk2(puk2, newPin2, + mHandler.obtainMessage(EVENT_PINPUK_DONE, onComplete)); } public void supplyNetworkDepersonalization (String pin, Message onComplete) { - mPhone.mCM.supplyNetworkDepersonalization(pin, onComplete); + mPhone.mCM.supplyNetworkDepersonalization(pin, + mHandler.obtainMessage(EVENT_PINPUK_DONE, onComplete)); } /** @@ -509,15 +494,21 @@ public class IccCard { * */ public String getServiceProviderName () { - return mIccRecords.getServiceProviderName(); + return mPhone.mIccRecords.getServiceProviderName(); } protected void updateStateProperty() { mPhone.setSystemProperty(TelephonyProperties.PROPERTY_SIM_STATE, getState().toString()); } - private void getIccCardStatusDone(IccCardStatus ics) { - handleIccCardStatus(ics); + private void getIccCardStatusDone(AsyncResult ar) { + if (ar.exception != null) { + Log.e(mLogTag,"Error getting ICC status. " + + "RIL_REQUEST_GET_ICC_STATUS should " + + "never return an error", ar.exception); + return; + } + handleIccCardStatus((IccCardStatus) ar.result); } private void handleIccCardStatus(IccCardStatus newCardStatus) { @@ -593,7 +584,6 @@ public class IccCard { if (oldState != State.READY && newState == State.READY && (is3gpp || isSubscriptionFromIccCard)) { mIccFileHandler.setAid(getAid()); - broadcastIccStateChangedIntent(INTENT_VALUE_ICC_READY, null); mIccRecords.onReady(); } } @@ -714,6 +704,7 @@ public class IccCard { if (!is3gpp) { handleCdmaSubscriptionSource(); } + mPhone.mCM.getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE)); break; case EVENT_CDMA_SUBSCRIPTION_SOURCE_CHANGED: handleCdmaSubscriptionSource(); @@ -734,9 +725,30 @@ public class IccCard { obtainMessage(EVENT_QUERY_FACILITY_LOCK_DONE)); break; case EVENT_GET_ICC_STATUS_DONE: - IccCardStatus cs = (IccCardStatus)msg.obj; + ar = (AsyncResult)msg.obj; + + getIccCardStatusDone(ar); + break; + case EVENT_PINPUK_DONE: + // a PIN/PUK/PIN2/PUK2/Network Personalization + // request has completed. ar.userObj is the response Message + // Repoll before returning + ar = (AsyncResult)msg.obj; + // TODO should abstract these exceptions + AsyncResult.forMessage(((Message)ar.userObj)).exception + = ar.exception; + mPhone.mCM.getIccCardStatus( + obtainMessage(EVENT_REPOLL_STATUS_DONE, ar.userObj)); + break; + case EVENT_REPOLL_STATUS_DONE: + // Finished repolling status after PIN operation + // ar.userObj is the response messaeg + // ar.userObj.obj is already an AsyncResult with an + // appropriate exception filled in if applicable - getIccCardStatusDone(cs); + ar = (AsyncResult)msg.obj; + getIccCardStatusDone(ar); + ((Message)ar.userObj).sendToTarget(); break; case EVENT_QUERY_FACILITY_LOCK_DONE: ar = (AsyncResult)msg.obj; @@ -785,6 +797,10 @@ public class IccCard { = ar.exception; ((Message)ar.userObj).sendToTarget(); break; + case EVENT_ICC_STATUS_CHANGED: + Log.d(mLogTag, "Received Event EVENT_ICC_STATUS_CHANGED"); + mPhone.mCM.getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE)); + break; case EVENT_CARD_REMOVED: onIccSwap(false); break; @@ -951,10 +967,6 @@ public class IccCard { Log.d(mLogTag, "[IccCard] " + msg); } - private void loge(String msg) { - Log.e(mLogTag, "[IccCard] " + msg); - } - protected int getCurrentApplicationIndex() { if (is3gpp) { return mIccCardStatus.getGsmUmtsSubscriptionAppIndex(); diff --git a/telephony/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java b/telephony/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java index 0e5f2da..45562ca 100644 --- a/telephony/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java +++ b/telephony/java/com/android/internal/telephony/IccPhoneBookInterfaceManager.java @@ -103,23 +103,11 @@ public abstract class IccPhoneBookInterfaceManager extends IIccPhoneBook.Stub { public IccPhoneBookInterfaceManager(PhoneBase phone) { this.phone = phone; - IccRecords r = phone.mIccRecords.get(); - if (r != null) { - adnCache = r.getAdnCache(); - } } public void dispose() { } - public void updateIccRecords(IccRecords iccRecords) { - if (iccRecords != null) { - adnCache = iccRecords.getAdnCache(); - } else { - adnCache = null; - } - } - protected void publish() { //NOTE service "simphonebook" added by IccSmsInterfaceManagerProxy ServiceManager.addService("simphonebook", this); diff --git a/telephony/java/com/android/internal/telephony/IccRecords.java b/telephony/java/com/android/internal/telephony/IccRecords.java index 3c906471a..41c9d5a 100644 --- a/telephony/java/com/android/internal/telephony/IccRecords.java +++ b/telephony/java/com/android/internal/telephony/IccRecords.java @@ -26,8 +26,6 @@ import android.os.RegistrantList; import com.android.internal.telephony.gsm.UsimServiceTable; import com.android.internal.telephony.ims.IsimRecords; -import java.util.concurrent.atomic.AtomicBoolean; - /** * {@hide} */ @@ -35,7 +33,7 @@ public abstract class IccRecords extends Handler implements IccConstants { protected static final boolean DBG = true; // ***** Instance Variables - protected AtomicBoolean mDestroyed = new AtomicBoolean(false); + protected boolean mDestroyed = false; // set to true once this object needs to be disposed of protected Context mContext; protected CommandsInterface mCi; protected IccFileHandler mFh; @@ -81,9 +79,9 @@ public abstract class IccRecords extends Handler implements IccConstants { // ***** Event Constants protected static final int EVENT_SET_MSISDN_DONE = 30; - public static final int EVENT_MWI = 0; // Message Waiting indication - public static final int EVENT_CFI = 1; // Call Forwarding indication - public static final int EVENT_SPN = 2; // Service Provider Name + public static final int EVENT_MWI = 0; + public static final int EVENT_CFI = 1; + public static final int EVENT_SPN = 2; public static final int EVENT_GET_ICC_RECORD_DONE = 100; @@ -115,7 +113,7 @@ public abstract class IccRecords extends Handler implements IccConstants { * Call when the IccRecords object is no longer going to be used. */ public void dispose() { - mDestroyed.set(true); + mDestroyed = true; mParentCard = null; mFh = null; mCi = null; @@ -130,8 +128,12 @@ public abstract class IccRecords extends Handler implements IccConstants { return adnCache; } + public IccCard getIccCard() { + return mParentCard; + } + public void registerForRecordsLoaded(Handler h, int what, Object obj) { - if (mDestroyed.get()) { + if (mDestroyed) { return; } diff --git a/telephony/java/com/android/internal/telephony/PhoneBase.java b/telephony/java/com/android/internal/telephony/PhoneBase.java index 0c2f234..2ac9365 100644 --- a/telephony/java/com/android/internal/telephony/PhoneBase.java +++ b/telephony/java/com/android/internal/telephony/PhoneBase.java @@ -40,7 +40,6 @@ import com.android.internal.R; import com.android.internal.telephony.gsm.UsimServiceTable; import com.android.internal.telephony.ims.IsimRecords; import com.android.internal.telephony.test.SimulatedRadioControl; -import com.android.internal.telephony.uicc.UiccController; import com.android.internal.telephony.gsm.SIMRecords; import java.io.FileDescriptor; @@ -111,7 +110,6 @@ public abstract class PhoneBase extends Handler implements Phone { protected static final int EVENT_SET_NETWORK_AUTOMATIC = 28; protected static final int EVENT_NEW_ICC_SMS = 29; protected static final int EVENT_ICC_RECORD_EVENTS = 30; - protected static final int EVENT_ICC_CHANGED = 31; // Key used to read/write current CLIR setting public static final String CLIR_KEY = "clir_key"; @@ -128,8 +126,7 @@ public abstract class PhoneBase extends Handler implements Phone { int mCallRingDelay; public boolean mIsTheCurrentActivePhone = true; boolean mIsVoiceCapable = true; - protected UiccController mUiccController = null; - public AtomicReference<IccRecords> mIccRecords = new AtomicReference<IccRecords>(); + public IccRecords mIccRecords; protected AtomicReference<IccCard> mIccCard = new AtomicReference<IccCard>(); public SmsStorageMonitor mSmsStorageMonitor; public SmsUsageMonitor mSmsUsageMonitor; @@ -254,8 +251,6 @@ public abstract class PhoneBase extends Handler implements Phone { // Initialize device storage and outgoing SMS usage monitors for SMSDispatchers. mSmsStorageMonitor = new SmsStorageMonitor(this); mSmsUsageMonitor = new SmsUsageMonitor(context); - mUiccController = UiccController.getInstance(this); - mUiccController.registerForIccChanged(this, EVENT_ICC_CHANGED, null); } public void dispose() { @@ -267,7 +262,6 @@ public abstract class PhoneBase extends Handler implements Phone { // Dispose the SMS usage and storage monitors mSmsStorageMonitor.dispose(); mSmsUsageMonitor.dispose(); - mUiccController.unregisterForIccChanged(this); } } @@ -275,10 +269,9 @@ public abstract class PhoneBase extends Handler implements Phone { mSmsStorageMonitor = null; mSmsUsageMonitor = null; mSMS = null; - mIccRecords.set(null); + mIccRecords = null; mIccCard.set(null); mDataConnectionTracker = null; - mUiccController = null; } /** @@ -315,10 +308,6 @@ public abstract class PhoneBase extends Handler implements Phone { } break; - case EVENT_ICC_CHANGED: - onUpdateIccAvailability(); - break; - default: throw new RuntimeException("unexpected event not handled"); } @@ -329,9 +318,6 @@ public abstract class PhoneBase extends Handler implements Phone { return mContext; } - // Will be called when icc changed - protected abstract void onUpdateIccAvailability(); - /** * Disables the DNS check (i.e., allows "0.0.0.0"). * Useful for lab testing environment. @@ -680,26 +666,22 @@ public abstract class PhoneBase extends Handler implements Phone { @Override public String getIccSerialNumber() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.iccid : ""; + return mIccRecords.iccid; } @Override public boolean getIccRecordsLoaded() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getRecordsLoaded() : false; + return mIccRecords.getRecordsLoaded(); } @Override public boolean getMessageWaitingIndicator() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getVoiceMessageWaiting() : false; + return mIccRecords.getVoiceMessageWaiting(); } @Override public boolean getCallForwardingIndicator() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getVoiceCallForwardingFlag() : false; + return mIccRecords.getVoiceCallForwardingFlag(); } /** @@ -1153,10 +1135,7 @@ public abstract class PhoneBase extends Handler implements Phone { */ @Override public void setVoiceMessageWaiting(int line, int countWaiting) { - IccRecords r = mIccRecords.get(); - if (r != null) { - r.setVoiceMessageWaiting(line, countWaiting); - } + mIccRecords.setVoiceMessageWaiting(line, countWaiting); } /** @@ -1165,8 +1144,7 @@ public abstract class PhoneBase extends Handler implements Phone { */ @Override public UsimServiceTable getUsimServiceTable() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getUsimServiceTable() : null; + return mIccRecords.getUsimServiceTable(); } public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { diff --git a/telephony/java/com/android/internal/telephony/ServiceStateTracker.java b/telephony/java/com/android/internal/telephony/ServiceStateTracker.java index a86b68b..75eb226 100644 --- a/telephony/java/com/android/internal/telephony/ServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/ServiceStateTracker.java @@ -18,15 +18,12 @@ package com.android.internal.telephony; import android.os.AsyncResult; import android.os.Handler; -import android.os.Looper; import android.os.Message; import android.os.Registrant; import android.os.RegistrantList; import android.telephony.ServiceState; import android.telephony.SignalStrength; -import com.android.internal.telephony.uicc.UiccController; - import java.io.FileDescriptor; import java.io.PrintWriter; @@ -36,9 +33,6 @@ import java.io.PrintWriter; public abstract class ServiceStateTracker extends Handler { protected CommandsInterface cm; - protected UiccController mUiccController = null; - protected IccCard mIccCard = null; - protected IccRecords mIccRecords = null; public ServiceState ss; protected ServiceState newSS; @@ -136,7 +130,7 @@ public abstract class ServiceStateTracker extends Handler { protected static final int EVENT_CDMA_SUBSCRIPTION_SOURCE_CHANGED = 39; protected static final int EVENT_CDMA_PRL_VERSION_CHANGED = 40; protected static final int EVENT_RADIO_ON = 41; - protected static final int EVENT_ICC_CHANGED = 42; + protected static final String TIMEZONE_PROPERTY = "persist.sys.timezone"; @@ -173,10 +167,7 @@ public abstract class ServiceStateTracker extends Handler { protected static final String REGISTRATION_DENIED_GEN = "General"; protected static final String REGISTRATION_DENIED_AUTH = "Authentication Failure"; - public ServiceStateTracker(PhoneBase p, CommandsInterface ci) { - cm = ci; - mUiccController = UiccController.getInstance(); - mUiccController.registerForIccChanged(this, EVENT_ICC_CHANGED, null); + public ServiceStateTracker() { } public boolean getDesiredPowerState() { @@ -303,10 +294,6 @@ public abstract class ServiceStateTracker extends Handler { } break; - case EVENT_ICC_CHANGED: - onUpdateIccAvailability(); - break; - default: log("Unhandled message with number: " + msg.what); break; @@ -317,7 +304,6 @@ public abstract class ServiceStateTracker extends Handler { protected abstract void handlePollStateResult(int what, AsyncResult ar); protected abstract void updateSpnDisplay(); protected abstract void setPowerStateToDesired(); - protected abstract void onUpdateIccAvailability(); protected abstract void log(String s); protected abstract void loge(String s); @@ -477,21 +463,6 @@ public abstract class ServiceStateTracker extends Handler { pollingContext = new int[1]; } - /** - * Verifies the current thread is the same as the thread originally - * used in the initialization of this instance. Throws RuntimeException - * if not. - * - * @exception RuntimeException if the current thread is not - * the thread that originally obtained this PhoneBase instance. - */ - protected void checkCorrectThread() { - if (Thread.currentThread() != getLooper().getThread()) { - throw new RuntimeException( - "ServiceStateTracker must be used from within one thread"); - } - } - public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { pw.println("ServiceStateTracker:"); pw.println(" ss=" + ss); diff --git a/telephony/java/com/android/internal/telephony/cdma/CDMALTEPhone.java b/telephony/java/com/android/internal/telephony/cdma/CDMALTEPhone.java index 24bb814..d99a625 100644 --- a/telephony/java/com/android/internal/telephony/cdma/CDMALTEPhone.java +++ b/telephony/java/com/android/internal/telephony/cdma/CDMALTEPhone.java @@ -29,7 +29,6 @@ import android.util.Log; import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.IccCard; -import com.android.internal.telephony.IccRecords; import com.android.internal.telephony.OperatorInfo; import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneNotifier; @@ -67,6 +66,7 @@ public class CDMALTEPhone extends CDMAPhone { public CDMALTEPhone(Context context, CommandsInterface ci, PhoneNotifier notifier) { super(context, ci, notifier, false); m3gppSMS = new GsmSMSDispatcher(this, mSmsStorageMonitor, mSmsUsageMonitor); + mIccRecords.registerForNewSms(this, EVENT_NEW_ICC_SMS, null); } @Override @@ -88,6 +88,10 @@ public class CDMALTEPhone extends CDMAPhone { @Override protected void initSstIcc() { + mIccCard.set(UiccController.getInstance(this).getIccCard()); + mIccRecords = mIccCard.get().getIccRecords(); + // CdmaLteServiceStateTracker registers with IccCard to know + // when the card is ready. So create mIccCard before the ServiceStateTracker mSST = new CdmaLteServiceStateTracker(this); } @@ -96,6 +100,7 @@ public class CDMALTEPhone extends CDMAPhone { synchronized(PhoneProxy.lockForRadioTechnologyChange) { super.dispose(); m3gppSMS.dispose(); + mIccRecords.unregisterForNewSms(this); } } @@ -198,12 +203,11 @@ public class CDMALTEPhone extends CDMAPhone { @Override public boolean updateCurrentCarrierInProvider() { - IccRecords r = mIccRecords.get(); - if (r != null) { + if (mIccRecords != null) { try { Uri uri = Uri.withAppendedPath(Telephony.Carriers.CONTENT_URI, "current"); ContentValues map = new ContentValues(); - String operatorNumeric = r.getOperatorNumeric(); + String operatorNumeric = mIccRecords.getOperatorNumeric(); map.put(Telephony.Carriers.NUMERIC, operatorNumeric); if (DBG) log("updateCurrentCarrierInProvider from UICC: numeric=" + operatorNumeric); @@ -221,8 +225,7 @@ public class CDMALTEPhone extends CDMAPhone { // return IMSI from USIM as subscriber ID. @Override public String getSubscriberId() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getIMSI() : ""; + return mIccRecords.getIMSI(); } @Override @@ -237,14 +240,12 @@ public class CDMALTEPhone extends CDMAPhone { @Override public IsimRecords getIsimRecords() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getIsimRecords() : null; + return mIccRecords.getIsimRecords(); } @Override public String getMsisdn() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getMsisdnNumber() : null; + return mIccRecords.getMsisdnNumber(); } @Override @@ -258,26 +259,6 @@ public class CDMALTEPhone extends CDMAPhone { } @Override - protected void registerForRuimRecordEvents() { - IccRecords r = mIccRecords.get(); - if (r == null) { - return; - } - r.registerForNewSms(this, EVENT_NEW_ICC_SMS, null); - super.registerForRuimRecordEvents(); - } - - @Override - protected void unregisterForRuimRecordEvents() { - IccRecords r = mIccRecords.get(); - if (r == null) { - return; - } - r.unregisterForNewSms(this); - super.unregisterForRuimRecordEvents(); - } - - @Override protected void log(String s) { Log.d(LOG_TAG, "[CDMALTEPhone] " + s); } diff --git a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java index 7922b3c..9f6ec71 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java +++ b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java @@ -50,7 +50,6 @@ import com.android.internal.telephony.IccCard; import com.android.internal.telephony.IccException; import com.android.internal.telephony.IccFileHandler; import com.android.internal.telephony.IccPhoneBookInterfaceManager; -import com.android.internal.telephony.IccRecords; import com.android.internal.telephony.IccSmsInterfaceManager; import com.android.internal.telephony.MccTable; import com.android.internal.telephony.MmiCode; @@ -153,6 +152,10 @@ public class CDMAPhone extends PhoneBase { } protected void initSstIcc() { + mIccCard.set(UiccController.getInstance(this).getIccCard()); + mIccRecords = mIccCard.get().getIccRecords(); + // CdmaServiceStateTracker registers with IccCard to know + // when the Ruim card is ready. So create mIccCard before the ServiceStateTracker mSST = new CdmaServiceStateTracker(this); } @@ -169,6 +172,7 @@ public class CDMAPhone extends PhoneBase { mEriManager = new EriManager(this, context, EriManager.ERI_FROM_XML); mCM.registerForAvailable(this, EVENT_RADIO_AVAILABLE, null); + registerForRuimRecordEvents(); mCM.registerForOffOrNotAvailable(this, EVENT_RADIO_OFF_OR_NOT_AVAILABLE, null); mCM.registerForOn(this, EVENT_RADIO_ON, null); mCM.setOnSuppServiceNotification(this, EVENT_SSN, null); @@ -723,10 +727,7 @@ public class CDMAPhone extends PhoneBase { Message resp; mVmNumber = voiceMailNumber; resp = obtainMessage(EVENT_SET_VM_NUMBER_DONE, 0, 0, onComplete); - IccRecords r = mIccRecords.get(); - if (r != null) { - r.setVoiceMailNumber(alphaTag, mVmNumber, resp); - } + mIccRecords.setVoiceMailNumber(alphaTag, mVmNumber, resp); } public String getVoiceMailNumber() { @@ -748,8 +749,7 @@ public class CDMAPhone extends PhoneBase { * @hide */ public int getVoiceMessageCount() { - IccRecords r = mIccRecords.get(); - int voicemailCount = (r != null) ? r.getVoiceMessageCount() : 0; + int voicemailCount = mIccRecords.getVoiceMessageCount(); // If mRuimRecords.getVoiceMessageCount returns zero, then there is possibility // that phone was power cycled and would have lost the voicemail count. // So get the count from preferences. @@ -1064,39 +1064,6 @@ public class CDMAPhone extends PhoneBase { } } - @Override - protected void onUpdateIccAvailability() { - if (mUiccController == null ) { - return; - } - - IccCard newIccCard = mUiccController.getIccCard(); - - IccCard c = mIccCard.get(); - if (c != newIccCard) { - if (c != null) { - log("Removing stale icc objects."); - if (mIccRecords.get() != null) { - unregisterForRuimRecordEvents(); - if (mRuimPhoneBookInterfaceManager != null) { - mRuimPhoneBookInterfaceManager.updateIccRecords(null); - } - } - mIccRecords.set(null); - mIccCard.set(null); - } - if (newIccCard != null) { - log("New card found"); - mIccCard.set(newIccCard); - mIccRecords.set(newIccCard.getIccRecords()); - registerForRuimRecordEvents(); - if (mRuimPhoneBookInterfaceManager != null) { - mRuimPhoneBookInterfaceManager.updateIccRecords(mIccRecords.get()); - } - } - } - } - private void processIccRecordEvents(int eventCode) { switch (eventCode) { case RuimRecords.EVENT_MWI: @@ -1495,22 +1462,14 @@ public class CDMAPhone extends PhoneBase { return mEriManager.isEriFileLoaded(); } - protected void registerForRuimRecordEvents() { - IccRecords r = mIccRecords.get(); - if (r == null) { - return; - } - r.registerForRecordsEvents(this, EVENT_ICC_RECORD_EVENTS, null); - r.registerForRecordsLoaded(this, EVENT_RUIM_RECORDS_LOADED, null); + private void registerForRuimRecordEvents() { + mIccRecords.registerForRecordsEvents(this, EVENT_ICC_RECORD_EVENTS, null); + mIccRecords.registerForRecordsLoaded(this, EVENT_RUIM_RECORDS_LOADED, null); } - protected void unregisterForRuimRecordEvents() { - IccRecords r = mIccRecords.get(); - if (r == null) { - return; - } - r.unregisterForRecordsEvents(this); - r.unregisterForRecordsLoaded(this); + private void unregisterForRuimRecordEvents() { + mIccRecords.unregisterForRecordsEvents(this); + mIccRecords.unregisterForRecordsLoaded(this); } protected void log(String s) { diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java index d05ed62..7e5e707 100644 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaDataConnectionTracker.java @@ -40,8 +40,6 @@ import com.android.internal.telephony.DataConnection; import com.android.internal.telephony.DataConnectionAc; import com.android.internal.telephony.DataConnectionTracker; import com.android.internal.telephony.EventLogTags; -import com.android.internal.telephony.IccCard; -import com.android.internal.telephony.IccRecords; import com.android.internal.telephony.RetryManager; import com.android.internal.telephony.RILConstants; import com.android.internal.telephony.Phone; @@ -112,6 +110,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker { p.mCM.registerForAvailable (this, EVENT_RADIO_AVAILABLE, null); p.mCM.registerForOffOrNotAvailable(this, EVENT_RADIO_OFF_OR_NOT_AVAILABLE, null); + p.mIccRecords.registerForRecordsLoaded(this, EVENT_RECORDS_LOADED, null); p.mCM.registerForDataNetworkStateChanged (this, EVENT_DATA_STATE_CHANGED, null); p.mCT.registerForVoiceCallEnded (this, EVENT_VOICE_CALL_ENDED, null); p.mCT.registerForVoiceCallStarted (this, EVENT_VOICE_CALL_STARTED, null); @@ -153,8 +152,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker { // Unregister from all events mPhone.mCM.unregisterForAvailable(this); mPhone.mCM.unregisterForOffOrNotAvailable(this); - IccRecords r = mIccRecords.get(); - if (r != null) { r.unregisterForRecordsLoaded(this);} + mCdmaPhone.mIccRecords.unregisterForRecordsLoaded(this); mPhone.mCM.unregisterForDataNetworkStateChanged(this); mCdmaPhone.mCT.unregisterForVoiceCallEnded(this); mCdmaPhone.mCT.unregisterForVoiceCallStarted(this); @@ -224,12 +222,11 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker { boolean subscriptionFromNv = (mCdmaSSM.getCdmaSubscriptionSource() == CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_NV); - IccRecords r = mIccRecords.get(); boolean allowed = (psState == ServiceState.STATE_IN_SERVICE || mAutoAttachOnCreation) && (subscriptionFromNv || - (r != null && r.getRecordsLoaded())) && + mCdmaPhone.mIccRecords.getRecordsLoaded()) && (mCdmaPhone.mSST.isConcurrentVoiceAndDataAllowed() || mPhone.getState() == Phone.State.IDLE) && !roaming && @@ -244,7 +241,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker { reason += " - psState= " + psState; } if (!subscriptionFromNv && - !(r != null && r.getRecordsLoaded())) { + !mCdmaPhone.mIccRecords.getRecordsLoaded()) { reason += " - RUIM not loaded"; } if (!(mCdmaPhone.mSST.isConcurrentVoiceAndDataAllowed() || @@ -1009,33 +1006,6 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker { } @Override - protected void onUpdateIcc() { - if (mUiccController == null ) { - return; - } - - IccCard newIccCard = mUiccController.getIccCard(); - IccRecords newIccRecords = null; - if (newIccCard != null) { - newIccRecords = newIccCard.getIccRecords(); - } - - IccRecords r = mIccRecords.get(); - if (r != newIccRecords) { - if (r != null) { - log("Removing stale icc objects."); - r.unregisterForRecordsLoaded(this); - mIccRecords.set(null); - } - if (newIccCard != null) { - log("New card found"); - mIccRecords.set(newIccRecords); - newIccRecords.registerForRecordsLoaded(this, EVENT_RECORDS_LOADED, null); - } - } - } - - @Override public boolean isDisconnected() { return ((mState == State.IDLE) || (mState == State.FAILED)); } diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java index 9a82f57..ff7a0810 100644 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java @@ -65,7 +65,7 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker { handlePollStateResult(msg.what, ar); break; case EVENT_RUIM_RECORDS_LOADED: - CdmaLteUiccRecords sim = (CdmaLteUiccRecords)mIccRecords; + CdmaLteUiccRecords sim = (CdmaLteUiccRecords)phone.mIccRecords; if ((sim != null) && sim.isProvisioned()) { mMdn = sim.getMdn(); mMin = sim.getMin(); @@ -353,18 +353,16 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker { ss.setOperatorAlphaLong(eriText); } - if (mIccCard != null && mIccCard.getState() == IccCard.State.READY && - mIccRecords != null) { + if (phone.getIccCard().getState() == IccCard.State.READY) { // SIM is found on the device. If ERI roaming is OFF, and SID/NID matches // one configfured in SIM, use operator name from CSIM record. boolean showSpn = - ((CdmaLteUiccRecords)mIccRecords).getCsimSpnDisplayCondition(); + ((CdmaLteUiccRecords)phone.mIccRecords).getCsimSpnDisplayCondition(); int iconIndex = ss.getCdmaEriIconIndex(); if (showSpn && (iconIndex == EriInfo.ROAMING_INDICATOR_OFF) && - isInHomeSidNid(ss.getSystemId(), ss.getNetworkId()) && - mIccRecords != null) { - ss.setOperatorAlphaLong(mIccRecords.getServiceProviderName()); + isInHomeSidNid(ss.getSystemId(), ss.getNetworkId())) { + ss.setOperatorAlphaLong(phone.mIccRecords.getServiceProviderName()); } } diff --git a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java index 16ff70e..b694e0a 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java @@ -115,6 +115,12 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { long mSavedTime; long mSavedAtTime; + /** + * We can't register for SIM_RECORDS_LOADED immediately because the + * SIMRecords object may not be instantiated yet. + */ + private boolean mNeedToRegForRuimLoaded = false; + /** Wake lock used while setting time of day. */ private PowerManager.WakeLock mWakeLock; private static final String WAKELOCK_TAG = "ServiceStateTracker"; @@ -156,10 +162,11 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { }; public CdmaServiceStateTracker(CDMAPhone phone) { - super(phone, phone.mCM); + super(); this.phone = phone; cr = phone.getContext().getContentResolver(); + cm = phone.mCM; ss = new ServiceState(); newSS = new ServiceState(); cellLoc = new CdmaCellLocation(); @@ -196,17 +203,18 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { Settings.System.getUriFor(Settings.System.AUTO_TIME_ZONE), true, mAutoTimeZoneObserver); setSignalStrengthDefaultValues(); + + mNeedToRegForRuimLoaded = true; } public void dispose() { - checkCorrectThread(); // Unregister for all events. cm.unregisterForRadioStateChanged(this); cm.unregisterForVoiceNetworkStateChanged(this); + phone.getIccCard().unregisterForReady(this); cm.unregisterForCdmaOtaProvision(this); phone.unregisterForEriFileLoaded(this); - if (mIccCard != null) {mIccCard.unregisterForReady(this);} - if (mIccRecords != null) {mIccRecords.unregisterForRecordsLoaded(this);} + phone.mIccRecords.unregisterForRecordsLoaded(this); cm.unSetOnSignalStrengthUpdate(this); cm.unSetOnNITZTime(this); cr.unregisterContentObserver(mAutoTimeObserver); @@ -277,6 +285,14 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { case EVENT_RUIM_READY: // TODO: Consider calling setCurrentPreferredNetworkType as we do in GsmSST. // cm.setCurrentPreferredNetworkType(); + + // The RUIM is now ready i.e if it was locked it has been + // unlocked. At this stage, the radio is already powered on. + if (mNeedToRegForRuimLoaded) { + phone.mIccRecords.registerForRecordsLoaded(this, + EVENT_RUIM_RECORDS_LOADED, null); + mNeedToRegForRuimLoaded = false; + } if (DBG) log("Receive EVENT_RUIM_READY and Send Request getCDMASubscription."); getSubscriptionInfoAndStartPollingThreads(); phone.prepareEri(); @@ -389,16 +405,8 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { mIsMinInfoReady = true; updateOtaspState(); - if (mIccCard != null) { - if (DBG) log("GET_CDMA_SUBSCRIPTION broadcast Icc state changed"); - mIccCard.broadcastIccStateChangedIntent(IccCard.INTENT_VALUE_ICC_IMSI, - null); - } else { - if (DBG) { - log("GET_CDMA_SUBSCRIPTION mIccCard is null (probably NV type device)" + - " can't broadcast Icc state changed"); - } - } + phone.getIccCard().broadcastIccStateChangedIntent(IccCard.INTENT_VALUE_ICC_IMSI, + null); } else { if (DBG) { log("GET_CDMA_SUBSCRIPTION: error parsing cdmaSubscription params num=" @@ -490,6 +498,8 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { if (!isSubscriptionFromRuim) { // NV is ready when subscription source is NV sendMessage(obtainMessage(EVENT_NV_READY)); + } else { + phone.getIccCard().registerForReady(this, EVENT_RUIM_READY, null); } } @@ -1685,38 +1695,6 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { } @Override - protected void onUpdateIccAvailability() { - if (mUiccController == null ) { - return; - } - - IccCard newIccCard = mUiccController.getIccCard(); - - if (mIccCard != newIccCard) { - if (mIccCard != null) { - log("Removing stale icc objects."); - mIccCard.unregisterForReady(this); - if (mIccRecords != null) { - mIccRecords.unregisterForRecordsLoaded(this); - } - mIccRecords = null; - mIccCard = null; - } - if (newIccCard != null) { - log("New card found"); - mIccCard = newIccCard; - mIccRecords = mIccCard.getIccRecords(); - if (isSubscriptionFromRuim) { - mIccCard.registerForReady(this, EVENT_RUIM_READY, null); - if (mIccRecords != null) { - mIccRecords.registerForRecordsLoaded(this, EVENT_RUIM_RECORDS_LOADED, null); - } - } - } - } - } - - @Override protected void log(String s) { Log.d(LOG_TAG, "[CdmaSST] " + s); } @@ -1749,6 +1727,7 @@ public class CdmaServiceStateTracker extends ServiceStateTracker { pw.println(" mSavedTimeZone=" + mSavedTimeZone); pw.println(" mSavedTime=" + mSavedTime); pw.println(" mSavedAtTime=" + mSavedAtTime); + pw.println(" mNeedToRegForRuimLoaded=" + mNeedToRegForRuimLoaded); pw.println(" mWakeLock=" + mWakeLock); pw.println(" mCurPlmn=" + mCurPlmn); pw.println(" mMdn=" + mMdn); diff --git a/telephony/java/com/android/internal/telephony/cdma/RuimPhoneBookInterfaceManager.java b/telephony/java/com/android/internal/telephony/cdma/RuimPhoneBookInterfaceManager.java index e919245..04ee2dd 100644 --- a/telephony/java/com/android/internal/telephony/cdma/RuimPhoneBookInterfaceManager.java +++ b/telephony/java/com/android/internal/telephony/cdma/RuimPhoneBookInterfaceManager.java @@ -21,7 +21,6 @@ import java.util.concurrent.atomic.AtomicBoolean; import android.os.Message; import android.util.Log; -import com.android.internal.telephony.IccFileHandler; import com.android.internal.telephony.IccPhoneBookInterfaceManager; /** @@ -35,6 +34,7 @@ public class RuimPhoneBookInterfaceManager extends IccPhoneBookInterfaceManager public RuimPhoneBookInterfaceManager(CDMAPhone phone) { super(phone); + adnCache = phone.mIccRecords.getAdnCache(); //NOTE service "simphonebook" added by IccSmsInterfaceManagerProxy } @@ -61,12 +61,8 @@ public class RuimPhoneBookInterfaceManager extends IccPhoneBookInterfaceManager AtomicBoolean status = new AtomicBoolean(false); Message response = mBaseHandler.obtainMessage(EVENT_GET_SIZE_DONE, status); - IccFileHandler fh = phone.getIccFileHandler(); - //IccFileHandler can be null if there is no icc card present. - if (fh != null) { - fh.getEFLinearRecordSize(efid, response); - waitForResult(status); - } + phone.getIccFileHandler().getEFLinearRecordSize(efid, response); + waitForResult(status); } return recordSize; diff --git a/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java b/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java index 80183c6..2fefa3f 100755 --- a/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java +++ b/telephony/java/com/android/internal/telephony/cdma/RuimRecords.java @@ -199,7 +199,7 @@ public final class RuimRecords extends IccRecords { boolean isRecordLoadResponse = false; - if (mDestroyed.get()) { + if (mDestroyed) { loge("Received message " + msg + "[" + msg.what + "] while being destroyed. Ignoring."); return; @@ -317,20 +317,18 @@ public final class RuimRecords extends IccRecords { // One record loaded successfully or failed, In either case // we need to update the recordsToLoad count recordsToLoad -= 1; - if (DBG) log("onRecordLoaded " + recordsToLoad + " requested: " + recordsRequested); + if (DBG) log("RuimRecords:onRecordLoaded " + recordsToLoad + " requested: " + recordsRequested); if (recordsToLoad == 0 && recordsRequested == true) { onAllRecordsLoaded(); } else if (recordsToLoad < 0) { - loge("recordsToLoad <0, programmer error suspected"); + loge("RuimRecords: recordsToLoad <0, programmer error suspected"); recordsToLoad = 0; } } @Override protected void onAllRecordsLoaded() { - if (DBG) log("record load complete"); - // Further records that can be inserted are Operator/OEM dependent String operator = getRUIMOperatorNumeric(); @@ -350,6 +348,13 @@ public final class RuimRecords extends IccRecords { @Override public void onReady() { + /* broadcast intent ICC_READY here so that we can make sure + READY is sent before IMSI ready + */ + + mParentCard.broadcastIccStateChangedIntent( + IccCard.INTENT_VALUE_ICC_READY, null); + fetchRuimRecords(); mCi.getCDMASubscription(obtainMessage(EVENT_GET_CDMA_SUBSCRIPTION_DONE)); @@ -359,7 +364,7 @@ public final class RuimRecords extends IccRecords { private void fetchRuimRecords() { recordsRequested = true; - if (DBG) log("fetchRuimRecords " + recordsToLoad); + Log.v(LOG_TAG, "RuimRecords:fetchRuimRecords " + recordsToLoad); mCi.getIMSI(obtainMessage(EVENT_GET_IMSI_DONE)); recordsToLoad++; @@ -368,7 +373,7 @@ public final class RuimRecords extends IccRecords { obtainMessage(EVENT_GET_ICCID_DONE)); recordsToLoad++; - if (DBG) log("fetchRuimRecords " + recordsToLoad + " requested: " + recordsRequested); + log("RuimRecords:fetchRuimRecords " + recordsToLoad + " requested: " + recordsRequested); // Further records that can be inserted are Operator/OEM dependent } diff --git a/telephony/java/com/android/internal/telephony/gsm/GSMPhone.java b/telephony/java/com/android/internal/telephony/gsm/GSMPhone.java index 8dda74b..6e9cd51 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GSMPhone.java +++ b/telephony/java/com/android/internal/telephony/gsm/GSMPhone.java @@ -59,7 +59,6 @@ import com.android.internal.telephony.Connection; import com.android.internal.telephony.IccCard; import com.android.internal.telephony.IccFileHandler; import com.android.internal.telephony.IccPhoneBookInterfaceManager; -import com.android.internal.telephony.IccRecords; import com.android.internal.telephony.IccSmsInterfaceManager; import com.android.internal.telephony.MmiCode; import com.android.internal.telephony.OperatorInfo; @@ -138,11 +137,13 @@ public class GSMPhone extends PhoneBase { if (ci instanceof SimulatedRadioControl) { mSimulatedRadioControl = (SimulatedRadioControl) ci; } + mCM.setPhoneType(Phone.PHONE_TYPE_GSM); + mIccCard.set(UiccController.getInstance(this).getIccCard()); + mIccRecords = mIccCard.get().getIccRecords(); mCT = new GsmCallTracker(this); mSST = new GsmServiceStateTracker (this); mSMS = new GsmSMSDispatcher(this, mSmsStorageMonitor, mSmsUsageMonitor); - mDataConnectionTracker = new GsmDataConnectionTracker (this); if (!unitTestMode) { mSimPhoneBookIntManager = new SimPhoneBookInterfaceManager(this); @@ -151,6 +152,7 @@ public class GSMPhone extends PhoneBase { } mCM.registerForAvailable(this, EVENT_RADIO_AVAILABLE, null); + registerForSimRecordEvents(); mCM.registerForOffOrNotAvailable(this, EVENT_RADIO_OFF_OR_NOT_AVAILABLE, null); mCM.registerForOn(this, EVENT_RADIO_ON, null); mCM.setOnUSSD(this, EVENT_USSD, null); @@ -794,8 +796,7 @@ public class GSMPhone extends PhoneBase { public String getVoiceMailNumber() { // Read from the SIM. If its null, try reading from the shared preference area. - IccRecords r = mIccRecords.get(); - String number = (r != null) ? r.getVoiceMailNumber() : ""; + String number = mIccRecords.getVoiceMailNumber(); if (TextUtils.isEmpty(number)) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getContext()); number = sp.getString(VM_NUMBER, null); @@ -817,9 +818,8 @@ public class GSMPhone extends PhoneBase { public String getVoiceMailAlphaTag() { String ret; - IccRecords r = mIccRecords.get(); - ret = (r != null) ? r.getVoiceMailAlphaTag() : ""; + ret = mIccRecords.getVoiceMailAlphaTag(); if (ret == null || ret.length() == 0) { return mContext.getText( @@ -852,31 +852,24 @@ public class GSMPhone extends PhoneBase { } public String getSubscriberId() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getIMSI() : ""; + return mIccRecords.getIMSI(); } public String getLine1Number() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getMsisdnNumber() : ""; + return mIccRecords.getMsisdnNumber(); } @Override public String getMsisdn() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getMsisdnNumber() : ""; + return mIccRecords.getMsisdnNumber(); } public String getLine1AlphaTag() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.getMsisdnAlphaTag() : ""; + return mIccRecords.getMsisdnAlphaTag(); } public void setLine1Number(String alphaTag, String number, Message onComplete) { - IccRecords r = mIccRecords.get(); - if (r != null) { - r.setMsisdnNumber(alphaTag, number, onComplete); - } + mIccRecords.setMsisdnNumber(alphaTag, number, onComplete); } public void setVoiceMailNumber(String alphaTag, @@ -886,10 +879,7 @@ public class GSMPhone extends PhoneBase { Message resp; mVmNumber = voiceMailNumber; resp = obtainMessage(EVENT_SET_VM_NUMBER_DONE, 0, 0, onComplete); - IccRecords r = mIccRecords.get(); - if (r != null) { - r.setVoiceMailNumber(alphaTag, mVmNumber, resp); - } + mIccRecords.setVoiceMailNumber(alphaTag, mVmNumber, resp); } private boolean isValidCommandInterfaceCFReason (int commandInterfaceCFReason) { @@ -1257,9 +1247,8 @@ public class GSMPhone extends PhoneBase { case EVENT_SET_CALL_FORWARD_DONE: ar = (AsyncResult)msg.obj; - IccRecords r = mIccRecords.get(); - if (ar.exception == null && r != null) { - r.setVoiceCallForwardingFlag(1, msg.arg1 == 1); + if (ar.exception == null) { + mIccRecords.setVoiceCallForwardingFlag(1, msg.arg1 == 1); } onComplete = (Message) ar.userObj; if (onComplete != null) { @@ -1332,41 +1321,12 @@ public class GSMPhone extends PhoneBase { } } - @Override - protected void onUpdateIccAvailability() { - if (mUiccController == null ) { - return; - } - - IccCard newIccCard = mUiccController.getIccCard(); - - IccCard c = mIccCard.get(); - if (c != newIccCard) { - if (c != null) { - if (LOCAL_DEBUG) log("Removing stale icc objects."); - if (mIccRecords.get() != null) { - unregisterForSimRecordEvents(); - mSimPhoneBookIntManager.updateIccRecords(null); - } - mIccRecords.set(null); - mIccCard.set(null); - } - if (newIccCard != null) { - if (LOCAL_DEBUG) log("New card found"); - mIccCard.set(newIccCard); - mIccRecords.set(newIccCard.getIccRecords()); - registerForSimRecordEvents(); - mSimPhoneBookIntManager.updateIccRecords(mIccRecords.get()); - } - } - } - private void processIccRecordEvents(int eventCode) { switch (eventCode) { - case IccRecords.EVENT_CFI: + case SIMRecords.EVENT_CFI: notifyCallForwardingIndicator(); break; - case IccRecords.EVENT_MWI: + case SIMRecords.EVENT_MWI: notifyMessageWaitingIndicator(); break; } @@ -1378,12 +1338,11 @@ public class GSMPhone extends PhoneBase { * @return true for success; false otherwise. */ boolean updateCurrentCarrierInProvider() { - IccRecords r = mIccRecords.get(); - if (r != null) { + if (mIccRecords != null) { try { Uri uri = Uri.withAppendedPath(Telephony.Carriers.CONTENT_URI, "current"); ContentValues map = new ContentValues(); - map.put(Telephony.Carriers.NUMERIC, r.getOperatorNumeric()); + map.put(Telephony.Carriers.NUMERIC, mIccRecords.getOperatorNumeric()); mContext.getContentResolver().insert(uri, map); return true; } catch (SQLException e) { @@ -1445,19 +1404,16 @@ public class GSMPhone extends PhoneBase { } private void handleCfuQueryResult(CallForwardInfo[] infos) { - IccRecords r = mIccRecords.get(); - if (r != null) { - if (infos == null || infos.length == 0) { - // Assume the default is not active - // Set unconditional CFF in SIM to false - r.setVoiceCallForwardingFlag(1, false); - } else { - for (int i = 0, s = infos.length; i < s; i++) { - if ((infos[i].serviceClass & SERVICE_CLASS_VOICE) != 0) { - r.setVoiceCallForwardingFlag(1, (infos[i].status == 1)); - // should only have the one - break; - } + if (infos == null || infos.length == 0) { + // Assume the default is not active + // Set unconditional CFF in SIM to false + mIccRecords.setVoiceCallForwardingFlag(1, false); + } else { + for (int i = 0, s = infos.length; i < s; i++) { + if ((infos[i].serviceClass & SERVICE_CLASS_VOICE) != 0) { + mIccRecords.setVoiceCallForwardingFlag(1, (infos[i].status == 1)); + // should only have the one + break; } } } @@ -1516,35 +1472,22 @@ public class GSMPhone extends PhoneBase { } public boolean isCspPlmnEnabled() { - IccRecords r = mIccRecords.get(); - return (r != null) ? r.isCspPlmnEnabled() : false; + return mIccRecords.isCspPlmnEnabled(); } private void registerForSimRecordEvents() { - IccRecords r = mIccRecords.get(); - if (r == null) { - return; - } - r.registerForNetworkSelectionModeAutomatic( + mIccRecords.registerForNetworkSelectionModeAutomatic( this, EVENT_SET_NETWORK_AUTOMATIC, null); - r.registerForNewSms(this, EVENT_NEW_ICC_SMS, null); - r.registerForRecordsEvents(this, EVENT_ICC_RECORD_EVENTS, null); - r.registerForRecordsLoaded(this, EVENT_SIM_RECORDS_LOADED, null); + mIccRecords.registerForNewSms(this, EVENT_NEW_ICC_SMS, null); + mIccRecords.registerForRecordsEvents(this, EVENT_ICC_RECORD_EVENTS, null); + mIccRecords.registerForRecordsLoaded(this, EVENT_SIM_RECORDS_LOADED, null); } private void unregisterForSimRecordEvents() { - IccRecords r = mIccRecords.get(); - if (r == null) { - return; - } - r.unregisterForNetworkSelectionModeAutomatic(this); - r.unregisterForNewSms(this); - r.unregisterForRecordsEvents(this); - r.unregisterForRecordsLoaded(this); - } - - protected void log(String s) { - Log.d(LOG_TAG, "[GSMPhone] " + s); + mIccRecords.unregisterForNetworkSelectionModeAutomatic(this); + mIccRecords.unregisterForNewSms(this); + mIccRecords.unregisterForRecordsEvents(this); + mIccRecords.unregisterForRecordsLoaded(this); } @Override diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java index b44ba0b..40ee58c 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java @@ -59,8 +59,6 @@ import com.android.internal.telephony.DataConnection.UpdateLinkPropertyResult; import com.android.internal.telephony.DataConnectionAc; import com.android.internal.telephony.DataConnectionTracker; import com.android.internal.telephony.EventLogTags; -import com.android.internal.telephony.IccCard; -import com.android.internal.telephony.IccRecords; import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneBase; import com.android.internal.telephony.RILConstants; @@ -180,6 +178,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { p.mCM.registerForAvailable (this, EVENT_RADIO_AVAILABLE, null); p.mCM.registerForOffOrNotAvailable(this, EVENT_RADIO_OFF_OR_NOT_AVAILABLE, null); + p.mIccRecords.registerForRecordsLoaded(this, EVENT_RECORDS_LOADED, null); p.mCM.registerForDataNetworkStateChanged (this, EVENT_DATA_STATE_CHANGED, null); p.getCallTracker().registerForVoiceCallEnded (this, EVENT_VOICE_CALL_ENDED, null); p.getCallTracker().registerForVoiceCallStarted (this, EVENT_VOICE_CALL_STARTED, null); @@ -220,8 +219,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { //Unregister for all events mPhone.mCM.unregisterForAvailable(this); mPhone.mCM.unregisterForOffOrNotAvailable(this); - IccRecords r = mIccRecords.get(); - if (r != null) { r.unregisterForRecordsLoaded(this);} + mPhone.mIccRecords.unregisterForRecordsLoaded(this); mPhone.mCM.unregisterForDataNetworkStateChanged(this); mPhone.getCallTracker().unregisterForVoiceCallEnded(this); mPhone.getCallTracker().unregisterForVoiceCallStarted(this); @@ -622,12 +620,10 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { int gprsState = mPhone.getServiceStateTracker().getCurrentDataConnectionState(); boolean desiredPowerState = mPhone.getServiceStateTracker().getDesiredPowerState(); - IccRecords r = mIccRecords.get(); - boolean recordsLoaded = (r != null) ? r.getRecordsLoaded() : false; boolean allowed = (gprsState == ServiceState.STATE_IN_SERVICE || mAutoAttachOnCreation) && - recordsLoaded && + mPhone.mIccRecords.getRecordsLoaded() && (mPhone.getState() == Phone.State.IDLE || mPhone.getServiceStateTracker().isConcurrentVoiceAndDataAllowed()) && internalDataEnabled && @@ -639,7 +635,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { if (!((gprsState == ServiceState.STATE_IN_SERVICE) || mAutoAttachOnCreation)) { reason += " - gprs= " + gprsState; } - if (!recordsLoaded) reason += " - SIM not loaded"; + if (!mPhone.mIccRecords.getRecordsLoaded()) reason += " - SIM not loaded"; if (mPhone.getState() != Phone.State.IDLE && !mPhone.getServiceStateTracker().isConcurrentVoiceAndDataAllowed()) { reason += " - PhoneState= " + mPhone.getState(); @@ -1900,8 +1896,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { log("onRadioAvailable: We're on the simulator; assuming data is connected"); } - IccRecords r = mIccRecords.get(); - if (r != null && r.getRecordsLoaded()) { + if (mPhone.mIccRecords.getRecordsLoaded()) { notifyOffApnsOfAvailability(null); } @@ -2213,8 +2208,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { */ private void createAllApnList() { mAllApns = new ArrayList<ApnSetting>(); - IccRecords r = mIccRecords.get(); - String operator = (r != null) ? r.getOperatorNumeric() : ""; + String operator = mPhone.mIccRecords.getOperatorNumeric(); if (operator != null) { String selection = "numeric = '" + operator + "'"; // query only enabled apn. @@ -2325,9 +2319,8 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { } } - IccRecords r = mIccRecords.get(); - String operator = (r != null) ? r.getOperatorNumeric() : ""; - int radioTech = mPhone.getServiceState().getRadioTechnology(); + String operator = mPhone.mIccRecords.getOperatorNumeric(); + int networkType = mPhone.getServiceState().getNetworkType(); if (requestedApnType.equals(Phone.APN_TYPE_DEFAULT)) { if (canSetPreferApn && mPreferredApn != null) { @@ -2336,7 +2329,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { + mPreferredApn.numeric + ":" + mPreferredApn); } if (mPreferredApn.numeric.equals(operator)) { - if (mPreferredApn.bearer == 0 || mPreferredApn.bearer == radioTech) { + if (mPreferredApn.bearer == 0 || mPreferredApn.bearer == networkType) { apnList.add(mPreferredApn); if (DBG) log("buildWaitingApns: X added preferred apnList=" + apnList); return apnList; @@ -2355,7 +2348,7 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { if (mAllApns != null) { for (ApnSetting apn : mAllApns) { if (apn.canHandleType(requestedApnType)) { - if (apn.bearer == 0 || apn.bearer == radioTech) { + if (apn.bearer == 0 || apn.bearer == networkType) { if (DBG) log("apn info : " +apn.toString()); apnList.add(apn); } @@ -2563,33 +2556,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { } @Override - protected void onUpdateIcc() { - if (mUiccController == null ) { - return; - } - - IccCard newIccCard = mUiccController.getIccCard(); - IccRecords newIccRecords = null; - if (newIccCard != null) { - newIccRecords = newIccCard.getIccRecords(); - } - - IccRecords r = mIccRecords.get(); - if (r != newIccRecords) { - if (r != null) { - log("Removing stale icc objects."); - r.unregisterForRecordsLoaded(this); - mIccRecords.set(null); - } - if (newIccCard != null) { - log("New card found"); - mIccRecords.set(newIccRecords); - newIccRecords.registerForRecordsLoaded(this, EVENT_RECORDS_LOADED, null); - } - } - } - - @Override protected void log(String s) { Log.d(LOG_TAG, "[GsmDCT] "+ s); } diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmMmiCode.java b/telephony/java/com/android/internal/telephony/gsm/GsmMmiCode.java index 9e34b6a..9b3d5cd 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmMmiCode.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmMmiCode.java @@ -885,10 +885,7 @@ public final class GsmMmiCode extends Handler implements MmiCode { */ if ((ar.exception == null) && (msg.arg1 == 1)) { boolean cffEnabled = (msg.arg2 == 1); - IccRecords r = phone.mIccRecords.get(); - if (r != null) { - r.setVoiceCallForwardingFlag(1, cffEnabled); - } + phone.mIccRecords.setVoiceCallForwardingFlag(1, cffEnabled); } onSetComplete(ar); @@ -1206,10 +1203,7 @@ public final class GsmMmiCode extends Handler implements MmiCode { (info.serviceClass & serviceClassMask) == CommandsInterface.SERVICE_CLASS_VOICE) { boolean cffEnabled = (info.status == 1); - IccRecords r = phone.mIccRecords.get(); - if (r != null) { - r.setVoiceCallForwardingFlag(1, cffEnabled); - } + phone.mIccRecords.setVoiceCallForwardingFlag(1, cffEnabled); } return TextUtils.replace(template, sources, destinations); @@ -1234,10 +1228,7 @@ public final class GsmMmiCode extends Handler implements MmiCode { sb.append(context.getText(com.android.internal.R.string.serviceDisabled)); // Set unconditional CFF in SIM to false - IccRecords r = phone.mIccRecords.get(); - if (r != null) { - r.setVoiceCallForwardingFlag(1, false); - } + phone.mIccRecords.setVoiceCallForwardingFlag(1, false); } else { SpannableStringBuilder tb = new SpannableStringBuilder(); diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java index 7c03d03..c0acf5b 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java @@ -124,6 +124,12 @@ final class GsmServiceStateTracker extends ServiceStateTracker { long mSavedTime; long mSavedAtTime; + /** + * We can't register for SIM_RECORDS_LOADED immediately because the + * SIMRecords object may not be instantiated yet. + */ + private boolean mNeedToRegForSimLoaded; + /** Started the recheck process after finding gprs should registered but not. */ private boolean mStartedGprsRegCheck = false; @@ -186,9 +192,10 @@ final class GsmServiceStateTracker extends ServiceStateTracker { }; public GsmServiceStateTracker(GSMPhone phone) { - super(phone, phone.mCM); + super(); this.phone = phone; + cm = phone.mCM; ss = new ServiceState(); newSS = new ServiceState(); cellLoc = new GsmCellLocation(); @@ -206,6 +213,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { cm.setOnNITZTime(this, EVENT_NITZ_TIME, null); cm.setOnSignalStrengthUpdate(this, EVENT_SIGNAL_STRENGTH_UPDATE, null); cm.setOnRestrictedStateChanged(this, EVENT_RESTRICTED_STATE_CHANGED, null); + phone.getIccCard().registerForReady(this, EVENT_SIM_READY, null); // system setting property AIRPLANE_MODE_ON is set in Settings. int airplaneMode = Settings.System.getInt( @@ -222,6 +230,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { mAutoTimeZoneObserver); setSignalStrengthDefaultValues(); + mNeedToRegForSimLoaded = true; // Monitor locale change IntentFilter filter = new IntentFilter(); @@ -233,13 +242,12 @@ final class GsmServiceStateTracker extends ServiceStateTracker { } public void dispose() { - checkCorrectThread(); // Unregister for all events. cm.unregisterForAvailable(this); cm.unregisterForRadioStateChanged(this); cm.unregisterForVoiceNetworkStateChanged(this); - if (mIccCard != null) {mIccCard.unregisterForReady(this);} - if (mIccRecords != null) {mIccRecords.unregisterForRecordsLoaded(this);} + phone.getIccCard().unregisterForReady(this); + phone.mIccRecords.unregisterForRecordsLoaded(this); cm.unSetOnSignalStrengthUpdate(this); cm.unSetOnRestrictedStateChanged(this); cm.unSetOnNITZTime(this); @@ -277,6 +285,15 @@ final class GsmServiceStateTracker extends ServiceStateTracker { // Set the network type, in case the radio does not restore it. cm.setCurrentPreferredNetworkType(); + // The SIM is now ready i.e if it was locked + // it has been unlocked. At this stage, the radio is already + // powered on. + if (mNeedToRegForSimLoaded) { + phone.mIccRecords.registerForRecordsLoaded(this, + EVENT_SIM_RECORDS_LOADED, null); + mNeedToRegForSimLoaded = false; + } + boolean skipRestoringSelection = phone.getContext().getResources().getBoolean( com.android.internal.R.bool.skip_restoring_network_selection); @@ -478,11 +495,8 @@ final class GsmServiceStateTracker extends ServiceStateTracker { } protected void updateSpnDisplay() { - if (mIccRecords == null) { - return; - } - int rule = mIccRecords.getDisplayRule(ss.getOperatorNumeric()); - String spn = mIccRecords.getServiceProviderName(); + int rule = phone.mIccRecords.getDisplayRule(ss.getOperatorNumeric()); + String spn = phone.mIccRecords.getServiceProviderName(); String plmn = ss.getOperatorAlphaLong(); // For emergency calls only, pass the EmergencyCallsOnly string via EXTRA_PLMN @@ -1131,7 +1145,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { ((state & RILConstants.RIL_RESTRICTED_STATE_CS_EMERGENCY) != 0) || ((state & RILConstants.RIL_RESTRICTED_STATE_CS_ALL) != 0) ); //ignore the normal call and data restricted state before SIM READY - if (mIccCard.getState() == IccCard.State.READY) { + if (phone.getIccCard().getState() == IccCard.State.READY) { newRs.setCsNormalRestricted( ((state & RILConstants.RIL_RESTRICTED_STATE_CS_NORMAL) != 0) || ((state & RILConstants.RIL_RESTRICTED_STATE_CS_ALL) != 0) ); @@ -1658,35 +1672,6 @@ final class GsmServiceStateTracker extends ServiceStateTracker { } @Override - protected void onUpdateIccAvailability() { - if (mUiccController == null ) { - return; - } - - IccCard newIccCard = mUiccController.getIccCard(); - - if (mIccCard != newIccCard) { - if (mIccCard != null) { - log("Removing stale icc objects."); - mIccCard.unregisterForReady(this); - if (mIccRecords != null) { - mIccRecords.unregisterForRecordsLoaded(this); - } - mIccRecords = null; - mIccCard = null; - } - if (newIccCard != null) { - log("New card found"); - mIccCard = newIccCard; - mIccRecords = mIccCard.getIccRecords(); - mIccCard.registerForReady(this, EVENT_SIM_READY, null); - if (mIccRecords != null) { - mIccRecords.registerForRecordsLoaded(this, EVENT_SIM_RECORDS_LOADED, null); - } - } - } - } - @Override protected void log(String s) { Log.d(LOG_TAG, "[GsmSST] " + s); } @@ -1726,6 +1711,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { pw.println(" mSavedTimeZone=" + mSavedTimeZone); pw.println(" mSavedTime=" + mSavedTime); pw.println(" mSavedAtTime=" + mSavedAtTime); + pw.println(" mNeedToRegForSimLoaded=" + mNeedToRegForSimLoaded); pw.println(" mStartedGprsRegCheck=" + mStartedGprsRegCheck); pw.println(" mReportedGprsNoReg=" + mReportedGprsNoReg); pw.println(" mNotification=" + mNotification); diff --git a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java index 3077995..80988fd 100755 --- a/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java +++ b/telephony/java/com/android/internal/telephony/gsm/SIMRecords.java @@ -521,7 +521,7 @@ public class SIMRecords extends IccRecords { boolean isRecordLoadResponse = false; - if (mDestroyed.get()) { + if (mDestroyed) { loge("Received message " + msg + "[" + msg.what + "] " + " while being destroyed. Ignoring."); return; @@ -1299,6 +1299,12 @@ public class SIMRecords extends IccRecords { @Override public void onReady() { + /* broadcast intent SIM_READY here so that we can make sure + READY is sent before IMSI ready + */ + mParentCard.broadcastIccStateChangedIntent( + IccCard.INTENT_VALUE_ICC_READY, null); + fetchSimRecords(); } diff --git a/telephony/java/com/android/internal/telephony/gsm/SimPhoneBookInterfaceManager.java b/telephony/java/com/android/internal/telephony/gsm/SimPhoneBookInterfaceManager.java index 37f9a4f..35ba0d1 100644 --- a/telephony/java/com/android/internal/telephony/gsm/SimPhoneBookInterfaceManager.java +++ b/telephony/java/com/android/internal/telephony/gsm/SimPhoneBookInterfaceManager.java @@ -21,7 +21,6 @@ import java.util.concurrent.atomic.AtomicBoolean; import android.os.Message; import android.util.Log; -import com.android.internal.telephony.IccFileHandler; import com.android.internal.telephony.IccPhoneBookInterfaceManager; /** @@ -35,6 +34,7 @@ public class SimPhoneBookInterfaceManager extends IccPhoneBookInterfaceManager { public SimPhoneBookInterfaceManager(GSMPhone phone) { super(phone); + adnCache = phone.mIccRecords.getAdnCache(); //NOTE service "simphonebook" added by IccSmsInterfaceManagerProxy } @@ -61,11 +61,8 @@ public class SimPhoneBookInterfaceManager extends IccPhoneBookInterfaceManager { AtomicBoolean status = new AtomicBoolean(false); Message response = mBaseHandler.obtainMessage(EVENT_GET_SIZE_DONE, status); - IccFileHandler fh = phone.getIccFileHandler(); - if (fh != null) { - fh.getEFLinearRecordSize(efid, response); - waitForResult(status); - } + phone.getIccFileHandler().getEFLinearRecordSize(efid, response); + waitForResult(status); } return recordSize; diff --git a/telephony/java/com/android/internal/telephony/sip/SipPhoneBase.java b/telephony/java/com/android/internal/telephony/sip/SipPhoneBase.java index 0243522..5c4b446 100755 --- a/telephony/java/com/android/internal/telephony/sip/SipPhoneBase.java +++ b/telephony/java/com/android/internal/telephony/sip/SipPhoneBase.java @@ -461,8 +461,4 @@ abstract class SipPhoneBase extends PhoneBase { notifyPhoneStateChanged(); } } - - @Override - protected void onUpdateIccAvailability() { - } } diff --git a/telephony/java/com/android/internal/telephony/uicc/UiccController.java b/telephony/java/com/android/internal/telephony/uicc/UiccController.java index 4e12d6d..5961efd 100644 --- a/telephony/java/com/android/internal/telephony/uicc/UiccController.java +++ b/telephony/java/com/android/internal/telephony/uicc/UiccController.java @@ -16,150 +16,78 @@ package com.android.internal.telephony.uicc; -import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.IccCard; -import com.android.internal.telephony.IccCardStatus; -import com.android.internal.telephony.IccCardStatus.CardState; import com.android.internal.telephony.PhoneBase; +import com.android.internal.telephony.cdma.CDMALTEPhone; +import com.android.internal.telephony.cdma.CDMAPhone; +import com.android.internal.telephony.gsm.GSMPhone; -import android.os.AsyncResult; -import android.os.Handler; -import android.os.Message; -import android.os.Registrant; -import android.os.RegistrantList; import android.util.Log; /* This class is responsible for keeping all knowledge about * ICCs in the system. It is also used as API to get appropriate * applications to pass them to phone and service trackers. */ -public class UiccController extends Handler { +public class UiccController { private static final boolean DBG = true; private static final String LOG_TAG = "RIL_UiccController"; - private static final int EVENT_ICC_STATUS_CHANGED = 1; - private static final int EVENT_GET_ICC_STATUS_DONE = 2; - private static UiccController mInstance; private PhoneBase mCurrentPhone; - private CommandsInterface mCi; + private boolean mIsCurrentCard3gpp; private IccCard mIccCard; - private boolean mRegisteredWithCi = false; - - private RegistrantList mIccChangedRegistrants = new RegistrantList(); public static synchronized UiccController getInstance(PhoneBase phone) { if (mInstance == null) { mInstance = new UiccController(phone); - } else if (phone != null) { + } else { mInstance.setNewPhone(phone); } return mInstance; } - // This method is not synchronized as getInstance(PhoneBase) is. - public static UiccController getInstance() { - return getInstance(null); - } - - public synchronized IccCard getIccCard() { + public IccCard getIccCard() { return mIccCard; } - //Notifies when card status changes - public void registerForIccChanged(Handler h, int what, Object obj) { - Registrant r = new Registrant (h, what, obj); - mIccChangedRegistrants.add(r); - //Notify registrant right after registering, so that it will get the latest ICC status, - //otherwise which may not happen until there is an actual change in ICC status. - r.notifyRegistrant(); - } - public void unregisterForIccChanged(Handler h) { - mIccChangedRegistrants.remove(h); - } - - @Override - public void handleMessage (Message msg) { - switch (msg.what) { - case EVENT_ICC_STATUS_CHANGED: - if (DBG) log("Received EVENT_ICC_STATUS_CHANGED, calling getIccCardStatus"); - mCi.getIccCardStatus(obtainMessage(EVENT_GET_ICC_STATUS_DONE)); - break; - case EVENT_GET_ICC_STATUS_DONE: - if (DBG) log("Received EVENT_GET_ICC_STATUS_DONE"); - AsyncResult ar = (AsyncResult)msg.obj; - onGetIccCardStatusDone(ar); - break; - default: - Log.e(LOG_TAG, " Unknown Event " + msg.what); - } - } - private UiccController(PhoneBase phone) { if (DBG) log("Creating UiccController"); setNewPhone(phone); } - private synchronized void onGetIccCardStatusDone(AsyncResult ar) { - if (ar.exception != null) { - Log.e(LOG_TAG,"Error getting ICC status. " - + "RIL_REQUEST_GET_ICC_STATUS should " - + "never return an error", ar.exception); - return; + private void setNewPhone(PhoneBase phone) { + mCurrentPhone = phone; + if (phone instanceof GSMPhone) { + if (DBG) log("New phone is GSMPhone"); + updateCurrentCard(IccCard.CARD_IS_3GPP); + } else if (phone instanceof CDMALTEPhone){ + if (DBG) log("New phone type is CDMALTEPhone"); + updateCurrentCard(IccCard.CARD_IS_3GPP); + } else if (phone instanceof CDMAPhone){ + if (DBG) log("New phone type is CDMAPhone"); + updateCurrentCard(IccCard.CARD_IS_NOT_3GPP); + } else { + Log.e(LOG_TAG, "Unhandled phone type. Critical error!"); } + } - IccCardStatus status = (IccCardStatus)ar.result; - - //Update already existing card - if (mIccCard != null && status.getCardState() == CardState.CARDSTATE_PRESENT) { - mIccCard.update(mCurrentPhone, status); + private void updateCurrentCard(boolean isNewCard3gpp) { + if (mIsCurrentCard3gpp == isNewCard3gpp && mIccCard != null) { + return; } - //Dispose of removed card - if (mIccCard != null && status.getCardState() != CardState.CARDSTATE_PRESENT) { + if (mIccCard != null) { mIccCard.dispose(); mIccCard = null; } - //Create new card - if (mIccCard == null && status.getCardState() == CardState.CARDSTATE_PRESENT) { - mIccCard = new IccCard(mCurrentPhone, status, mCurrentPhone.getPhoneName(), true); - } - - if (DBG) log("Notifying IccChangedRegistrants"); - mIccChangedRegistrants.notifyRegistrants(); - } - - private void setNewPhone(PhoneBase phone) { - if (phone == null) { - throw new RuntimeException("Phone can't be null in UiccController"); - } - - if (DBG) log("setNewPhone"); - if (mCurrentPhone != phone) { - if (mIccCard != null) { - // Refresh card if phone changed - // TODO: Remove once card is simplified - if (DBG) log("Disposing card since phone object changed"); - mIccCard.dispose(); - mIccCard = null; - } - sendMessage(obtainMessage(EVENT_ICC_STATUS_CHANGED)); - mCurrentPhone = phone; - - if (!mRegisteredWithCi) { - // This needs to be done only once after we have valid phone object - mCi = mCurrentPhone.mCM; - mCi.registerForIccStatusChanged(this, EVENT_ICC_STATUS_CHANGED, null); - // TODO remove this once modem correctly notifies the unsols - mCi.registerForOn(this, EVENT_ICC_STATUS_CHANGED, null); - mRegisteredWithCi = true; - } - } + mIsCurrentCard3gpp = isNewCard3gpp; + mIccCard = new IccCard(mCurrentPhone, mCurrentPhone.getPhoneName(), + isNewCard3gpp, DBG); } private void log(String string) { Log.d(LOG_TAG, string); } -} +}
\ No newline at end of file diff --git a/tests/GridLayoutTest/src/com/android/test/layout/LayoutInsetsTest.java b/tests/GridLayoutTest/src/com/android/test/layout/LayoutInsetsTest.java index 74daccc..1a4c36d 100644 --- a/tests/GridLayoutTest/src/com/android/test/layout/LayoutInsetsTest.java +++ b/tests/GridLayoutTest/src/com/android/test/layout/LayoutInsetsTest.java @@ -36,6 +36,13 @@ public class LayoutInsetsTest extends Activity { { Button c = new Button(context); c.setBackgroundResource(R.drawable.btn_default); + c.setText("Test"); + p.addView(c); + } + + { + Button c = new Button(context); + c.setBackgroundResource(R.drawable.btn_default); c.setText("Manual setup"); p.addView(c); c.setOnClickListener(new OnClickListener() { diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java index 314e33e..6168f0e 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java @@ -1500,8 +1500,7 @@ public class WifiP2pService extends IWifiP2pManager.Stub { int key; WifiP2pServiceRequest req; for (int i=0; i < c.mReqList.size(); i++) { - key = c.mReqList.keyAt(i); - req = c.mReqList.get(key); + req = c.mReqList.valueAt(i); if (req != null) { sb.append(req.getSupplicantQuery()); } @@ -1539,7 +1538,10 @@ public class WifiP2pService extends IWifiP2pManager.Stub { return false; } - req.setTransactionId(++mServiceTransactionId); + ++mServiceTransactionId; + //The Wi-Fi p2p spec says transaction id should be non-zero + if (mServiceTransactionId == 0) ++mServiceTransactionId; + req.setTransactionId(mServiceTransactionId); clientInfo.mReqList.put(mServiceTransactionId, req); if (mServiceDiscReqId == null) { @@ -1550,13 +1552,23 @@ public class WifiP2pService extends IWifiP2pManager.Stub { } private void removeServiceRequest(Messenger m, WifiP2pServiceRequest req) { - ClientInfo clientInfo = getClientInfo(m, false); if (clientInfo == null) { return; } - clientInfo.mReqList.remove(req.getTransactionId()); + //Application does not have transaction id information + //go through stored requests to remove + boolean removed = false; + for (int i=0; i < clientInfo.mReqList.size(); i++) { + if (req.equals(clientInfo.mReqList.valueAt(i))) { + removed = true; + clientInfo.mReqList.removeAt(i); + break; + } + } + + if (!removed) return; if (clientInfo.mReqList.size() == 0 && clientInfo.mServList.size() == 0) { if (DBG) logd("remove client information from framework"); @@ -1670,6 +1682,7 @@ public class WifiP2pService extends IWifiP2pManager.Stub { } catch (RemoteException e) { if (DBG) logd("detect dead channel"); clearClientInfo(c.mMessenger); + return; } } } @@ -1683,6 +1696,8 @@ public class WifiP2pService extends IWifiP2pManager.Stub { * TODO: This can be done better with full async channels. */ private void clearClientDeadChannels() { + ArrayList<Messenger> deadClients = new ArrayList<Messenger>(); + for (ClientInfo c : mClientInfoList.values()) { Message msg = Message.obtain(); msg.what = WifiP2pManager.PING; @@ -1693,9 +1708,13 @@ public class WifiP2pService extends IWifiP2pManager.Stub { c.mMessenger.send(msg); } catch (RemoteException e) { if (DBG) logd("detect dead channel"); - clearClientInfo(c.mMessenger); + deadClients.add(c.mMessenger); } } + + for (Messenger m : deadClients) { + clearClientInfo(m); + } } /** |
