Home
last modified time | relevance | path

Searched refs:mRole (Results 1 – 12 of 12) sorted by relevance

/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/media/
DAudioDeviceAttributes.java74 int mRole; field in AudioDeviceAttributes
85 mRole = deviceInfo.isSink() ? ROLE_OUTPUT : ROLE_INPUT; in AudioDeviceAttributes()
106 mRole = role; in AudioDeviceAttributes()
112 mRole = (nativeType & AudioSystem.DEVICE_BIT_IN) != 0 ? ROLE_INPUT : ROLE_OUTPUT; in AudioDeviceAttributes()
125 return mRole; in getRole()
150 return Objects.hash(mRole, mType, mAddress); in hashCode()
159 return ((mRole == that.mRole) in equals()
172 + " role:" + roleToString(mRole) in toString()
173 + " type:" + (mRole == ROLE_OUTPUT ? AudioSystem.getOutputDeviceName( in toString()
/frameworks/base/media/java/android/media/
DAudioDeviceAttributes.java80 private final @Role int mRole; field in AudioDeviceAttributes
103 mRole = deviceInfo.isSink() ? ROLE_OUTPUT : ROLE_INPUT; in AudioDeviceAttributes()
153 mRole = role; in AudioDeviceAttributes()
180 mRole = AudioSystem.isInputDevice(nativeType) ? ROLE_INPUT : ROLE_OUTPUT; in AudioDeviceAttributes()
195 mRole = ada.getRole(); in AudioDeviceAttributes()
211 return mRole; in getRole()
284 return Objects.hash(mRole, mType, mAddress, mName, mAudioProfiles, mAudioDescriptors); in hashCode()
293 return ((mRole == that.mRole) in equals()
312 return ((mRole == that.mRole) in equalTypeAddress()
325 + " role:" + roleToString(mRole) in toString()
[all …]
DAudioPort.java82 protected final int mRole; field in AudioPort
100 mRole = role; in AudioPort()
122 mRole = role; in AudioPort()
164 return mRole; in role()
280 String role = Integer.toString(mRole); in toString()
281 switch (mRole) { in toString()
DAudioDevicePort.java176 String type = (mRole == ROLE_SOURCE ? in toString()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioPort.h40 mName(name), mType(type), mRole(role) {} in AudioPort()
48 audio_port_role_t getRole() const { return mRole; } in getRole()
98 return ((mType == AUDIO_PORT_TYPE_DEVICE) && (mRole == AUDIO_PORT_ROLE_SOURCE)) || in useInputChannelMask()
99 ((mType == AUDIO_PORT_TYPE_MIX) && (mRole == AUDIO_PORT_ROLE_SINK)); in useInputChannelMask()
104 return (mType == AUDIO_PORT_TYPE_MIX) && (mRole == AUDIO_PORT_ROLE_SOURCE) && in isDirectOutput()
111 && (((mRole == AUDIO_PORT_ROLE_SOURCE) && in isMmap()
113 || ((mRole == AUDIO_PORT_ROLE_SINK) && in isMmap()
146 audio_port_role_t mRole; variable
157 port->role = mRole; in toAudioPortBase()
/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
DSecureChannel.java66 private Role mRole; field in SecureChannel
345 mRole = Role.INITIATOR; in initiateHandshake()
417 mRole = Role.RESPONDER; in exchangeHandshake()
482 sendMessage(MessageType.PRE_SHARED_KEY, constructToken(mRole, mPreSharedKey)); in exchangePreSharedKey()
484 byte[] expectedAuthToken = constructToken(mRole == Role.INITIATOR in exchangePreSharedKey()
513 byte[] localChallenge = constructToken(mRole, mConnectionContext.getSessionUnique()); in exchangeAttestation()
520 byte[] expectedChallenge = constructToken(mRole == Role.INITIATOR in exchangeAttestation()
559 .put((byte) (Role.INITIATOR.equals(mRole) ? 0 : 1)) in constructHandshakeInitMessage()
/frameworks/av/media/libstagefright/omx/
DSoftOMXPlugin.cpp34 const char *mRole; member
206 roles->push(String8(kComponents[i].mRole)); in getRolesOfComponent()
/frameworks/av/media/libaudiofoundation/
DAudioPort.cpp32 if (mRole == AUDIO_PORT_ROLE_SOURCE && in setFlags()
218 ALOGI("%s Port[nm:%s, type:%d, role:%d]", indent, mName.c_str(), mType, mRole); in log()
227 mRole == other->getRole() && in equals()
238 legacy2aidl_audio_port_role_t_AudioPortRole(mRole)); in writeToParcelable()
264 mRole = VALUE_OR_RETURN_STATUS( in readFromParcelable()
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp407 for (auto &mRole : mParser.getRoleMap()) { in TEST_F() local
409 const string &roleName = mRole.first; in TEST_F()
411 const MediaCodecsXmlParser::RoleProperties &properties = mRole.second; in TEST_F()
/frameworks/base/core/java/android/app/
DForegroundServiceTypePolicy.java1237 final String mRole; field in ForegroundServiceTypePolicy.RolePermission
1241 mRole = role; in RolePermission()
1249 final List<String> holders = rm.getRoleHoldersAsUser(mRole, in checkPermission()
/frameworks/av/media/libstagefright/omx/tests/
DOMXHarness.cpp474 const char *mRole; in GetMimeFromComponentRole() member
498 if (!strcmp(componentRole, kRoleToMime[i].mRole)) { in GetMimeFromComponentRole()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp100 jfieldID mRole; member
985 static_cast<audio_port_role_t>(env->GetIntField(jAudioPort, gAudioPortFields.mRole)); in convertAudioPortConfigToNative()
3594 gAudioPortFields.mRole = GetFieldIDOrDie(env, audioPortClass, "mRole", "I"); in register_android_media_AudioSystem()