/frameworks/native/services/sensorservice/ |
H A D | SensorService.cpp | 329 // flush complete event is returned, we need to remove the connection from this queue. 417 sp<SensorEventConnection> connection(mActiveConnections[i].promote()); 418 if (connection != 0) { 420 connection->dump(result); 458 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, argument 465 if (connection->hasSensor(handle)) { 467 // If this buffer has an event from a one_shot sensor and this connection is registered 468 // for this particular one_shot sensor, try cleaning up the connection. 471 si->autoDisable(connection.get(), handle); 472 cleanupWithoutDisableLocked(connection, handl 986 enable(const sp<SensorEventConnection>& connection, int handle, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags, const String16& opPackageName) argument 1115 disable(const sp<SensorEventConnection>& connection, int handle) argument 1142 cleanupWithoutDisable( const sp<SensorEventConnection>& connection, int handle) argument 1148 cleanupWithoutDisableLocked( const sp<SensorEventConnection>& connection, int handle) argument 1171 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns, const String16& opPackageName) argument 1193 flushSensor(const sp<SensorEventConnection>& connection, const String16& opPackageName) argument 1294 sendEventsFromCache(const sp<SensorEventConnection>& connection) argument [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | RegisteredMediaRouteProvider.java | 42 * Maintains a connection to a particular media route provider service. 197 Connection connection = new Connection(messenger); 198 if (connection.register()) { 199 mActiveConnection = connection; 219 private void onConnectionReady(Connection connection) { argument 220 if (mActiveConnection == connection) { 231 private void onConnectionDied(Connection connection) { argument 232 if (mActiveConnection == connection) { 234 Log.d(TAG, this + ": Service connection died"); 240 private void onConnectionError(Connection connection, Strin argument 249 onConnectionDescriptorChanged(Connection connection, MediaRouteProviderDescriptor descriptor) argument 308 attachConnection(Connection connection) argument 611 ReceiveHandler(Connection connection) argument 636 processMessage(Connection connection, int what, int requestId, int arg, Object obj, Bundle data) argument [all...] |
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | RemoteDisplayProviderProxy.java | 39 * Maintains a connection to a particular remote display provider service. 230 Connection connection = new Connection(provider); 231 if (connection.register()) { 232 mActiveConnection = connection; 252 private void onConnectionReady(Connection connection) { argument 253 if (mActiveConnection == connection) { 265 private void onConnectionDied(Connection connection) { argument 266 if (mActiveConnection == connection) { 268 Slog.d(TAG, this + ": Service connection died"); 274 private void onDisplayStateChanged(Connection connection, RemoteDisplayStat argument 427 ProviderCallback(Connection connection) argument [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityInteractionClient.java | 156 * @param connectionId The id of a connection for interacting with the system. 168 * @param connectionId The id of a connection for interacting with the system. 176 IAccessibilityServiceConnection connection = getConnection(connectionId); 177 if (connection != null) { 190 window = connection.getWindow(accessibilityWindowId); 198 Log.w(LOG_TAG, "No connection for connection id: " + connectionId); 210 * @param connectionId The id of a connection for interacting with the system. 215 IAccessibilityServiceConnection connection = getConnection(connectionId); 216 if (connection ! 756 addConnection(int connectionId, IAccessibilityServiceConnection connection) argument [all...] |
H A D | IAccessibilityManager.aidl | 49 in IAccessibilityInteractionConnection connection, int userId);
|
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 79 // Amount of time to allow touch events to be streamed out to a connection before requiring 603 commandEntry->connection.clear(); 938 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 939 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); 1032 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1033 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; 1046 if (connection->status == Connection::STATUS_NORMAL) { 1049 synthesizeCancelationEventsForConnectionLocked(connection, options); 1670 // If the window's connection is not registered then keep waiting. 1678 // If the connection i 1679 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1801 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1849 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1873 enqueueDispatchEntryLocked( const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget, int32_t dispatchMode) argument 1963 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument 2079 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 2097 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument 2150 sp<Connection> connection = d->mConnectionsByFd.valueAt(connectionIndex); local 2224 synthesizeCancelationEventsForConnectionLocked( const sp<Connection>& connection, const CancelationOptions& options) argument 3285 const sp<Connection>& connection = mConnectionsByFd.valueAt(i); local 3358 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); local 3404 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3432 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3441 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 3451 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument 3506 sp<Connection> connection = commandEntry->connection; local 3559 sp<Connection> connection = commandEntry->connection; local 3605 startDispatchCycleLocked(now(), connection); local 3609 afterKeyEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) argument 3781 afterMotionEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) argument 3811 traceOutboundQueueLengthLocked(const sp<Connection>& connection) argument 3819 traceWaitQueueLengthLocked(const sp<Connection>& connection) argument [all...] |
H A D | InputDispatcher.h | 540 // Tracks the progress of dispatching a particular event to a particular connection. 600 sp<Connection> connection; member in struct:android::InputDispatcher::CommandEntry 825 // Queue of events that need to be published to the connection. 828 // Queue of events that have been published to the connection but that have not 1065 // Manage the dispatch cycle for a single connection. 1067 // with the mutex held makes it easier to ensure that connection invariants are maintained. 1069 void prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, 1071 void enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, 1073 void enqueueDispatchEntryLocked(const sp<Connection>& connection, 1075 void startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection); [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 340 Connection& connection = connections.editValueFor(streamId); local 341 if (connection.mSurface == surface) { 345 // Clear the surface in the connection. 346 if (connection.mSurface != NULL) { 347 if (connection.mStreamType == TV_STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE) { 348 if (Surface::isValid(connection.mSurface)) { 349 connection.mSurface->setSidebandStream(NULL); 352 connection.mSurface.clear(); 354 if (connection.mSourceHandle == NULL && connection 411 Connection& connection = connections.editValueFor(streamId); local 541 Connection& connection = connections.editValueFor(streamId); local [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbRequest.java | 61 public boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint) { argument 63 return native_init(connection, endpoint.getAddress(), endpoint.getAttributes(), 177 private native boolean native_init(UsbDeviceConnection connection, int ep_address, argument
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
H A D | TestUtil.java | 95 final UsbDeviceConnection connection = usbManager.openDevice(device); 99 connection.claimInterface(device.getInterface(i), true); 100 connection.releaseInterface(device.getInterface(i)); 102 connection.close();
|
/frameworks/native/services/surfaceflinger/ |
H A D | EventThread.h | 83 status_t registerDisplayEventConnection(const sp<Connection>& connection); 85 void setVsyncRate(uint32_t count, const sp<Connection>& connection); 86 void requestNextVsync(const sp<Connection>& connection); 111 void removeDisplayEventConnection(const wp<Connection>& connection);
|
/frameworks/base/core/java/android/app/ |
H A D | UiAutomation.java | 178 * operations on the provided connection. 181 * @param connection The connection for performing privileged operations. 185 public UiAutomation(Looper looper, IUiAutomationConnection connection) { argument 189 if (connection == null) { 192 mUiAutomationConnection = connection; 348 final IAccessibilityServiceConnection connection; 351 connection = AccessibilityInteractionClient.getInstance() 355 if (connection != null) { 357 return connection [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHardwareManager.java | 77 * This class does a basic connection management and forwarding calls to TvInputHal which eventually 156 Connection connection = new Connection(info); 157 connection.updateConfigsLocked(configs); 158 mConnections.put(info.getDeviceId(), connection); 178 Connection connection = mConnections.get(deviceId); 179 if (connection == null) { 180 Slog.e(TAG, "onDeviceUnavailable: Cannot find a connection with " + deviceId); 183 connection.resetLocked(null, null, null, null, null); 186 TvInputHardwareInfo info = connection.getHardwareInfoLocked(); 206 Connection connection 258 checkUidChangedLocked( Connection connection, int callingUid, int resolvedUserId) argument [all...] |
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | IAccessibilityServiceClient.aidl | 32 void init(in IAccessibilityServiceConnection connection, int connectionId, IBinder windowToken);
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | UsbAccessoryBulkTransport.java | 39 public UsbAccessoryBulkTransport(Logger logger, UsbDeviceConnection connection, argument 42 mConnection = connection;
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiNetworkConnectionStatistics.java | 35 public WifiNetworkConnectionStatistics(int connection, int usage) { argument 36 numConnection = connection;
|
H A D | WifiConnectionStatistics.java | 29 * connection requests, auto-join 38 * history of past connection to untrusted SSID 40 * Value = num connection 63 public void incrementOrAddUntrusted(String SSID, int connection, int usage) { argument 70 stats.numConnection = connection + stats.numConnection; 74 stats = new WifiNetworkConnectionStatistics(connection, usage);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | CarrierServiceBindHelper.java | 125 private CarrierServiceConnection connection; field in class:CarrierServiceBindHelper.AppBinding 197 } else if (connection != null) { 198 // Component is unchanged and connection is up - do nothing. 211 connection = new CarrierServiceConnection(); 215 if (mContext.bindService(carrierService, connection, Context.BIND_AUTO_CREATE | 231 if (connection == null) { 245 mContext.unbindService(connection); 246 connection = null; 251 pw.println(" connection: " + connection); [all...] |
/frameworks/base/services/midi/java/com/android/server/midi/ |
H A D | MidiService.java | 167 DeviceConnection connection = new DeviceConnection(device, this, callback); 168 mDeviceConnections.put(connection.getToken(), connection); 169 device.addDeviceConnection(connection); 174 DeviceConnection connection = mDeviceConnections.remove(token); 175 if (connection != null) { 176 connection.getDevice().removeDeviceConnection(connection); 184 public void removeDeviceConnection(DeviceConnection connection) { argument 185 mDeviceConnections.remove(connection 396 addDeviceConnection(DeviceConnection connection) argument 457 removeDeviceConnection(DeviceConnection connection) argument [all...] |
/frameworks/support/customtabs/src/android/support/customtabs/ |
H A D | CustomTabsClient.java | 54 * @param connection {@link CustomTabsServiceConnection} to use when binding. This will 61 String packageName, CustomTabsServiceConnection connection) { 64 return context.bindService(intent, connection, 119 * implementation. Since service connection is asynchronous, the return code is not the return 132 CustomTabsServiceConnection connection = new CustomTabsServiceConnection() { 139 // likely to get killed, but is preferable to keeping the connection around. 147 return bindCustomTabsService(applicationContext, packageName, connection); 60 bindCustomTabsService(Context context, String packageName, CustomTabsServiceConnection connection) argument
|
/frameworks/base/media/java/android/media/ |
H A D | MediaScannerConnection.java | 75 * when a connection to the MediaScanner service has been established 80 * Called to notify the client when a connection to the 97 * @param context the Context object, required for establishing a connection to 108 * Initiates a connection to the media scanner service. 110 * will be called when the connection is established. 126 * Releases the connection to the media scanner service. 219 * <var>path</var> and <var>mimeType</var> when the connection is 221 * @param context The caller's Context, required for establishing a connection to 236 MediaScannerConnection connection = new MediaScannerConnection(context, client); 237 client.mConnection = connection; [all...] |
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDevice.java | 34 * device and objects stored on it, as well as open the connection and transfer data. 58 * The connection will be closed when you call {@link #close()} 59 * The connection will also be closed if this method fails. 61 * @param connection an open {@link android.hardware.usb.UsbDeviceConnection} for the device 64 public boolean open(UsbDeviceConnection connection) { argument 65 boolean result = native_open(mDevice.getDeviceName(), connection.getFileDescriptor()); 67 connection.close();
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ARTPSession.cpp | 52 AString connection; local 53 if (!mDesc->findAttribute(i, "c=", &connection)) { 54 // No per-stream connection information, try global fallback. 55 if (!mDesc->findAttribute(0, "c=", &connection)) { 56 ALOGE("Unable to find connection attribute."); 60 if (!(connection == "IN IP4 127.0.0.1")) {
|
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
H A D | IConnectionServiceAdapter.aidl | 32 * Internal remote callback interface for connection services. 42 in ParcelableConnection connection); 88 void addExistingConnection(String callId, in ParcelableConnection connection);
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/ |
H A D | AccessibilityManager.java | 265 IAccessibilityInteractionConnection connection) { 264 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
|