Enforcing a minimum window on inexact alarms

Any non-exact alarms with window > 0, should have a specific minimum
window length. Otherwise, very small windows, say 1ms, are pratically
indistinguishable from exact alarms.

Test: atest FrameworksMockingServicesTests:com.android.server.alarm

Bug: 185199076
Bug: 185199018
Change-Id: Idf933b70a66f2a749cdb2689ab68a80204d212b1
3 files changed