1{ 2 "methods": { 3 "addSensor(android.hardware.Sensor)": { 4 "isImplementation": false, 5 "modifiers": [ 6 "public" 7 ], 8 "params": [ 9 "sensor" 10 ], 11 "returnType": "void", 12 "exceptions": [], 13 "name": "addSensor(android.hardware.Sensor)", 14 "documentation": "Adds a {@link Sensor} to the {@link SensorManager} " 15 }, 16 "addSensor(int,android.hardware.Sensor)": { 17 "isImplementation": false, 18 "modifiers": [ 19 "public" 20 ], 21 "params": [ 22 "sensorType", 23 "sensor" 24 ], 25 "returnType": "void", 26 "exceptions": [], 27 "name": "addSensor(int,android.hardware.Sensor)", 28 "documentation": "Provide a Sensor for the indicated sensor type.\n\n@param sensorType from Sensor constants\n@param sensor Sensor instance\n@deprecated Use {@link ShadowSensor#newInstance(int)} to construct your {@link Sensor} and add\n to the {@link SensorManager} using {@link #addSensor(Sensor)} instead. This method will be\n removed at some point allowing us to use more of the real {@link SensorManager} code.\n" 29 }, 30 "createDirectChannel(android.os.MemoryFile)": { 31 "isImplementation": true, 32 "modifiers": [ 33 "protected" 34 ], 35 "params": [ 36 "mem" 37 ], 38 "returnType": "java.lang.Object", 39 "exceptions": [], 40 "minSdk": 26, 41 "name": "createDirectChannel(android.os.MemoryFile)" 42 }, 43 "createSensorEvent()": { 44 "isImplementation": false, 45 "modifiers": [ 46 "public" 47 ], 48 "params": [], 49 "returnType": "android.hardware.SensorEvent", 50 "exceptions": [], 51 "name": "createSensorEvent()" 52 }, 53 "createSensorEvent(int)": { 54 "isImplementation": false, 55 "modifiers": [ 56 "public", 57 "static" 58 ], 59 "params": [ 60 "valueArraySize" 61 ], 62 "returnType": "android.hardware.SensorEvent", 63 "exceptions": [], 64 "name": "createSensorEvent(int)", 65 "documentation": "Creates a {@link SensorEvent} with the given value array size, which the caller should set\nbased on the type of {@link Sensor} which is being emulated.\n\n\u003cp\u003eCallers can then specify individual values for the event. For example, for a proximity event\na caller may wish to specify the distance value:\n\n\u003cpre\u003e{@code\nevent.values[0] \u003d distance;\n}\u003c/pre\u003e\n\n\u003cp\u003eSee {@link SensorEvent#values} for more information about values.\n" 66 }, 67 "getDefaultSensor(int)": { 68 "isImplementation": true, 69 "modifiers": [ 70 "protected" 71 ], 72 "params": [ 73 "type" 74 ], 75 "returnType": "android.hardware.Sensor", 76 "exceptions": [], 77 "name": "getDefaultSensor(int)" 78 }, 79 "getDefaultSensor(int,boolean)": { 80 "isImplementation": true, 81 "modifiers": [ 82 "protected" 83 ], 84 "params": [ 85 "type", 86 "wakeUp" 87 ], 88 "returnType": "android.hardware.Sensor", 89 "exceptions": [], 90 "name": "getDefaultSensor(int,boolean)" 91 }, 92 "getListeners()": { 93 "isImplementation": false, 94 "modifiers": [ 95 "public" 96 ], 97 "params": [], 98 "returnType": "java.util.List\u003candroid.hardware.SensorEventListener\u003e", 99 "exceptions": [], 100 "name": "getListeners()", 101 "documentation": "Returns the list of {@link SensorEventListener}s registered on this SensorManager. Note that\nthe list is unmodifiable, any attempt to modify it will throw an exception.\n" 102 }, 103 "hasListener(android.hardware.SensorEventListener)": { 104 "isImplementation": false, 105 "modifiers": [ 106 "public" 107 ], 108 "params": [ 109 "listener" 110 ], 111 "returnType": "boolean", 112 "exceptions": [], 113 "name": "hasListener(android.hardware.SensorEventListener)" 114 }, 115 "registerListener(android.hardware.SensorEventListener,android.hardware.Sensor,int)": { 116 "isImplementation": true, 117 "modifiers": [ 118 "protected" 119 ], 120 "params": [ 121 "listener", 122 "sensor", 123 "rate" 124 ], 125 "returnType": "boolean", 126 "exceptions": [], 127 "name": "registerListener(android.hardware.SensorEventListener,android.hardware.Sensor,int)" 128 }, 129 "registerListener(android.hardware.SensorEventListener,android.hardware.Sensor,int,android.os.Handler)": { 130 "isImplementation": true, 131 "modifiers": [ 132 "protected" 133 ], 134 "params": [ 135 "listener", 136 "sensor", 137 "rate", 138 "handler" 139 ], 140 "returnType": "boolean", 141 "exceptions": [], 142 "name": "registerListener(android.hardware.SensorEventListener,android.hardware.Sensor,int,android.os.Handler)", 143 "documentation": "@param handler is ignored. " 144 }, 145 "sendSensorEventToListeners(android.hardware.SensorEvent)": { 146 "isImplementation": false, 147 "modifiers": [ 148 "public" 149 ], 150 "params": [ 151 "event" 152 ], 153 "returnType": "void", 154 "exceptions": [], 155 "name": "sendSensorEventToListeners(android.hardware.SensorEvent)", 156 "documentation": "Propagates the {@code event} to all registered listeners. " 157 }, 158 "unregisterListener(android.hardware.SensorEventListener)": { 159 "isImplementation": true, 160 "modifiers": [ 161 "protected" 162 ], 163 "params": [ 164 "listener" 165 ], 166 "returnType": "void", 167 "exceptions": [], 168 "name": "unregisterListener(android.hardware.SensorEventListener)" 169 }, 170 "unregisterListener(android.hardware.SensorEventListener,android.hardware.Sensor)": { 171 "isImplementation": true, 172 "modifiers": [ 173 "protected" 174 ], 175 "params": [ 176 "listener", 177 "sensor" 178 ], 179 "returnType": "void", 180 "exceptions": [], 181 "name": "unregisterListener(android.hardware.SensorEventListener,android.hardware.Sensor)" 182 } 183 }, 184 "imports": [ 185 "android.os.Build.VERSION_CODES.O", 186 "com.google.common.base.Preconditions.checkArgument", 187 "android.hardware.Sensor", 188 "android.hardware.SensorDirectChannel", 189 "android.hardware.SensorEvent", 190 "android.hardware.SensorEventListener", 191 "android.hardware.SensorManager", 192 "android.os.Handler", 193 "android.os.MemoryFile", 194 "java.util.ArrayList", 195 "java.util.Collections", 196 "java.util.HashMap", 197 "java.util.List", 198 "java.util.Map", 199 "org.robolectric.annotation.Implementation", 200 "org.robolectric.annotation.Implements", 201 "org.robolectric.annotation.RealObject", 202 "org.robolectric.util.ReflectionHelpers", 203 "org.robolectric.util.ReflectionHelpers.ClassParameter" 204 ], 205 "name": "org.robolectric.shadows.ShadowSensorManager" 206}