Update browseable samples for lmp-docs

Synced to commit df5e5013422b81b4fd05c0ac9fd964b13624847a. Includes
new samples for Android Auto.

Change-Id: I3fec46e2a6b3f196682a92f1afd91eb682dc2dc1
This commit is contained in:
Trevor Johns
2014-11-12 11:39:30 -08:00
parent fcd28181a1
commit 527a4f30a6
684 changed files with 10100 additions and 10207 deletions

View File

@@ -15,7 +15,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.quiz" >
package="com.example.android.wearable.quiz" >
<uses-sdk android:minSdkVersion="20"

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.example.android.quiz;
package com.example.android.wearable.quiz;
/** Constants used in the wearable app. */
public final class Constants {

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.example.android.quiz;
package com.example.android.wearable.quiz;
import android.app.IntentService;
import android.content.Intent;
@@ -33,8 +33,8 @@ import com.google.android.gms.wearable.Wearable;
import java.util.concurrent.TimeUnit;
import static com.example.android.quiz.Constants.CONNECT_TIMEOUT_MS;
import static com.example.android.quiz.Constants.QUESTION_WAS_DELETED;
import static com.example.android.wearable.quiz.Constants.CONNECT_TIMEOUT_MS;
import static com.example.android.wearable.quiz.Constants.QUESTION_WAS_DELETED;
/**
* Used to update quiz status on the phone when user dismisses a question on the watch.

View File

@@ -14,20 +14,20 @@
* limitations under the License.
*/
package com.example.android.quiz;
package com.example.android.wearable.quiz;
import static com.example.android.quiz.Constants.ANSWERS;
import static com.example.android.quiz.Constants.CONNECT_TIMEOUT_MS;
import static com.example.android.quiz.Constants.CORRECT_ANSWER_INDEX;
import static com.example.android.quiz.Constants.NUM_CORRECT;
import static com.example.android.quiz.Constants.NUM_INCORRECT;
import static com.example.android.quiz.Constants.NUM_SKIPPED;
import static com.example.android.quiz.Constants.QUESTION;
import static com.example.android.quiz.Constants.QUESTION_INDEX;
import static com.example.android.quiz.Constants.QUESTION_WAS_ANSWERED;
import static com.example.android.quiz.Constants.QUESTION_WAS_DELETED;
import static com.example.android.quiz.Constants.QUIZ_ENDED_PATH;
import static com.example.android.quiz.Constants.QUIZ_EXITED_PATH;
import static com.example.android.wearable.quiz.Constants.ANSWERS;
import static com.example.android.wearable.quiz.Constants.CONNECT_TIMEOUT_MS;
import static com.example.android.wearable.quiz.Constants.CORRECT_ANSWER_INDEX;
import static com.example.android.wearable.quiz.Constants.NUM_CORRECT;
import static com.example.android.wearable.quiz.Constants.NUM_INCORRECT;
import static com.example.android.wearable.quiz.Constants.NUM_SKIPPED;
import static com.example.android.wearable.quiz.Constants.QUESTION;
import static com.example.android.wearable.quiz.Constants.QUESTION_INDEX;
import static com.example.android.wearable.quiz.Constants.QUESTION_WAS_ANSWERED;
import static com.example.android.wearable.quiz.Constants.QUESTION_WAS_DELETED;
import static com.example.android.wearable.quiz.Constants.QUIZ_ENDED_PATH;
import static com.example.android.wearable.quiz.Constants.QUIZ_EXITED_PATH;
import android.app.Notification;
import android.app.NotificationManager;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.example.android.quiz;
package com.example.android.wearable.quiz;
import android.app.IntentService;
import android.content.Intent;
@@ -28,15 +28,15 @@ import com.google.android.gms.wearable.Wearable;
import java.util.concurrent.TimeUnit;
import static com.example.android.quiz.Constants.CONNECT_TIMEOUT_MS;
import static com.example.android.quiz.Constants.RESET_QUIZ_PATH;
import static com.example.android.wearable.quiz.Constants.CONNECT_TIMEOUT_MS;
import static com.example.android.wearable.quiz.Constants.RESET_QUIZ_PATH;
/**
* Service to reset the quiz (by sending a message to the phone) when the Reset Quiz
* action on the Quiz Report is selected.
*/
public class QuizReportActionService extends IntentService {
public static final String ACTION_RESET_QUIZ = "com.example.android.quiz.RESET_QUIZ";
public static final String ACTION_RESET_QUIZ = "com.example.android.wearable.quiz.RESET_QUIZ";
private static final String TAG = "QuizReportActionReceiver";

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package com.example.android.quiz;
package com.example.android.wearable.quiz;
import android.app.IntentService;
import android.app.NotificationManager;
@@ -34,9 +34,9 @@ import com.google.android.gms.wearable.Wearable;
import java.util.concurrent.TimeUnit;
import static com.example.android.quiz.Constants.CHOSEN_ANSWER_CORRECT;
import static com.example.android.quiz.Constants.QUESTION_INDEX;
import static com.example.android.quiz.Constants.QUESTION_WAS_ANSWERED;
import static com.example.android.wearable.quiz.Constants.CHOSEN_ANSWER_CORRECT;
import static com.example.android.wearable.quiz.Constants.QUESTION_INDEX;
import static com.example.android.wearable.quiz.Constants.QUESTION_WAS_ANSWERED;
/**
* Updates quiz status on the phone when user selects an answer to a question on the watch.