Lines Matching refs:filter
30 *Checks whether the given filter matches the current platform. An undefined
31 * filter always matches the current platform.
32 * @param {undefined|cvox.PlatformFilter|number} filter The filter.
33 * @return {boolean} Whether the filter matches the current platform.
35 cvox.PlatformUtil.matchesPlatform = function(filter) {
37 if (filter == undefined) {
40 return (filter & cvox.PlatformFilter.ANDROID) != 0;
42 return (filter & cvox.PlatformFilter.WINDOWS) != 0;
44 return (filter & cvox.PlatformFilter.MAC) != 0;
46 return (filter & cvox.PlatformFilter.LINUX) != 0;
48 return (filter & cvox.PlatformFilter.CHROMEOS) != 0;