Lines Matching refs:connection

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 = mConnections.get(deviceId);
207 if (connection == null) {
208 Slog.e(TAG, "StreamConfigurationChanged: Cannot find a connection with "
212 connection.updateConfigsLocked(configs);
218 ITvInputHardwareCallback callback = connection.getCallbackLocked();
232 Connection connection = mConnections.get(deviceId);
233 if (connection == null) {
234 Slog.e(TAG, "FirstFrameCaptured: Cannot find a connection with "
238 Runnable runnable = connection.getOnFirstFrameCapturedLocked();
241 connection.setOnFirstFrameCapturedLocked(null);
259 Connection connection, int callingUid, int resolvedUserId) {
260 Integer connectionCallingUid = connection.getCallingUidLocked();
261 Integer connectionResolvedUserId = connection.getResolvedUserIdLocked();
303 Connection connection = mConnections.get(deviceId);
304 if (connection != null) {
306 convertConnectedToState(connection.getConfigsLocked().length > 0), 0,
375 Connection connection = mConnections.get(deviceId);
376 if (connection == null) {
380 if (checkUidChangedLocked(connection, callingUid, resolvedUserId)) {
382 new TvInputHardwareImpl(connection.getHardwareInfoLocked());
384 callback.asBinder().linkToDeath(connection, 0);
389 connection.resetLocked(hardware, callback, info, callingUid, resolvedUserId);
391 return connection.getHardwareLocked();
401 Connection connection = mConnections.get(deviceId);
402 if (connection == null) {
406 if (connection.getHardwareLocked() != hardware
407 || checkUidChangedLocked(connection, callingUid, resolvedUserId)) {
410 connection.resetLocked(null, null, null, null, null);
426 Connection connection = mConnections.get(i);
427 if (connection.getInfoLocked().getId().equals(inputId)) {
446 Connection connection = mConnections.get(deviceId);
447 for (TvStreamConfig config : connection.getConfigsLocked()) {
467 Connection connection = mConnections.get(deviceId);
468 final TvInputHardwareImpl hardwareImpl = connection.getHardwareImplLocked();
471 Runnable runnable = connection.getOnFirstFrameCapturedLocked();
474 connection.setOnFirstFrameCapturedLocked(null);
479 connection.setOnFirstFrameCapturedLocked(new Runnable() {