Commit Graph

893 Commits

Author SHA1 Message Date
Jimmy Shih 48abfdd621 Fix SignalStrengthSampler.
Fix style comment on TrackRecordingService.
2011-10-10 18:11:51 -07:00
Jimmy Shih 06088b807b Fix BluetoothConnectionManager by using the public api
to create an insecure connection.
2011-10-10 17:12:17 -07:00
Jimmy Shih 21e47d8ce0 Fix unit tests with TrackPathDescriptor.
In MapOverlay, for testing, expose a getter and a setter
for TrackPathDescriptor instead of newPath and getLastPath.

In SingleColorTrackPathPainter, refactor "new Path" to a
newPath method so that tests can override the newPath method
to provide a mockPath.
2011-10-10 16:47:59 -07:00
Jimmy Shih c39ab2fda2 - fix bluetooth connection manager when creating an insecure connection
- in ControlRecordingService, unbind right after handling an intent
  to prevent leaking ServiceConnection before handling the next intent.
- update comment in TrackRecordingService
2011-10-10 15:03:54 -07:00
Jimmy Shih 4197120d92 merge heads 2011-10-10 12:13:01 -07:00
Jimmy Shih da7bd0f4ea Update "Allow access" texts and variables
Change notification permission to dangerous
Sort entries in keys.xml alphabetically
2011-10-10 12:10:12 -07:00
Jimmy Shih 21ac283355 merge heads 2011-10-09 15:05:10 -07:00
Jimmy Shih 153f638e03 merge heads 2011-10-09 14:46:53 -07:00
Jimmy Shih 9156735aa0 Add a confirmation dialog when user allows access to other apps 2011-10-09 14:36:09 -07:00
Jimmy Shih b8ad90a4cb protect MyTracksProvider based on settings bit, version 2 2011-10-09 13:56:47 -07:00
Jimmy Shih 36f7ba71f9 Fix unit tests 2011-10-09 13:42:02 -07:00
Jimmy Shih b1af2089a4 merge heads 2011-10-09 13:13:30 -07:00
Jimmy Shih 2b50a314a5 backout changeset ced20b29c911 2011-10-09 13:13:01 -07:00
Jimmy Shih 376d02cce2 Protects MyTracks notifications based on the settings bit.
Only sends broadcast notifications if allowed by the settings bit.

Introduces a permission for internal MyTracks communication.
Thus the MyTracks app widget can use this permission to
always receive broadcast notifications when a track starts
and stops.
2011-10-07 18:05:23 -07:00
Jimmy Shih 9e5204934f Protect MyTracksProvider based on the MyTracks settings bit.
Move MyTracksProvider to DatabaseProvider and protect the DatabaseProvider
using the AndroidManifest.xml.

Create a MyTracksProviderUtilFactory to create an instance of
MyTracksProviderUtils that accesses the DatabaseProvider.

Recreate MyTracksProvider by extending DatabaseProvider.
The recreated provider checks access, changes the authority,
and invokes the DatabaseProvider methods.
2011-10-07 16:23:59 -07:00
Jimmy Shih 1ffd77595d Improve TrackRecordingService by placing checkService inside canAccess 2011-10-06 10:09:25 -07:00
Jimmy Shih dac6a362f2 merge heads 2011-10-06 09:54:21 -07:00
Umran Abdulla 6d29b5140b Fix for the exception thrown when remotely starting bluetooth sensors. 2011-10-06 15:02:39 +11:00
Umran Abdulla 2c5414a8e7 Makes changes to the sensor information screen, to allow sensor details to be
available when the application is not recording.
2011-10-06 14:26:10 +11:00
Jimmy Shih 2fa325dbf3 Protect TrackRecordingService to allow
external applications access based on the
sharing settings.

Protect all RPCs calls using the caller's
process id.

When the service is started, we cannot
tell whether the caller is MyTracks or
another app. Thus when the service
is started, we cannot access MyTracks
database or start/stop a recording.

