Merge "Expose the new brightness permissions as test APIs." into pi-dev