Shadow content resolver specify input streams to open

Original inspiration from the ancient Robolectric-1x branch in a32d50d562010a4464638e87e78fa6fed11d933e.