Lines Matching refs:address
71 * Check if the given logical address is valid. A logical address is valid
75 * @param address logical address
76 * @return true if the given address is valid
78 static boolean isValidAddress(int address) {
79 return (Constants.ADDR_TV <= address && address <= Constants.ADDR_SPECIFIC_USE);
83 * Return the device type for the given logical address.
85 * @param address logical address
86 * @return device type for the given logical address; DEVICE_INACTIVE
87 * if the address is not valid.
89 static int getTypeFromAddress(int address) {
90 if (isValidAddress(address)) {
91 return ADDRESS_TO_TYPE[address];
97 * Return the default device name for a logical address. This is the name
101 * @param address logical address
102 * @return default device name; empty string if the address is not valid
104 static String getDefaultDeviceName(int address) {
105 if (isValidAddress(address)) {
106 return DEFAULT_NAMES[address];
112 * Verify if the given address is for the given device type. If not it will throw
115 * @param logicalAddress the logical address to verify
128 * Check if the given CEC message come from the given address.
131 * @param expectedAddress the expected source address of the given message
133 * @return true if the CEC message comes from the given address