Hey everyone,
we're facing a particularly weird problem regarding alarms

*The gist of the situation*

   - our app is scheduling alarms using AlarmManager
   - an *alarm was set to **8:58** AM* *but didn't go off*; apparently it 
   was *actually scheduled to **8:58 PM*
   - across the *adb dumpsys alarm* output, the alarm is listed with *two 
different 
   trigger times*
   - this happened on Huawei Honor 5x running Marshmallow
   - we're unable to reproduce it
   - we're using Xamarin (C#), but that *shouldn't *be relevant

Here are the relevant bits of dumpsys output,
showing both the *expected* and *wrong* trigger times.

Section *Next alarm clock information*

Next alarm clock information:
  user:0 pendingSend:false time:1484035080736 = *2017-01-10 08:58:00* = 
*-33m55s490ms*

Our entry in the *list of all alarms*

RTC_WAKEUP #0: Alarm{3e3da2e type 0 when 1484078280736 my.app}
  tag=*walarm*:my.app/md5f98255d9820be5cc9672d0645bf1ca12.
RingBroadcastReceiver
  type=0 whenElapsed=*+11h1m53s125ms* when=*2017-01-10 20:58:00*
  window=0 repeatInterval=0 count=0 flags=0x3
  Alarm clock:
    triggerTime=*2017-01-10 08:58:00*
    showIntent=PendingIntent{21219cf: PendingIntentRecord{aac3f5c my.app 
startActivity}}
  operation=PendingIntent{ecde88f: PendingIntentRecord{821c71c my.app 
broadcastIntent}}

Section *Next wake from idle*

Next wake from idle: Alarm{3e3da2e type 0 when 1484078280736 my.app}
  
tag=*walarm*:my.app/md5f98255d9820be5cc9672d0645bf1ca12.RingBroadcastReceiver
  type=0 whenElapsed=*+**11h26m4s510ms* when=*2017-01-10 20:58:00*
  window=0 repeatInterval=0 count=0 flags=0x3
  Alarm clock:
    triggerTime=*2017-01-10 08:58:00*
    showIntent=PendingIntent{21219cf: PendingIntentRecord{aac3f5c my.app 
startActivity}}
  operation=PendingIntent{ecde88f: PendingIntentRecord{821c71c my.app 
broadcastIntent}}

Basically my question is this: 

*How can one explain / interpret the different time values in dumpsys alarm 
output?*
*What can lead to triiggerTime being different from when and whenElapsed?*

Any ideas will be greatly appreciated!
And of course, if full dumpsys output or more info is needed, let me know

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/4a600ee0-42a5-475a-9ce8-0e6414a8fff6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to