Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 150ed3e2 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7621631 from a595256e to sc-release

Change-Id: I408be335a528d36fd77ffe140bbe3ef8fb9a77b0
parents 37fc9bb0 a595256e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -52,4 +52,6 @@ interface ISensorPrivacyManager {
    void addUserGlobalIndividualSensorPrivacyListener(int sensor, in ISensorPrivacyListener listener);

    void removeUserGlobalIndividualSensorPrivacyListener(int sensor, in ISensorPrivacyListener listener);

    void showSensorUseDialog(int sensor);
}
 No newline at end of file
+22 −0
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import android.os.UserHandle;
import android.service.SensorPrivacyIndividualEnabledSensorProto;
import android.service.SensorPrivacyToggleSourceProto;
import android.util.ArrayMap;
import android.util.Log;
import android.util.Pair;
import android.util.SparseArray;

@@ -48,6 +49,8 @@ import java.util.concurrent.Executor;
@SystemService(Context.SENSOR_PRIVACY_SERVICE)
public final class SensorPrivacyManager {

    private static final String LOG_TAG = SensorPrivacyManager.class.getSimpleName();

    /**
     * Unique Id of this manager to identify to the service
     * @hide
@@ -504,6 +507,25 @@ public final class SensorPrivacyManager {
        }
    }

    /**
     * If sensor privacy for the provided sensor is enabled then this call will show the user the
     * dialog which is shown when an application attempts to use that sensor. If privacy isn't
     * enabled then this does nothing.
     *
     * This call can only be made by the system uid.
     *
     * @throws SecurityException when called by someone other than system uid.
     *
     * @hide
     */
    public void showSensorUseDialog(int sensor) {
        try {
            mService.showSensorUseDialog(sensor);
        } catch (RemoteException e) {
            Log.e(LOG_TAG, "Received exception while trying to show sensor use dialog", e);
        }
    }

    /**
     * A class implementing this interface can register with the {@link
     * android.hardware.SensorPrivacyManager} to receive notification when the all-sensor privacy
+6 −0
Original line number Diff line number Diff line
@@ -520,6 +520,12 @@ public class VoiceInteractionService extends Service {
            // Ignore.
        }

        try {
            mSystemService.shutdownHotwordDetectionService();
        } catch (Exception ex) {
            // Ignore.
        }

        mSoftwareHotwordDetector = null;
    }

+1 −1
Original line number Diff line number Diff line
@@ -1949,7 +1949,7 @@
    <string name="maximize_button_text" msgid="4258922519914732645">"بزرگ کردن"</string>
    <string name="close_button_text" msgid="10603510034455258">"بستن"</string>
    <string name="notification_messaging_title_template" msgid="772857526770251989">"<xliff:g id="CONVERSATION_TITLE">%1$s</xliff:g>: <xliff:g id="SENDER_NAME">%2$s</xliff:g>"</string>
    <string name="call_notification_answer_action" msgid="5999246836247132937">"پاسخ"</string>
    <string name="call_notification_answer_action" msgid="5999246836247132937">"پاسخ دادن"</string>
    <string name="call_notification_answer_video_action" msgid="2086030940195382249">"ویدیو"</string>
    <string name="call_notification_decline_action" msgid="3700345945214000726">"رد کردن"</string>
    <string name="call_notification_hang_up_action" msgid="9130720590159188131">"قطع تماس"</string>
+43 −43

File changed.

Preview size limit exceeded, changes collapsed.

Loading