Previsouly, only the MyTracks app
widget is using the service's start method
to start and stop a recording. Thus
create a private service, ControlRecordingService,
that only the MyTracks app widget can access and delegate
starting/stopping a recording to
TrackRecordingService.
2011-10-05 16:45:32 -07:00
Jimmy Shih 969a677d7d Add a Share data settings 2011-10-04 18:35:37 -07:00
Jimmy Shih 90470342e7 merge heads 2011-10-04 14:51:45 -07:00
Jimmy Shih a4e762fb01 update MyTracks permission labels and descriptions 2011-10-04 14:50:00 -07:00
Jimmy Shih da2d732041 fix proguard issues with google-api-client-1.5.0 2011-10-04 13:57:27 -07:00
Jimmy Shih 6a5acee438 merge heads 2011-09-29 18:14:44 -07:00
Jimmy Shih 49cd5014d2 merge heads 2011-09-28 19:41:18 -07:00
Josh Kasten 522882c0cc Added back throwing of IllegalStateExceptions to startNewTrack and
endCurrentTrack so they still are thrown when called from the
ServiceBinder methods.
2011-09-28 21:11:45 -05:00
Josh Kasten 7e8b4dc4b9 Removed ignore_illegal_state string and code the uses it.
Removed the throwing of exceptions on start and stop of tracks and instead
added checking to not run them.
2011-09-28 20:22:02 -05:00
Jimmy Shih 8e673f6634 Remove clearTrackDataHub in MyTracksApplication.java 2011-09-28 17:54:11 -07:00
Josh Kasten 05e6018bd1 Organized code in handleStartCommand into smaller methods to better see the code
paths and for eaier maintainability.
2011-09-28 19:22:49 -05:00
ase69s e1a845d49f I think i have done the commit correctly, althought i only had to correct manually keys.xml (add new key from the head branch xml to mine) 2011-09-29 01:34:43 +02:00
Josh Kasten 2deded2d88 Renamed omit_illegal_state to android.intent.extra.IGNORE_ILLEGAL_STATE
Code comment and code style change.
2011-09-27 22:49:53 -05:00
Josh Kasten af550a7104 Fixed widget to not cause a unhandled exception to occur if you press on the widget
before it can update its button intent.
2011-09-27 19:59:33 -05:00
Jimmy Shih e68d7eb12d Upgrade google-api-client from 1.2.2-alpha to 1.5.0-beta. 2011-09-27 14:38:31 -07:00
Jimmy Shih a186e68ca0 Fix based on Sandor's comments 2011-09-26 11:51:05 -07:00
Jimmy Shih 81c60ca6f2 merge heads 2011-09-26 11:27:34 -07:00
Jimmy Shih bd9347afd7 merge heads 2011-09-26 10:54:11 -07:00
Jimmy Shih 9023cdf726 merge heads 2011-09-26 10:53:43 -07:00
Jimmy Shih 9caef87899 Automated merge with http://jkasten-mytracks2.googlecode.com/hg 2011-09-23 09:26:21 -07:00
ase69s c9d9c065a2 Finally solved instanceof class test. Its ready to merge? 2011-09-23 17:54:58 +02:00
Jimmy Shih c024c8d87b Fix proguard issue with fusion table.
Fusion table depends on google-api-client-1.2.2.alpha.jar.
Proguard needs to be set correctly for the google-api-client library.

Tested a release version and is able to send a track to fusion table.
2011-09-22 18:47:31 -07:00
Josh Kasten 850a0d988a Fixed Next key on the virtual keyboard on the "Marker Type" field to the next
field in the waypoint and track details activities.
2011-09-22 20:29:46 -05:00
Jimmy Shih 7bd3128e8f In MyTracks onDestroy, set trackDataHub to null to save memory 2011-09-22 12:22:23 -07:00
Jimmy Shih 43a1ec60ce create MyTracksApplication to keep global state like TrackDataHub 2011-09-22 11:25:27 -07:00
ase69s d04d83b972 Theorically solved last problem with tests...anything more? 2011-09-22 19:22:28 +02:00
Josh Kasten 89516c41e3 Added hints to all text input fields with the same value as their label for
all languages.
2011-09-22 00:03:57 -05:00
Jimmy Shih 4f9b6535fb Automated merge with http://mytracks.googlecode.com/hg/ 2011-09-21 16:17:01 -07:00
Jimmy Shih 6ab1f6158a Fixes various unit tests 2011-09-21 16:16:37 -07:00
Josh Kasten bb8e6a51f4 * Added display_settings_screen_key to keys.xml and put it to use in
CheckUnits and SettingsActivity classes for use with intents.

* In SettingsActivity split onCreate() code into initActivityCommons() and
  initActivitySpecifics() methods for easier maintaining of code required
  for all screens and code require for only some screens.
2011-09-20 19:52:53 -05:00
ase69s 7a8ea2666b Review issues corrected, pending issue about "expect" with class type argument 2011-09-20 22:31:59 +02:00