Merge "make isUiModeLocked, isNightModeLocked test api" into nyc-dev