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

Commit 360a06de authored by Joseph Pirozzo's avatar Joseph Pirozzo Committed by Android (Google) Code Review
Browse files

Merge changes from topic "AutomotiveQBTSync" into qt-qpr1-dev

* changes:
  Return an empty list when the requested node is not in the tree
  AvrcpController Test update
  AVRCP Controller Media Controller not ready
  Allow subsequent requests for media keys to replay the silent audio sample
  HFP Client call status update
  PBAP server, send favorite contacts
  AVRCP Controller Disable Automatic Focus Request
  A2DP Sink: Focus gain while transient loss
  AVRCP Controller State without Browsing
  Add bluetooth prefs for Android Automotive
  MAP Client disconnect state machine if MAS client disconnected
  MAP Client close connection on MNS disconnect
  MAP Client Only connect MNS in connected state
  MAP Client BMessage parser length
  MAP Client support incomming MMS
  PBAP client, download favorite contacts
  AVRCP MediaBrowserService support ACTION_PREPARE
  AVRCP Controller onSkipToQueueItem invalid
  AVRCP Controller getCurrentCalls NPE
  AVRCP Controller transient loss while idle
  AVRCP Controller request focus when idle
  AVRCP Controller AbsoluteVolumeNotification
  Splitting over-the-air downloading into batches
  Use Calendar.Builder for MAP Client timestamp parsing
  AVRCP Controller Shuffle/Repeat support
  Broadcast MAP Client messages oldest first
  DO NOT MERGE: Revert "AVRCP Controller AbsoluteVolumeNotification"
  DO NOT MERGE: Revert "AVRCP Controller transient loss while idle" This revert is reapplied after a few CLs to match change order to AOSP.
parents 1b580b3a 0c5249af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ LOCAL_STATIC_JAVA_LIBRARIES := \

LOCAL_STATIC_ANDROID_LIBRARIES := \
        androidx.core_core \
        androidx.legacy_legacy-support-v4 \
        androidx.lifecycle_lifecycle-livedata \
        androidx.room_room-runtime \

+10 −0
Original line number Diff line number Diff line
@@ -320,6 +320,16 @@
                <action android:name="android.media.browse.MediaBrowserService" />
            </intent-filter>
        </service>

        <activity
            android:name=".BluetoothPrefs"
            android:exported="@bool/profile_supported_a2dp_sink"
            android:enabled="@bool/profile_supported_a2dp_sink">
            <intent-filter>
                <action android:name="android.intent.action.APPLICATION_PREFERENCES"/>
            </intent-filter>
        </activity>

        <service
            android:process="@string/process"
            android:name = ".avrcp.AvrcpTargetService"
+1 −0
Original line number Diff line number Diff line
@@ -249,4 +249,5 @@
    <string name="bluetooth_disconnected">Bluetooth audio disconnected"</string>
    <string name="a2dp_sink_mbs_label">Bluetooth Audio</string>
    <string name="bluetooth_opp_file_limit_exceeded">Files bigger than 4GB cannot be transferred</string>
    <string name="bluetooth_connect_action">Connect to Bluetooth</string>
</resources>
+40 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2019 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.bluetooth;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * Activity that routes to Bluetooth settings when launched
 */
public class BluetoothPrefs extends Activity {

    public static final String BLUETOOTH_SETTING_ACTION = "android.settings.BLUETOOTH_SETTINGS";
    public static final String BLUETOOTH_SETTING_CATEGORY = "android.intent.category.DEFAULT";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent launchIntent = new Intent();
        launchIntent.setAction(BLUETOOTH_SETTING_ACTION);
        launchIntent.addCategory(BLUETOOTH_SETTING_CATEGORY);
        startActivity(launchIntent);
        finish();
    }
}
+2 −1
Original line number Diff line number Diff line
@@ -413,7 +413,8 @@ public class A2dpSinkService extends ProfileService {
        if (state == StackEvent.AUDIO_STATE_STARTED) {
            mA2dpSinkStreamHandler.obtainMessage(
                    A2dpSinkStreamHandler.SRC_STR_START).sendToTarget();
        } else if (state == StackEvent.AUDIO_STATE_STOPPED) {
        } else if (state == StackEvent.AUDIO_STATE_STOPPED
                || state == StackEvent.AUDIO_STATE_REMOTE_SUSPEND) {
            mA2dpSinkStreamHandler.obtainMessage(
                    A2dpSinkStreamHandler.SRC_STR_STOP).sendToTarget();
        }
Loading