summaryrefslogtreecommitdiffstats
path: root/samples/browseable
diff options
context:
space:
mode:
authorTrevor Johns <trevorjohns@google.com>2014-11-12 18:23:05 -0800
committerTrevor Johns <trevorjohns@google.com>2014-11-12 18:23:05 -0800
commit3081f16cd6a6de8791ccd04be727bcccace72e56 (patch)
tree31883b7d22995715ed75f049d3242a0774fb585b /samples/browseable
parentd8c7b24e696003e4fc4c848a3f2a86b302f90169 (diff)
downloadandroid_development-3081f16cd6a6de8791ccd04be727bcccace72e56.tar.gz
android_development-3081f16cd6a6de8791ccd04be727bcccace72e56.tar.bz2
android_development-3081f16cd6a6de8791ccd04be727bcccace72e56.zip
Sync browseable samples for lmp-docs
Syncing to commit 0afa2a3366307b12a213a199be1eb8baac1c5f1c. Change-Id: I6ab153008951bb7e06001c0f27f44df4e4f6cb83
Diffstat (limited to 'samples/browseable')
-rw-r--r--samples/browseable/DoneBar/res/values/template-attrs.xml15
-rw-r--r--samples/browseable/MediaBrowserService/res/values/strings.xml2
-rw-r--r--samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/MusicService.java4
-rw-r--r--samples/browseable/MessagingService/src/com.example.android.messagingservice/MessagingService.java4
-rw-r--r--samples/browseable/NavigationDrawer/res/values/template-attrs.xml15
5 files changed, 5 insertions, 35 deletions
diff --git a/samples/browseable/DoneBar/res/values/template-attrs.xml b/samples/browseable/DoneBar/res/values/template-attrs.xml
deleted file mode 100644
index 442ed7781..000000000
--- a/samples/browseable/DoneBar/res/values/template-attrs.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<resources>
-</resources> \ No newline at end of file
diff --git a/samples/browseable/MediaBrowserService/res/values/strings.xml b/samples/browseable/MediaBrowserService/res/values/strings.xml
index 7a012e870..8c88fe3e9 100644
--- a/samples/browseable/MediaBrowserService/res/values/strings.xml
+++ b/samples/browseable/MediaBrowserService/res/values/strings.xml
@@ -16,7 +16,7 @@
-->
<resources>
- <string name="app_name">Auto Music Demo</string>
+ <string name="app_name">MediaBrowserService Sample</string>
<string name="favorite">Favorite</string>
<string name="error_no_metadata">Unable to retrieve metadata.</string>
<string name="browse_genres">Genres</string>
diff --git a/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/MusicService.java b/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/MusicService.java
index a7a9ae2e7..8e6e3f273 100644
--- a/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/MusicService.java
+++ b/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/MusicService.java
@@ -127,7 +127,7 @@ public class MusicService extends MediaBrowserService implements OnPreparedListe
// The volume we set the media player when we have audio focus.
public static final float VOLUME_NORMAL = 1.0f;
public static final String ANDROID_AUTO_PACKAGE_NAME = "com.google.android.projection.gearhead";
- public static final String ANDROID_AUTO_EMULATOR_PACKAGE_NAME = "com.google.android.mediasimulator";
+ public static final String ANDROID_AUTO_SIMULATOR_PACKAGE_NAME = "com.google.android.mediasimulator";
// Music catalog manager
private MusicProvider mMusicProvider;
@@ -259,7 +259,7 @@ public class MusicService extends MediaBrowserService implements OnPreparedListe
// To ensure you are not allowing any arbitrary app to browse your app's contents, you
// need to check the origin:
if (!ANDROID_AUTO_PACKAGE_NAME.equals(clientPackageName) &&
- !ANDROID_AUTO_EMULATOR_PACKAGE_NAME.equals(clientPackageName) &&
+ !ANDROID_AUTO_SIMULATOR_PACKAGE_NAME.equals(clientPackageName) &&
!getApplication().getPackageName().equals(clientPackageName)) {
// If the request comes from an untrusted package, return null. No further calls will
// be made to other media browsing methods.
diff --git a/samples/browseable/MessagingService/src/com.example.android.messagingservice/MessagingService.java b/samples/browseable/MessagingService/src/com.example.android.messagingservice/MessagingService.java
index f980375d5..f5900610d 100644
--- a/samples/browseable/MessagingService/src/com.example.android.messagingservice/MessagingService.java
+++ b/samples/browseable/MessagingService/src/com.example.android.messagingservice/MessagingService.java
@@ -24,8 +24,8 @@ import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.os.Messenger;
-import android.preview.support.v4.app.NotificationCompat.CarExtender;
-import android.preview.support.v4.app.NotificationCompat.CarExtender.UnreadConversation;
+import android.support.v4.app.NotificationCompat.CarExtender;
+import android.support.v4.app.NotificationCompat.CarExtender.UnreadConversation;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationManagerCompat;
import android.support.v4.app.RemoteInput;
diff --git a/samples/browseable/NavigationDrawer/res/values/template-attrs.xml b/samples/browseable/NavigationDrawer/res/values/template-attrs.xml
deleted file mode 100644
index 442ed7781..000000000
--- a/samples/browseable/NavigationDrawer/res/values/template-attrs.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2014 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.
--->
-
-<resources>
-</resources> \ No newline at end of file