Lines Matching defs:tv

48 import android.hardware.tv.cec.V1_0.OptionKey;
49 import android.hardware.tv.cec.V1_0.SendMessageResult;
51 import android.media.tv.TvInputManager;
52 import android.media.tv.TvInputManager.TvInputCallback;
464 mCecController.setOption(OptionKey.WAKEUP, tv().getAutoWakeup());
516 tv().setAutoWakeup(enabled);
531 tv().setSystemAudioControlFeatureEnabled(enabled);
641 tv().setSelectRequestBuffer(mSelectRequestBuffer);
781 return tv() == null ? null : tv().getCecDeviceInfo(logicalAddress);
977 if (!isTvDeviceEnabled() || !tv().isSystemAudioActivated()) {
1226 HdmiCecLocalDeviceTv tv = tv();
1227 if (tv == null) {
1228 Slog.w(TAG, "Local tv device not available");
1231 ActiveSource activeSource = tv.getActiveSource();
1237 int activePath = tv.getActivePath();
1239 HdmiDeviceInfo info = tv.getSafeDeviceInfoByPath(activePath);
1240 return (info != null) ? info : new HdmiDeviceInfo(activePath, tv.getActivePortId());
1255 HdmiCecLocalDeviceTv tv = tv();
1256 if (tv == null) {
1262 Slog.w(TAG, "Local tv device not available");
1268 if (device.getPortId() == tv.getActivePortId()) {
1276 tv.doManualPortSwitching(device.getPortId(), null);
1279 tv.deviceSelect(deviceId, callback);
1294 HdmiCecLocalDeviceTv tv = tv();
1295 if (tv == null) {
1301 Slog.w(TAG, "Local tv device not available");
1305 tv.doManualPortSwitching(portId, callback);
1382 HdmiCecLocalDeviceTv tv = tv();
1383 if (tv == null) {
1386 return tv.hasSystemAudioDevice();
1392 HdmiCecLocalDeviceTv tv = tv();
1393 if (tv == null) {
1396 return tv.isSystemAudioActivated();
1405 HdmiCecLocalDeviceTv tv = tv();
1406 if (tv == null) {
1407 Slog.w(TAG, "Local tv device not available");
1411 tv.changeSystemAudioMode(enabled, callback);
1441 HdmiCecLocalDeviceTv tv = tv();
1443 List<HdmiDeviceInfo> cecDevices = (tv == null)
1445 : tv.getSafeExternalInputsLocked();
1455 HdmiCecLocalDeviceTv tv = tv();
1457 return (tv == null)
1459 : tv.getSafeCecDevicesLocked();
1470 HdmiCecLocalDeviceTv tv = tv();
1471 if (tv == null) {
1472 Slog.w(TAG, "Local tv device not available");
1475 tv.changeVolume(oldIndex, newIndex - oldIndex, maxIndex);
1486 HdmiCecLocalDeviceTv tv = tv();
1487 if (tv == null) {
1488 Slog.w(TAG, "Local tv device not available");
1491 tv.changeMute(mute);
1502 HdmiCecLocalDeviceTv tv = tv();
1503 if (tv == null) {
1504 Slog.w(TAG, "Local tv device not available to change arc mode.");
1588 tv().startOneTouchRecord(recorderAddress, recordSource);
1603 tv().stopOneTouchRecord(recorderAddress);
1619 tv().startTimerRecording(recorderAddress, sourceType, recordSource);
1635 tv().clearTimerRecording(recorderAddress, sourceType, recordSource);
1964 public HdmiCecLocalDeviceTv tv() {
1973 return isTvDevice() && tv() != null;
2100 tv().broadcastMenuLanguage(language);
2348 if (tv() == null) return;
2349 final int lastInput = contentOn ? tv().getActivePortId() : Constants.INVALID_PORT_ID;
2351 tv().doManualPortSwitching(portId, new IHdmiControlCallback.Stub() {
2363 tv().setActivePortId(portId);