Home
last modified time | relevance | path

Searched refs:Constants (Results 1 – 25 of 133) sorted by relevance

123456

/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessage.java104 case Constants.MESSAGE_FEATURE_ABORT: in opcodeToString()
106 case Constants.MESSAGE_IMAGE_VIEW_ON: in opcodeToString()
108 case Constants.MESSAGE_TUNER_STEP_INCREMENT: in opcodeToString()
110 case Constants.MESSAGE_TUNER_STEP_DECREMENT: in opcodeToString()
112 case Constants.MESSAGE_TUNER_DEVICE_STATUS: in opcodeToString()
114 case Constants.MESSAGE_GIVE_TUNER_DEVICE_STATUS: in opcodeToString()
116 case Constants.MESSAGE_RECORD_ON: in opcodeToString()
118 case Constants.MESSAGE_RECORD_STATUS: in opcodeToString()
120 case Constants.MESSAGE_RECORD_OFF: in opcodeToString()
122 case Constants.MESSAGE_TEXT_VIEW_ON: in opcodeToString()
[all …]
DHdmiCecMessageValidator.java70 addValidationInfo(Constants.MESSAGE_ACTIVE_SOURCE, in HdmiCecMessageValidator()
72 addValidationInfo(Constants.MESSAGE_INACTIVE_SOURCE, physicalAddressValidator, DEST_DIRECT); in HdmiCecMessageValidator()
73 addValidationInfo(Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS, in HdmiCecMessageValidator()
75 addValidationInfo(Constants.MESSAGE_ROUTING_CHANGE, in HdmiCecMessageValidator()
77 addValidationInfo(Constants.MESSAGE_ROUTING_INFORMATION, in HdmiCecMessageValidator()
79 addValidationInfo(Constants.MESSAGE_SET_STREAM_PATH, in HdmiCecMessageValidator()
81 addValidationInfo(Constants.MESSAGE_SYSTEM_AUDIO_MODE_REQUEST, in HdmiCecMessageValidator()
86 addValidationInfo(Constants.MESSAGE_ABORT, noneValidator, DEST_DIRECT); in HdmiCecMessageValidator()
87 addValidationInfo(Constants.MESSAGE_GET_CEC_VERSION, noneValidator, DEST_DIRECT); in HdmiCecMessageValidator()
88 addValidationInfo(Constants.MESSAGE_GET_MENU_LANGUAGE, in HdmiCecMessageValidator()
[all …]
DHdmiCecStandbyModeHandler.java85 Constants.ABORT_UNRECOGNIZED_OPCODE);
87 Constants.ABORT_NOT_IN_CORRECT_MODE);
88 private final CecMessageHandler mAborterRefused = new Aborter(Constants.ABORT_REFUSED);
99 addHandler(Constants.MESSAGE_IMAGE_VIEW_ON, mAutoOnHandler); in HdmiCecStandbyModeHandler()
100 addHandler(Constants.MESSAGE_TEXT_VIEW_ON, mAutoOnHandler); in HdmiCecStandbyModeHandler()
102 addHandler(Constants.MESSAGE_ACTIVE_SOURCE, mBystander); in HdmiCecStandbyModeHandler()
103 addHandler(Constants.MESSAGE_REQUEST_ACTIVE_SOURCE, mBystander); in HdmiCecStandbyModeHandler()
104 addHandler(Constants.MESSAGE_ROUTING_CHANGE, mBystander); in HdmiCecStandbyModeHandler()
105 addHandler(Constants.MESSAGE_ROUTING_INFORMATION, mBystander); in HdmiCecStandbyModeHandler()
106 addHandler(Constants.MESSAGE_SET_STREAM_PATH, mBystander); in HdmiCecStandbyModeHandler()
[all …]
DHdmiCecMessageBuilder.java60 return buildCommand(src, dest, Constants.MESSAGE_FEATURE_ABORT, params); in buildFeatureAbortCommand()
71 return buildCommand(src, dest, Constants.MESSAGE_GIVE_PHYSICAL_ADDRESS); in buildGivePhysicalAddress()
82 return buildCommand(src, dest, Constants.MESSAGE_GIVE_OSD_NAME); in buildGiveOsdNameCommand()
93 return buildCommand(src, dest, Constants.MESSAGE_GIVE_DEVICE_VENDOR_ID); in buildGiveDeviceVendorIdCommand()
118 return buildCommand(src, Constants.ADDR_BROADCAST, in buildSetMenuLanguageCommand()
119 Constants.MESSAGE_SET_MENU_LANGUAGE, params); in buildSetMenuLanguageCommand()
138 return buildCommand(src, dest, Constants.MESSAGE_SET_OSD_NAME, params); in buildSetOsdNameCommand()
161 return buildCommand(src, Constants.ADDR_BROADCAST, in buildReportPhysicalAddressCommand()
162 Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS, params); in buildReportPhysicalAddressCommand()
182 return buildCommand(src, Constants.ADDR_BROADCAST, in buildDeviceVendorIdCommand()
[all …]
DHdmiCecLocalDevice.java84 logicalAddress = Constants.ADDR_INVALID; in invalidate()
85 physicalAddress = Constants.INVALID_PHYSICAL_ADDRESS; in invalidate()
106 String logicalAddressString = (logicalAddress == Constants.ADDR_INVALID) in toString()
109 String physicalAddressString = (physicalAddress == Constants.INVALID_PHYSICAL_ADDRESS) in toString()
159 mAddress = Constants.ADDR_UNREGISTERED; in HdmiCecLocalDevice()
226 if (dest != mAddress && dest != Constants.ADDR_BROADCAST) { in dispatchMessage()
241 case Constants.MESSAGE_ACTIVE_SOURCE: in onMessage()
243 case Constants.MESSAGE_INACTIVE_SOURCE: in onMessage()
245 case Constants.MESSAGE_REQUEST_ACTIVE_SOURCE: in onMessage()
247 case Constants.MESSAGE_GET_MENU_LANGUAGE: in onMessage()
[all …]
DNewDeviceAction.java70 mVendorId = Constants.UNKNOWN_VENDOR_ID; in NewDeviceAction()
84 if (mayProcessCommandIfCached(mDeviceLogicalAddress, Constants.MESSAGE_SET_OSD_NAME)) { in requestOsdName()
108 if (opcode == Constants.MESSAGE_SET_OSD_NAME) { in processCommand()
116 } else if (opcode == Constants.MESSAGE_FEATURE_ABORT) { in processCommand()
118 if (requestOpcode == Constants.MESSAGE_GIVE_OSD_NAME) { in processCommand()
124 if (opcode == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand()
129 } else if (opcode == Constants.MESSAGE_FEATURE_ABORT) { in processCommand()
131 if (requestOpcode == Constants.MESSAGE_GIVE_DEVICE_VENDOR_ID) { in processCommand()
157 Constants.MESSAGE_DEVICE_VENDOR_ID)) { in requestVendorId()
DDeviceDiscoveryAction.java72 private int mPhysicalAddress = Constants.INVALID_PHYSICAL_ADDRESS;
73 private int mPortId = Constants.INVALID_PORT_ID;
74 private int mVendorId = Constants.UNKNOWN_VENDOR_ID;
121 }, Constants.POLL_ITERATION_REVERSE_ORDER in start()
122 | Constants.POLL_STRATEGY_REMOTES_DEVICES, HdmiConfig.DEVICE_POLLING_RETRY); in start()
142 return address >= Constants.ADDR_TV && address < Constants.ADDR_UNREGISTERED; in verifyValidLogicalAddress()
154 if (mayProcessMessageIfCached(address, Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS)) { in queryPhysicalAddress()
177 if (mayProcessMessageIfCached(address, Constants.MESSAGE_SET_OSD_NAME)) { in queryOsdName()
201 if (mayProcessMessageIfCached(address, Constants.MESSAGE_DEVICE_VENDOR_ID)) { in queryVendorId()
222 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS) { in processCommand()
[all …]
DHdmiCecController.java89 return HdmiUtils.getTypeFromAddress(address) == Constants.ADDR_AUDIO_SYSTEM;
185 if (preferredAddress == Constants.ADDR_UNREGISTERED) { in handleAllocateLogicalAddress()
194 int logicalAddress = Constants.ADDR_UNREGISTERED; in handleAllocateLogicalAddress()
198 if (curAddress != Constants.ADDR_UNREGISTERED in handleAllocateLogicalAddress()
413 int strategy = pickStrategy & Constants.POLL_STRATEGY_MASK; in pickPollCandidates()
416 case Constants.POLL_STRATEGY_SYSTEM_AUDIO: in pickPollCandidates()
419 case Constants.POLL_STRATEGY_REMOTES_DEVICES: in pickPollCandidates()
425 int iterationStrategy = pickStrategy & Constants.POLL_ITERATION_STRATEGY_MASK; in pickPollCandidates()
428 case Constants.POLL_ITERATION_IN_ORDER: in pickPollCandidates()
429 for (int i = Constants.ADDR_TV; i <= Constants.ADDR_SPECIFIC_USE; ++i) { in pickPollCandidates()
[all …]
DHdmiCecLocalDevicePlayback.java47 SystemProperties.getBoolean(Constants.PROPERTY_WAKE_ON_HOTPLUG, true);
50 SystemProperties.getBoolean(Constants.PROPERTY_SET_MENU_LANGUAGE, false);
90 return SystemProperties.getInt(Constants.PROPERTY_PREFERRED_ADDRESS_PLAYBACK, in getPreferredAddress()
91 Constants.ADDR_UNREGISTERED); in getPreferredAddress()
98 SystemProperties.set(Constants.PROPERTY_PREFERRED_ADDRESS_PLAYBACK, in setPreferredAddress()
111 OneTouchPlayAction action = OneTouchPlayAction.create(this, Constants.ADDR_TV, in oneTouchPlay()
130 DevicePowerStatusAction action = DevicePowerStatusAction.create(this, Constants.ADDR_TV, in queryDisplayStatus()
174 HdmiCecMessageBuilder.buildStandby(mAddress, Constants.ADDR_TV)); in onStandby()
179 HdmiCecMessageBuilder.buildStandby(mAddress, Constants.ADDR_BROADCAST)); in onStandby()
206 if (SystemProperties.getBoolean(Constants.PROPERTY_KEEP_AWAKE, true)) { in getWakeLock()
[all …]
DDelayedMessageBuffer.java50 case Constants.MESSAGE_ACTIVE_SOURCE: in add()
54 case Constants.MESSAGE_INITIATE_ARC: in add()
55 case Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE: in add()
71 if (message.getOpcode() == Constants.MESSAGE_ACTIVE_SOURCE) { in removeActiveSource()
115 if (message.getOpcode() == Constants.MESSAGE_ACTIVE_SOURCE in processMessagesForDevice()
140 if (message.getOpcode() == Constants.MESSAGE_ACTIVE_SOURCE in processActiveSource()
DHotplugDetectionAction.java47 private static final int NUM_OF_ADDRESS = Constants.ADDR_SPECIFIC_USE
48 - Constants.ADDR_TV + 1;
134 }, Constants.POLL_ITERATION_IN_ORDER in pollAllDevices()
135 | Constants.POLL_STRATEGY_REMOTES_DEVICES, HdmiConfig.HOTPLUG_DETECTION_RETRY); in pollAllDevices()
146 }, Constants.POLL_ITERATION_IN_ORDER in pollAudioSystem()
147 | Constants.POLL_STRATEGY_SYSTEM_AUDIO, HdmiConfig.HOTPLUG_DETECTION_RETRY); in pollAudioSystem()
158 if (index == Constants.ADDR_AUDIO_SYSTEM) { in checkHotplug()
173 if (!removed.get(Constants.ADDR_AUDIO_SYSTEM)) { in checkHotplug()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpEvent.java20 import com.android.server.wifi.hotspot2.anqp.Constants;
30 private static final Map<String, Constants.ANQPElementType> sWpsNames = new HashMap<>();
33 sWpsNames.put("anqp_venue_name", Constants.ANQPElementType.ANQPVenueName);
34 sWpsNames.put("anqp_roaming_consortium", Constants.ANQPElementType.ANQPRoamingConsortium);
36 Constants.ANQPElementType.ANQPIPAddrAvailability);
37 sWpsNames.put("anqp_nai_realm", Constants.ANQPElementType.ANQPNAIRealm);
38 sWpsNames.put("anqp_3gpp", Constants.ANQPElementType.ANQP3GPPNetwork);
39 sWpsNames.put("anqp_domain_name", Constants.ANQPElementType.ANQPDomName);
40 sWpsNames.put("hs20_operator_friendly_name", Constants.ANQPElementType.HSFriendlyName);
41 sWpsNames.put("hs20_wan_metrics", Constants.ANQPElementType.HSWANMetrics);
[all …]
DANQPRequestManager.java23 import com.android.server.wifi.hotspot2.anqp.Constants;
70 private static final List<Constants.ANQPElementType> R1_ANQP_BASE_SET = Arrays.asList(
71 Constants.ANQPElementType.ANQPVenueName,
72 Constants.ANQPElementType.ANQPIPAddrAvailability,
73 Constants.ANQPElementType.ANQPNAIRealm,
74 Constants.ANQPElementType.ANQP3GPPNetwork,
75 Constants.ANQPElementType.ANQPDomName);
77 private static final List<Constants.ANQPElementType> R2_ANQP_BASE_SET = Arrays.asList(
78 Constants.ANQPElementType.HSFriendlyName,
79 Constants.ANQPElementType.HSWANMetrics,
[all …]
DPasspointEventHandler.java24 import com.android.server.wifi.hotspot2.anqp.Constants;
51 Map<Constants.ANQPElementType, ANQPElement> anqpElements); in onANQPResponse()
80 public boolean requestANQP(long bssid, List<Constants.ANQPElementType> elements) { in requestANQP()
144 List<Constants.ANQPElementType> querySet) { in buildAnqpIdSet()
147 for (Constants.ANQPElementType elementType : querySet) { in buildAnqpIdSet()
148 Integer id = Constants.getANQPElementID(elementType); in buildAnqpIdSet()
152 id = Constants.getHS20ElementID(elementType); in buildAnqpIdSet()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPRequestManagerTest.java33 import com.android.server.wifi.hotspot2.anqp.Constants;
51 private static final List<Constants.ANQPElementType> R1_ANQP_WITHOUT_RC = Arrays.asList(
52 Constants.ANQPElementType.ANQPVenueName,
53 Constants.ANQPElementType.ANQPIPAddrAvailability,
54 Constants.ANQPElementType.ANQPNAIRealm,
55 Constants.ANQPElementType.ANQP3GPPNetwork,
56 Constants.ANQPElementType.ANQPDomName);
58 private static final List<Constants.ANQPElementType> R1_ANQP_WITH_RC = Arrays.asList(
59 Constants.ANQPElementType.ANQPVenueName,
60 Constants.ANQPElementType.ANQPIPAddrAvailability,
[all …]
DPasspointEventHandlerTest.java29 import com.android.server.wifi.hotspot2.anqp.Constants;
68 List<Constants.ANQPElementType> elementToRequest = in requestR1AnqpElement()
69 Arrays.asList(Constants.ANQPElementType.ANQPRoamingConsortium); in requestR1AnqpElement()
71 new HashSet<>(Arrays.asList(Constants.getANQPElementID( in requestR1AnqpElement()
72 Constants.ANQPElementType.ANQPRoamingConsortium))); in requestR1AnqpElement()
91 List<Constants.ANQPElementType> elementToRequest = in requestR2AnqpElement()
92 Arrays.asList(Constants.ANQPElementType.HSFriendlyName); in requestR2AnqpElement()
95 new HashSet<>(Arrays.asList(Constants.getHS20ElementID( in requestR2AnqpElement()
96 Constants.ANQPElementType.HSFriendlyName))); in requestR2AnqpElement()
114 List<Constants.ANQPElementType> elementToRequest = in requestMixAnqpElements()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java19 import android.hardware.usb.V1_0.Constants;
37 public static final int MODE_NONE = Constants.PortMode.NONE;
45 public static final int MODE_DFP = Constants.PortMode.DFP;
54 public static final int MODE_UFP = Constants.PortMode.UFP;
65 public static final int MODE_DUAL = Constants.PortMode.DRP;
71 android.hardware.usb.V1_1.Constants.PortMode_1_1.AUDIO_ACCESSORY;
77 android.hardware.usb.V1_1.Constants.PortMode_1_1.DEBUG_ACCESSORY;
82 public static final int POWER_ROLE_NONE = Constants.PortPowerRole.NONE;
87 public static final int POWER_ROLE_SOURCE = Constants.PortPowerRole.SOURCE;
92 public static final int POWER_ROLE_SINK = Constants.PortPowerRole.SINK;
[all …]
/frameworks/base/core/java/android/os/
DBatteryManager.java21 import android.hardware.health.V1_0.Constants;
132 public static final int BATTERY_STATUS_UNKNOWN = Constants.BATTERY_STATUS_UNKNOWN;
133 public static final int BATTERY_STATUS_CHARGING = Constants.BATTERY_STATUS_CHARGING;
134 public static final int BATTERY_STATUS_DISCHARGING = Constants.BATTERY_STATUS_DISCHARGING;
135 public static final int BATTERY_STATUS_NOT_CHARGING = Constants.BATTERY_STATUS_NOT_CHARGING;
136 public static final int BATTERY_STATUS_FULL = Constants.BATTERY_STATUS_FULL;
139 public static final int BATTERY_HEALTH_UNKNOWN = Constants.BATTERY_HEALTH_UNKNOWN;
140 public static final int BATTERY_HEALTH_GOOD = Constants.BATTERY_HEALTH_GOOD;
141 public static final int BATTERY_HEALTH_OVERHEAT = Constants.BATTERY_HEALTH_OVERHEAT;
142 public static final int BATTERY_HEALTH_DEAD = Constants.BATTERY_HEALTH_DEAD;
[all …]
DHardwarePropertiesManager.java22 import android.hardware.thermal.V1_0.Constants;
63 public static final int DEVICE_TEMPERATURE_CPU = Constants.TemperatureType.CPU;
66 public static final int DEVICE_TEMPERATURE_GPU = Constants.TemperatureType.GPU;
69 public static final int DEVICE_TEMPERATURE_BATTERY = Constants.TemperatureType.BATTERY;
72 public static final int DEVICE_TEMPERATURE_SKIN = Constants.TemperatureType.SKIN;
/frameworks/base/media/java/android/media/tv/
DTvInputHardwareInfo.java23 import android.hardware.tv.input.V1_0.Constants;
41 public static final int TV_INPUT_TYPE_OTHER_HARDWARE = Constants.TV_INPUT_TYPE_OTHER;
42 public static final int TV_INPUT_TYPE_TUNER = Constants.TV_INPUT_TYPE_TUNER;
43 public static final int TV_INPUT_TYPE_COMPOSITE = Constants.TV_INPUT_TYPE_COMPOSITE;
44 public static final int TV_INPUT_TYPE_SVIDEO = Constants.TV_INPUT_TYPE_SVIDEO;
45 public static final int TV_INPUT_TYPE_SCART = Constants.TV_INPUT_TYPE_SCART;
46 public static final int TV_INPUT_TYPE_COMPONENT = Constants.TV_INPUT_TYPE_COMPONENT;
47 public static final int TV_INPUT_TYPE_VGA = Constants.TV_INPUT_TYPE_VGA;
48 public static final int TV_INPUT_TYPE_DVI = Constants.TV_INPUT_TYPE_DVI;
49 public static final int TV_INPUT_TYPE_HDMI = Constants.TV_INPUT_TYPE_HDMI;
[all …]
/frameworks/base/packages/Osu/src/com/android/anqp/
DI18Name.java11 import static com.android.anqp.Constants.BYTE_MASK;
23 if (payload.remaining() < Constants.LANG_CODE_LENGTH + 1) { in I18Name()
27 if (nameLength < Constants.LANG_CODE_LENGTH) { in I18Name()
30 mLanguage = Constants.getTrimmedString(payload, in I18Name()
31 Constants.LANG_CODE_LENGTH, StandardCharsets.US_ASCII); in I18Name()
33 mText = Constants.getString(payload, nameLength - in I18Name()
34 Constants.LANG_CODE_LENGTH, StandardCharsets.UTF_8); in I18Name()
38 if (compoundString.length() < Constants.LANG_CODE_LENGTH) { in I18Name()
41 mLanguage = compoundString.substring(0, Constants.LANG_CODE_LENGTH); in I18Name()
42 mText = compoundString.substring(Constants.LANG_CODE_LENGTH); in I18Name()
DHSIconFileElement.java12 import static com.android.anqp.Constants.BYTE_MASK;
13 import static com.android.anqp.Constants.SHORT_MASK;
28 public HSIconFileElement(Constants.ANQPElementType infoID, ByteBuffer payload) in HSIconFileElement()
38 mType = Constants.getPrefixedString(payload, 1, StandardCharsets.US_ASCII); in HSIconFileElement()
80 super(Constants.ANQPElementType.HSIconFile);
DANQPElement.java7 private final Constants.ANQPElementType mID;
9 protected ANQPElement(Constants.ANQPElementType id) { in ANQPElement()
13 public Constants.ANQPElementType getID() { in getID()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DInformationElementUtil.java24 import com.android.server.wifi.hotspot2.anqp.Constants;
44 int eid = data.get() & Constants.BYTE_MASK; in parseInformationElements()
45 int elementLength = data.get() & Constants.BYTE_MASK; in parseInformationElements()
147 stationCount = data.getShort() & Constants.SHORT_MASK; in from()
148 channelUtilization = data.get() & Constants.BYTE_MASK; in from()
149 capacity = data.getShort() & Constants.SHORT_MASK; in from()
218 channelMode = ie.bytes[0] & Constants.BYTE_MASK; in from()
219 centerFreqIndex1 = ie.bytes[1] & Constants.BYTE_MASK; in from()
220 centerFreqIndex2 = ie.bytes[2] & Constants.BYTE_MASK; in from()
234 int anOptions = data.get() & Constants.BYTE_MASK; in from()
[all …]
/frameworks/base/packages/Osu2/src/com/android/osu/
DMainActivity.java42 if (!intent.hasExtra(Constants.INTENT_EXTRA_COMMAND)) { in onCreate()
47 String command = intent.getStringExtra(Constants.INTENT_EXTRA_COMMAND); in onCreate()
49 case Constants.COMMAND_PROVISION: in onCreate()
51 Constants.INTENT_EXTRA_OSU_PROVIDER))) { in onCreate()

123456