Home
last modified time | relevance | path

Searched refs:role (Results 1 – 25 of 96) sorted by relevance

1234

/frameworks/base/media/java/android/media/
DAudioPort.java86 AudioPort(AudioHandle handle, int role, String name, in AudioPort() argument
91 mRole = role; in AudioPort()
117 public int role() { in role() method in AudioPort
220 String role = Integer.toString(mRole); in toString() local
223 role = "NONE"; in toString()
226 role = "SOURCE"; in toString()
229 role = "SINK"; in toString()
233 + ", mRole: " + role in toString()
DAudioDeviceAddress.java86 public AudioDeviceAddress(@Role int role, @AudioDeviceInfo.AudioDeviceType int type, in AudioDeviceAddress() argument
89 if (role != ROLE_OUTPUT && role != ROLE_INPUT) { in AudioDeviceAddress()
90 throw new IllegalArgumentException("Invalid role " + role); in AudioDeviceAddress()
92 if (role == ROLE_OUTPUT && !AudioDeviceInfo.isValidAudioDeviceTypeOut(type)) { in AudioDeviceAddress()
95 if (role == ROLE_INPUT && !AudioDeviceInfo.isValidAudioDeviceTypeIn(type)) { in AudioDeviceAddress()
99 mRole = role; in AudioDeviceAddress()
133 public static String roleToString(@Role int role) { in roleToString() argument
134 return (role == ROLE_OUTPUT ? "output" : "input"); in roleToString()
DAudioMixPort.java36 AudioMixPort(AudioHandle handle, int ioHandle, int role, String deviceName, in AudioMixPort() argument
39 super(handle, role, deviceName, samplingRates, channelMasks, channelIndexMasks, in AudioMixPort()
/frameworks/base/wifi/java/android/net/wifi/aware/
DWifiAwareNetworkSpecifier.java78 public final int role; field in WifiAwareNetworkSpecifier
158 public WifiAwareNetworkSpecifier(int type, int role, int clientId, int sessionId, int peerId, in WifiAwareNetworkSpecifier() argument
162 this.role = role; in WifiAwareNetworkSpecifier()
216 dest.writeInt(role); in writeToParcel()
241 return Objects.hash(type, role, clientId, sessionId, peerId, Arrays.hashCode(peerMac), in hashCode()
259 && role == lhs.role in equals()
276 .append(", role=").append(role) in toString()
441 int role = mDiscoverySession instanceof SubscribeDiscoverySession in build() local
446 if (role != WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_RESPONDER) { in build()
458 WifiAwareNetworkSpecifier.NETWORK_SPECIFIER_TYPE_IB, role, in build()
DDiscoverySession.java301 int role = this instanceof SubscribeDiscoverySession in createNetworkSpecifierOpen() local
305 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, null, null); in createNetworkSpecifierOpen()
360 int role = this instanceof SubscribeDiscoverySession in createNetworkSpecifierPassphrase() local
364 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, null, in createNetworkSpecifierPassphrase()
424 int role = this instanceof SubscribeDiscoverySession in createNetworkSpecifierPmk() local
428 return mgr.createNetworkSpecifier(mClientId, role, mSessionId, peerHandle, pmk, null); in createNetworkSpecifierPmk()
DWifiAwareSession.java235 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer) { in createNetworkSpecifierOpen()
245 return mgr.createNetworkSpecifier(mClientId, role, peer, null, null); in createNetworkSpecifierOpen()
276 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer, in createNetworkSpecifierPassphrase()
291 return mgr.createNetworkSpecifier(mClientId, role, peer, null, passphrase); in createNetworkSpecifierPassphrase()
327 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer, @NonNull byte[] pmk) { in createNetworkSpecifierPmk()
340 return mgr.createNetworkSpecifier(mClientId, role, peer, pmk, null); in createNetworkSpecifierPmk()
DWifiAwareManager.java398 public NetworkSpecifier createNetworkSpecifier(int clientId, int role, int sessionId, in createNetworkSpecifier() argument
401 Log.v(TAG, "createNetworkSpecifier: role=" + role + ", sessionId=" + sessionId in createNetworkSpecifier()
412 if (role != WIFI_AWARE_DATA_PATH_ROLE_INITIATOR in createNetworkSpecifier()
413 && role != WIFI_AWARE_DATA_PATH_ROLE_RESPONDER) { in createNetworkSpecifier()
418 if (role == WIFI_AWARE_DATA_PATH_ROLE_INITIATOR || !WifiAwareUtils.isLegacyVersion(mContext, in createNetworkSpecifier()
429 role, in createNetworkSpecifier()
442 public NetworkSpecifier createNetworkSpecifier(int clientId, @DataPathRole int role, in createNetworkSpecifier() argument
445 Log.v(TAG, "createNetworkSpecifier: role=" + role in createNetworkSpecifier()
450 if (role != WIFI_AWARE_DATA_PATH_ROLE_INITIATOR in createNetworkSpecifier()
451 && role != WIFI_AWARE_DATA_PATH_ROLE_RESPONDER) { in createNetworkSpecifier()
[all …]
/frameworks/av/media/libstagefright/omx/1.0/
DOmxStore.cpp79 RoleInfo role; in OmxStore() local
80 role.role = rolePair.first; in OmxStore()
81 role.type = rolePair.second.type; in OmxStore()
82 role.isEncoder = rolePair.second.isEncoder; in OmxStore()
83 role.preferPlatformNodes = false; // deprecated and ignored, using rank instead in OmxStore()
84 hidl_vec<NodeInfo>& nodeList = role.nodes; in OmxStore()
112 mRoleList[i] = std::move(role); in OmxStore()
/frameworks/av/media/libstagefright/
DOmxInfoBuilder.cpp148 for (const IOmxStore::RoleInfo& role : roles) { in buildMediaCodecList() local
149 const hidl_string& typeName = role.type; in buildMediaCodecList()
150 bool isEncoder = role.isEncoder; in buildMediaCodecList()
151 bool isAudio = hasPrefix(role.type, "audio/"); in buildMediaCodecList()
152 bool isVideoOrImage = hasPrefix(role.type, "video/") || hasPrefix(role.type, "image/"); in buildMediaCodecList()
154 for (const IOmxStore::NodeInfo &node : role.nodes) { in buildMediaCodecList()
160 nodeName.c_str(), role.type.c_str()); in buildMediaCodecList()
/frameworks/base/core/java/android/hardware/usb/
DUsbPort.java231 public static String powerRoleToString(int role) { in powerRoleToString() argument
232 switch (role) { in powerRoleToString()
240 return Integer.toString(role); in powerRoleToString()
245 public static String dataRoleToString(int role) { in dataRoleToString() argument
246 switch (role) { in dataRoleToString()
254 return Integer.toString(role); in dataRoleToString()
/frameworks/base/core/proto/android/server/
Drolemanagerservice.proto19 package com.android.server.role;
51 // The name of this role, e.g. "android.app.role.DIALER".
54 // The package names of the holders of this role.
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DCarrierMessagingClientServiceFinder.java20 import android.app.role.OnRoleHoldersChangedListener;
21 import android.app.role.RoleManager;
121 private final OnRoleHoldersChangedListener mRoleHolderChangedListener = (role, user) -> {
122 if (RoleManager.ROLE_SMS.equals(role)) {
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp121 static constexpr const char *role = "role"; member
142 static constexpr const char *role = "role"; /**< <device role: sink or source>. */ member
425 std::string role = getXmlAttribute(child, Attributes::role); in deserialize() local
426 if (role.empty()) { in deserialize()
427 ALOGE("%s: No %s found", __func__, Attributes::role); in deserialize()
430 ALOGV("%s: Role=%s", __func__, role.c_str()); in deserialize()
431 audio_port_role_t portRole = (role == Attributes::roleSource) ? in deserialize()
493 std::string role = getXmlAttribute(cur, Attributes::role); in deserialize() local
494 if (role.empty()) { in deserialize()
495 ALOGE("%s: No %s found", __func__, Attributes::role); in deserialize()
[all …]
/frameworks/ml/nn/common/
DValidateHal.cpp867 for (const auto& role : inputRoles) { in validateMemoryDesc() local
868 NN_RET_CHECK_LT(role.modelIndex, preparedModels.size()); in validateMemoryDesc()
869 const auto& preparedModel = preparedModels[role.modelIndex]; in validateMemoryDesc()
874 NN_RET_CHECK_LT(role.ioIndex, inputIndexes.size()); in validateMemoryDesc()
875 NN_RET_CHECK_GT(role.frequency, 0.0f); in validateMemoryDesc()
876 NN_RET_CHECK_LE(role.frequency, 1.0f); in validateMemoryDesc()
877 const auto [it, success] = roles.emplace(preparedModel.get(), IOType::INPUT, role.ioIndex); in validateMemoryDesc()
879 operands.push_back(model->main.operands[inputIndexes[role.ioIndex]]); in validateMemoryDesc()
881 for (const auto& role : outputRoles) { in validateMemoryDesc() local
882 NN_RET_CHECK_LT(role.modelIndex, preparedModels.size()); in validateMemoryDesc()
[all …]
/frameworks/base/core/java/android/app/role/
DIRoleManager.aidl17 package android.app.role;
19 import android.app.role.IOnRoleHoldersChangedListener;
DIOnRoleHoldersChangedListener.aidl17 package android.app.role;
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java17 package com.android.server.role;
28 import android.app.role.IOnRoleHoldersChangedListener;
29 import android.app.role.IRoleManager;
30 import android.app.role.RoleControllerManager;
31 import android.app.role.RoleManager;
262 private void migrateRoleIfNecessary(String role, @UserIdInt int userId) { in migrateRoleIfNecessary() argument
265 if (!userState.isRoleAvailable(role)) { in migrateRoleIfNecessary()
266 List<String> roleHolders = mLegacyRoleResolver.getRoleHolders(role, userId); in migrateRoleIfNecessary()
270 Slog.i(LOG_TAG, "Migrating " + role + ", legacy holders: " + roleHolders); in migrateRoleIfNecessary()
271 userState.addRoleName(role); in migrateRoleIfNecessary()
[all …]
DRoleManagerShellCommand.java17 package com.android.server.role;
21 import android.app.role.IRoleManager;
/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java17 package com.android.server.policy.role;
21 import android.app.role.RoleManager;
35 import com.android.server.role.RoleManagerService;
/frameworks/base/tests/AccessoryDisplay/
DREADME11 The role of the sink is to emulate an external display that happens
25 The role of the source is to present some content onto an external
27 role that a phone or tablet might have when the user is trying to
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp106 bool findDevicePort(audio_port_role_t role, audio_devices_t deviceType,
208 bool AudioPolicyManagerTest::findDevicePort(audio_port_role_t role, in findDevicePort() argument
214 ret = mManager->listAudioPorts(role, AUDIO_PORT_TYPE_DEVICE, &numPorts, nullptr, &generation1); in findDevicePort()
220 ret = mManager->listAudioPorts(role, AUDIO_PORT_TYPE_DEVICE, &numPorts, ports, &generation2); in findDevicePort()
226 if (port.role == role && port.ext.device.type == deviceType && in findDevicePort()
278 patch.sources[0].role = AUDIO_PORT_ROLE_SINK; in TEST_F()
280 patch.sinks[0].role = AUDIO_PORT_ROLE_SINK; in TEST_F()
284 patch.sources[0].role = AUDIO_PORT_ROLE_SOURCE; in TEST_F()
286 patch.sinks[0].role = AUDIO_PORT_ROLE_SOURCE; in TEST_F()
1025 const audio_port_role_t role = audio_is_output_device(type) in TEST_P() local
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java278 public ConnectPanReceiver(BluetoothDevice device, int role, int expectedFlags) { in ConnectPanReceiver() argument
281 mRole = role; in ConnectPanReceiver()
1139 int mask, role; in connectPanOrIncomingPanConnection() local
1146 role = BluetoothPan.LOCAL_PANU_ROLE; in connectPanOrIncomingPanConnection()
1150 role = BluetoothPan.LOCAL_NAP_ROLE; in connectPanOrIncomingPanConnection()
1163 ConnectPanReceiver receiver = getConnectPanReceiver(device, role, mask); in connectPanOrIncomingPanConnection()
1176 if (role == BluetoothPan.LOCAL_PANU_ROLE) { in connectPanOrIncomingPanConnection()
1244 int mask, role; in disconnectFromRemoteOrVerifyConnectNap() local
1251 role = BluetoothPan.LOCAL_PANU_ROLE; in disconnectFromRemoteOrVerifyConnectNap()
1255 role = BluetoothPan.LOCAL_NAP_ROLE; in disconnectFromRemoteOrVerifyConnectNap()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java969 equalTo(ns.role)); in testNetworkSpecifierWithClient()
975 equalTo(nsb.role)); in testNetworkSpecifierWithClient()
990 equalTo(ns.role)); in testNetworkSpecifierWithClient()
997 equalTo(nsb.role)); in testNetworkSpecifierWithClient()
1016 equalTo(ns.role)); in testNetworkSpecifierWithClient()
1023 equalTo(nsb.role)); in testNetworkSpecifierWithClient()
1044 final int role = WifiAwareManager.WIFI_AWARE_DATA_PATH_ROLE_INITIATOR; in testNetworkSpecifierDirect() local
1067 (WifiAwareNetworkSpecifier) session.createNetworkSpecifierOpen(role, someMac); in testNetworkSpecifierDirect()
1070 collector.checkThat("role", role, equalTo(ns.role)); in testNetworkSpecifierDirect()
1075 ns = (WifiAwareNetworkSpecifier) session.createNetworkSpecifierPmk(role, someMac, pmk); in testNetworkSpecifierDirect()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DIOProfile.h38 IOProfile(const std::string &name, audio_port_role_t role) in IOProfile() argument
39 : AudioPort(name, AUDIO_PORT_TYPE_MIX, role), in IOProfile()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioPort.h35 AudioPort(const std::string& name, audio_port_type_t type, audio_port_role_t role) : in AudioPort() argument
36 mName(name), mType(type), mRole(role) {} in AudioPort()

1234