Loading core/java/android/hardware/input/IInputManager.aidl +0 −7 Original line number Diff line number Diff line Loading @@ -26,8 +26,6 @@ import android.os.IBinder; import android.view.InputDevice; import android.view.InputEvent; import android.view.PointerIcon; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodSubtype; /** @hide */ interface IInputManager { Loading Loading @@ -67,11 +65,6 @@ interface IInputManager { String keyboardLayoutDescriptor); void removeKeyboardLayoutForInputDevice(in InputDeviceIdentifier identifier, String keyboardLayoutDescriptor); KeyboardLayout getKeyboardLayoutForInputDevice(in InputDeviceIdentifier identifier, in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype); void setKeyboardLayoutForInputDevice(in InputDeviceIdentifier identifier, in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype, String keyboardLayoutDescriptor); // Registers an input devices changed listener. void registerInputDevicesChangedListener(IInputDevicesChangedListener listener); Loading core/java/android/hardware/input/InputManager.java +0 −49 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package android.hardware.input; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SystemService; Loading @@ -43,8 +42,6 @@ import android.view.InputDevice; import android.view.InputEvent; import android.view.MotionEvent; import android.view.PointerIcon; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodSubtype; import com.android.internal.os.SomeArgs; Loading Loading @@ -703,52 +700,6 @@ public final class InputManager { } } /** * Gets the keyboard layout for the specified input device and IME subtype. * * @param identifier The identifier for the input device. * @param inputMethodInfo The input method. * @param inputMethodSubtype The input method subtype. {@code null} if this input method does * not support any subtype. * * @return The associated {@link KeyboardLayout}, or null if one has not been set. * * @hide */ @Nullable public KeyboardLayout getKeyboardLayoutForInputDevice(InputDeviceIdentifier identifier, InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype inputMethodSubtype) { try { return mIm.getKeyboardLayoutForInputDevice( identifier, inputMethodInfo, inputMethodSubtype); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } } /** * Sets the keyboard layout for the specified input device and IME subtype pair. * * @param identifier The identifier for the input device. * @param inputMethodInfo The input method with which to associate the keyboard layout. * @param inputMethodSubtype The input method subtype which which to associate the keyboard * layout. {@code null} if this input method does not support any subtype. * @param keyboardLayoutDescriptor The descriptor of the keyboard layout to set * * @hide */ public void setKeyboardLayoutForInputDevice(InputDeviceIdentifier identifier, InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype inputMethodSubtype, String keyboardLayoutDescriptor) { try { mIm.setKeyboardLayoutForInputDevice(identifier, inputMethodInfo, inputMethodSubtype, keyboardLayoutDescriptor); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } } /** * Gets the TouchCalibration applied to the specified input device's coordinates. * Loading core/java/android/hardware/input/TouchCalibration.java +0 −6 Original line number Diff line number Diff line Loading @@ -123,10 +123,4 @@ public class TouchCalibration implements Parcelable { Float.floatToIntBits(mYScale) ^ Float.floatToIntBits(mYOffset); } @Override public String toString() { return String.format("[%f, %f, %f, %f, %f, %f]", mXScale, mXYMix, mXOffset, mYXMix, mYScale, mYOffset); } } core/java/com/android/internal/inputmethod/InputMethodSubtypeHandle.javadeleted 100644 → 0 +0 −72 Original line number Diff line number Diff line /* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.inputmethod; import android.annotation.Nullable; import android.text.TextUtils; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodSubtype; import java.util.Objects; public class InputMethodSubtypeHandle { private final String mInputMethodId; private final int mSubtypeId; public InputMethodSubtypeHandle(InputMethodInfo info, @Nullable InputMethodSubtype subtype) { mInputMethodId = info.getId(); if (subtype != null) { mSubtypeId = subtype.hashCode(); } else { mSubtypeId = InputMethodUtils.NOT_A_SUBTYPE_ID; } } public InputMethodSubtypeHandle(String inputMethodId, int subtypeId) { mInputMethodId = inputMethodId; mSubtypeId = subtypeId; } public String getInputMethodId() { return mInputMethodId; } public int getSubtypeId() { return mSubtypeId; } @Override public boolean equals(Object o) { if (o == null || !(o instanceof InputMethodSubtypeHandle)) { return false; } InputMethodSubtypeHandle other = (InputMethodSubtypeHandle) o; return TextUtils.equals(mInputMethodId, other.getInputMethodId()) && mSubtypeId == other.getSubtypeId(); } @Override public int hashCode() { return Objects.hashCode(mInputMethodId) * 31 + mSubtypeId; } @Override public String toString() { return "InputMethodSubtypeHandle{mInputMethodId=" + mInputMethodId + ", mSubtypeId=" + mSubtypeId + "}"; } } core/java/com/android/server/SystemConfig.java +6 −3 Original line number Diff line number Diff line Loading @@ -284,8 +284,9 @@ public class SystemConfig { readPermissions(Environment.buildPath( Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); // Allow ODM to customize system configs around libs, features and apps int odmPermissionFlag = ALLOW_LIBS | ALLOW_FEATURES | ALLOW_APP_CONFIGS; // Allow ODM to customize system configs as much as Vendor, because /odm is another // vendor partition other than /vendor. int odmPermissionFlag = vendorPermissionFlag; readPermissions(Environment.buildPath( Environment.getOdmDirectory(), "etc", "sysconfig"), odmPermissionFlag); readPermissions(Environment.buildPath( Loading Loading @@ -631,7 +632,9 @@ public class SystemConfig { // granting permissions to priv apps in the system partition and vice // versa. boolean vendor = permFile.toPath().startsWith( Environment.getVendorDirectory().toPath()); Environment.getVendorDirectory().toPath()) || permFile.toPath().startsWith( Environment.getOdmDirectory().toPath()); boolean product = permFile.toPath().startsWith( Environment.getProductDirectory().toPath()); if (vendor) { Loading Loading
core/java/android/hardware/input/IInputManager.aidl +0 −7 Original line number Diff line number Diff line Loading @@ -26,8 +26,6 @@ import android.os.IBinder; import android.view.InputDevice; import android.view.InputEvent; import android.view.PointerIcon; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodSubtype; /** @hide */ interface IInputManager { Loading Loading @@ -67,11 +65,6 @@ interface IInputManager { String keyboardLayoutDescriptor); void removeKeyboardLayoutForInputDevice(in InputDeviceIdentifier identifier, String keyboardLayoutDescriptor); KeyboardLayout getKeyboardLayoutForInputDevice(in InputDeviceIdentifier identifier, in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype); void setKeyboardLayoutForInputDevice(in InputDeviceIdentifier identifier, in InputMethodInfo imeInfo, in InputMethodSubtype imeSubtype, String keyboardLayoutDescriptor); // Registers an input devices changed listener. void registerInputDevicesChangedListener(IInputDevicesChangedListener listener); Loading
core/java/android/hardware/input/InputManager.java +0 −49 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package android.hardware.input; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; import android.annotation.SystemService; Loading @@ -43,8 +42,6 @@ import android.view.InputDevice; import android.view.InputEvent; import android.view.MotionEvent; import android.view.PointerIcon; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodSubtype; import com.android.internal.os.SomeArgs; Loading Loading @@ -703,52 +700,6 @@ public final class InputManager { } } /** * Gets the keyboard layout for the specified input device and IME subtype. * * @param identifier The identifier for the input device. * @param inputMethodInfo The input method. * @param inputMethodSubtype The input method subtype. {@code null} if this input method does * not support any subtype. * * @return The associated {@link KeyboardLayout}, or null if one has not been set. * * @hide */ @Nullable public KeyboardLayout getKeyboardLayoutForInputDevice(InputDeviceIdentifier identifier, InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype inputMethodSubtype) { try { return mIm.getKeyboardLayoutForInputDevice( identifier, inputMethodInfo, inputMethodSubtype); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } } /** * Sets the keyboard layout for the specified input device and IME subtype pair. * * @param identifier The identifier for the input device. * @param inputMethodInfo The input method with which to associate the keyboard layout. * @param inputMethodSubtype The input method subtype which which to associate the keyboard * layout. {@code null} if this input method does not support any subtype. * @param keyboardLayoutDescriptor The descriptor of the keyboard layout to set * * @hide */ public void setKeyboardLayoutForInputDevice(InputDeviceIdentifier identifier, InputMethodInfo inputMethodInfo, @Nullable InputMethodSubtype inputMethodSubtype, String keyboardLayoutDescriptor) { try { mIm.setKeyboardLayoutForInputDevice(identifier, inputMethodInfo, inputMethodSubtype, keyboardLayoutDescriptor); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } } /** * Gets the TouchCalibration applied to the specified input device's coordinates. * Loading
core/java/android/hardware/input/TouchCalibration.java +0 −6 Original line number Diff line number Diff line Loading @@ -123,10 +123,4 @@ public class TouchCalibration implements Parcelable { Float.floatToIntBits(mYScale) ^ Float.floatToIntBits(mYOffset); } @Override public String toString() { return String.format("[%f, %f, %f, %f, %f, %f]", mXScale, mXYMix, mXOffset, mYXMix, mYScale, mYOffset); } }
core/java/com/android/internal/inputmethod/InputMethodSubtypeHandle.javadeleted 100644 → 0 +0 −72 Original line number Diff line number Diff line /* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.inputmethod; import android.annotation.Nullable; import android.text.TextUtils; import android.view.inputmethod.InputMethodInfo; import android.view.inputmethod.InputMethodSubtype; import java.util.Objects; public class InputMethodSubtypeHandle { private final String mInputMethodId; private final int mSubtypeId; public InputMethodSubtypeHandle(InputMethodInfo info, @Nullable InputMethodSubtype subtype) { mInputMethodId = info.getId(); if (subtype != null) { mSubtypeId = subtype.hashCode(); } else { mSubtypeId = InputMethodUtils.NOT_A_SUBTYPE_ID; } } public InputMethodSubtypeHandle(String inputMethodId, int subtypeId) { mInputMethodId = inputMethodId; mSubtypeId = subtypeId; } public String getInputMethodId() { return mInputMethodId; } public int getSubtypeId() { return mSubtypeId; } @Override public boolean equals(Object o) { if (o == null || !(o instanceof InputMethodSubtypeHandle)) { return false; } InputMethodSubtypeHandle other = (InputMethodSubtypeHandle) o; return TextUtils.equals(mInputMethodId, other.getInputMethodId()) && mSubtypeId == other.getSubtypeId(); } @Override public int hashCode() { return Objects.hashCode(mInputMethodId) * 31 + mSubtypeId; } @Override public String toString() { return "InputMethodSubtypeHandle{mInputMethodId=" + mInputMethodId + ", mSubtypeId=" + mSubtypeId + "}"; } }
core/java/com/android/server/SystemConfig.java +6 −3 Original line number Diff line number Diff line Loading @@ -284,8 +284,9 @@ public class SystemConfig { readPermissions(Environment.buildPath( Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); // Allow ODM to customize system configs around libs, features and apps int odmPermissionFlag = ALLOW_LIBS | ALLOW_FEATURES | ALLOW_APP_CONFIGS; // Allow ODM to customize system configs as much as Vendor, because /odm is another // vendor partition other than /vendor. int odmPermissionFlag = vendorPermissionFlag; readPermissions(Environment.buildPath( Environment.getOdmDirectory(), "etc", "sysconfig"), odmPermissionFlag); readPermissions(Environment.buildPath( Loading Loading @@ -631,7 +632,9 @@ public class SystemConfig { // granting permissions to priv apps in the system partition and vice // versa. boolean vendor = permFile.toPath().startsWith( Environment.getVendorDirectory().toPath()); Environment.getVendorDirectory().toPath()) || permFile.toPath().startsWith( Environment.getOdmDirectory().toPath()); boolean product = permFile.toPath().startsWith( Environment.getProductDirectory().toPath()); if (vendor) { Loading