In TrackRecordingService, use SystemUtils to aquire wake lock

This commit is contained in:
Jimmy Shih
2013-06-14 13:00:57 -07:00
parent d558e8f507
commit 86a3f407ce
7 changed files with 50 additions and 95 deletions
@@ -18,14 +18,12 @@ package com.google.android.apps.mytracks.endtoendtest.common;
import com.google.android.apps.mytracks.TrackListActivity;
import com.google.android.apps.mytracks.endtoendtest.EndToEndTestUtils;
import com.google.android.apps.mytracks.endtoendtest.GoogleUtils;
import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.maps.mytracks.R;
import com.google.api.services.drive.model.File;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
import java.io.IOException;
import java.util.List;
/**
@@ -56,9 +54,6 @@ public class ExportSingleTrackTest extends ActivityInstrumentationTestCase2<Trac
/**
* Checks all services and send to google.
*
* @throws GoogleAuthException
* @throws IOException
*/
public void testCreateAndSendTrack_send() {
// Create a new track.
@@ -69,9 +64,6 @@ public class ExportSingleTrackTest extends ActivityInstrumentationTestCase2<Trac
/**
* Checks all services and send to google.
*
* @throws GoogleAuthException
* @throws IOException
*/
public void testCreateAndSendTrack_sendPausedTrack() {
EndToEndTestUtils.deleteAllTracks();
@@ -109,9 +101,6 @@ public class ExportSingleTrackTest extends ActivityInstrumentationTestCase2<Trac
/**
* Checks the process of sending track to google.
*
* @throws GoogleAuthException
* @throws IOException
*/
private void checkSendTrackToGoogle() {
if (!sendToGoogle(activityMyTracks.getString(R.string.export_google_maps))
@@ -185,9 +174,6 @@ public class ExportSingleTrackTest extends ActivityInstrumentationTestCase2<Trac
/**
* Sends a large track to Google.
*
* @throws GoogleAuthException
* @throws IOException
*/
public void testSendLargeTrackToGoogle() {
EndToEndTestUtils.deleteAllTracks();
@@ -19,14 +19,12 @@ import com.google.android.apps.mytracks.TrackListActivity;
import com.google.android.apps.mytracks.endtoendtest.EndToEndTestUtils;
import com.google.android.apps.mytracks.endtoendtest.GoogleUtils;
import com.google.android.apps.mytracks.endtoendtest.sync.SyncTestUtils;
import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.maps.mytracks.R;
import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
import android.widget.CheckBox;
import java.io.IOException;
import java.util.ArrayList;
/**
@@ -53,9 +51,6 @@ public class ShareTest extends ActivityInstrumentationTestCase2<TrackListActivit
/**
* Tests quitting the share.
*
* @throws GoogleAuthException
* @throws IOException
*/
public void testQuitShare() {
EndToEndTestUtils.resetAllSettings(activityMyTracks, false);
@@ -70,9 +65,6 @@ public class ShareTest extends ActivityInstrumentationTestCase2<TrackListActivit
/**
* Tests the share one track.
*
* @throws GoogleAuthException
* @throws IOException
*/
public void testShare() {
EndToEndTestUtils.resetAllSettings(activityMyTracks, false);