Removed 'My Tracks' from documentation and code.

This commit is contained in:
Dennis Guse
2019-07-23 21:44:24 +02:00
parent b11f671c59
commit 6dc03f567a
12 changed files with 14 additions and 19 deletions
@@ -63,7 +63,7 @@ public class DescriptionGeneratorImplTest {
track.setTripStatistics(stats); track.setTripStatistics(stats);
track.setCategory("hiking"); track.setCategory("hiking");
String expected = "Created by" String expected = "Created by"
+ " <a href='http://www.google.com/mobile/mytracks'>Google My Tracks</a> on Android<p>" + " <a href='TODO'>TODO</a> on Android<p>"
+ "Name: -<br>" + "Name: -<br>"
+ "Activity type: hiking<br>" + "Activity type: hiking<br>"
+ "Description: -<br>" + "Description: -<br>"
@@ -372,8 +372,7 @@ public class TrackRecordingServiceTest extends ServiceTestCase<TestRecordingServ
@MediumTest @MediumTest
public void testStartNewTrack_noRecording() throws Exception { public void testStartNewTrack_noRecording() throws Exception {
// NOTICE: due to the way Android permissions work, if this fails, // NOTICE: due to the way Android permissions work, if this fails,
// uninstall the test apk then retry - the test must be installed *after* // uninstall the test apk then retry - the test must be installed *after* the app (go figure).
// My Tracks (go figure).
// Reference: http://code.google.com/p/android/issues/detail?id=5521 // Reference: http://code.google.com/p/android/issues/detail?id=5521
BlockingBroadcastReceiver startReceiver = new BlockingBroadcastReceiver(); BlockingBroadcastReceiver startReceiver = new BlockingBroadcastReceiver();
String startAction = context.getString(R.string.track_started_broadcast_action); String startAction = context.getString(R.string.track_started_broadcast_action);
@@ -27,7 +27,6 @@ import androidx.fragment.app.FragmentActivity;
import com.google.android.apps.mytracks.util.TrackIconUtils; import com.google.android.apps.mytracks.util.TrackIconUtils;
/** /**
* An abstract class for all My Tracks activities.
* *
* @author Jimmy Shih * @author Jimmy Shih
*/ */
@@ -28,14 +28,14 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
/** /**
* Utilities to access data from the My Tracks content provider. * Utilities to access data from the app's content provider.
* *
* @author Rodrigo Damazio * @author Rodrigo Damazio
*/ */
public interface ContentProviderUtils { public interface ContentProviderUtils {
/** /**
* The authority (the first part of the URI) for the My Tracks content * The authority (the first part of the URI) for the app's content
* provider. * provider.
*/ */
String AUTHORITY = "com.google.android.maps.mytracks"; String AUTHORITY = "com.google.android.maps.mytracks";
@@ -27,8 +27,6 @@ import com.google.android.maps.mytracks.R;
import java.util.Vector; import java.util.Vector;
/** /**
* An implementation of {@link DescriptionGenerator} for My Tracks.
*
* @author Jimmy Shih * @author Jimmy Shih
*/ */
public class DescriptionGeneratorImpl implements DescriptionGenerator { public class DescriptionGeneratorImpl implements DescriptionGenerator {
@@ -94,7 +94,7 @@ public class TrackDataHub implements DataSourceListener {
* *
* @param context the context * @param context the context
* @param trackDataManager the track data manager * @param trackDataManager the track data manager
* @param contentProviderUtils the my tracks provider utils * @param contentProviderUtils the content tracks provider utils
* @param targetNumPoints the target number of points * @param targetNumPoints the target number of points
*/ */
@VisibleForTesting @VisibleForTesting
@@ -25,8 +25,7 @@ import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment; import androidx.fragment.app.DialogFragment;
/** /**
* Abstract My Tracks DialogFragment.
*
* @author Jimmy Shih * @author Jimmy Shih
*/ */
public abstract class AbstractDialogFragment extends DialogFragment { public abstract class AbstractDialogFragment extends DialogFragment {
@@ -48,7 +48,7 @@ public class FileTrackExporter implements TrackExporter {
/** /**
* Constructor. * Constructor.
* *
* @param contentProviderUtils the my tracks provider utils * @param contentProviderUtils the content provider utils
* @param tracks the tracks * @param tracks the tracks
* @param trackWriter the track writer * @param trackWriter the track writer
* @param trackExporterListener the track export listener * @param trackExporterListener the track export listener
@@ -58,7 +58,7 @@ public class KmzTrackExporter implements TrackExporter {
/** /**
* Constructor. * Constructor.
* *
* @param contentProviderUtils the my tracks provider utils * @param contentProviderUtils the content provider utils
* @param fileTrackExporter the file track exporter * @param fileTrackExporter the file track exporter
* @param tracks the tracks to export * @param tracks the tracks to export
* @param context the context * @param context the context
@@ -32,7 +32,7 @@ public class FileUtils {
private FileUtils() {} private FileUtils() {}
/** /**
* The My Tracks external storage directory. * Our external storage directory.
*/ */
static final String SDCARD_TOP_DIR = "MyTracks"; static final String SDCARD_TOP_DIR = "MyTracks";
@@ -43,12 +43,12 @@ public class FileUtils {
static final int MAX_FAT32_PATH_LENGTH = 260; static final int MAX_FAT32_PATH_LENGTH = 260;
/** /**
* The play tracks directory under the My Tracks cache directory. * The play tracks directory in the app's cache directory.
*/ */
public static final String PLAY_TRACKS_DIR = "temp"; public static final String PLAY_TRACKS_DIR = "temp";
/** /**
* The pictures directory under the My Tracks external storage directory. * The pictures directory under the app's external storage directory.
*/ */
private static final String PICTURES_DIR = "pictures"; private static final String PICTURES_DIR = "pictures";
@@ -37,7 +37,7 @@ public class SystemUtils {
private SystemUtils() {} private SystemUtils() {}
/** /**
* Get the My Tracks version from the manifest. * Get the app version from the manifest.
* *
* @return the version, or an empty string in case of failure. * @return the version, or an empty string in case of failure.
*/ */
@@ -42,7 +42,7 @@ import android.view.View;
import android.widget.RemoteViews; import android.widget.RemoteViews;
/** /**
* A track widget to start/stop/pause/resume recording, launch My Tracks, and * A track widget to start/stop/pause/resume recording, launch the main activity, and
* display track statistics (total distance, total time, average speed, and * display track statistics (total distance, total time, average speed, and
* moving time) for the recording track, the selected track or the last track. * moving time) for the recording track, the selected track or the last track.
* *