Home
last modified time | relevance | path

Searched refs:regId (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java196 protected void setRegistration(String regId) { in setRegistration() argument
198 final boolean newRegNull = (regId == null) || regId.isEmpty(); in setRegistration()
199 if (!currentRegNull && !newRegNull && !mRegistrationId.equals(regId)) { in setRegistration()
200 Log.e(TAG, "Invalid registration transition from " + mRegistrationId + " to " + regId); in setRegistration()
203 mRegistrationId = regId == null ? "" : regId; in setRegistration()
DAudioPolicy.java236 public void setRegistration(String regId) { in setRegistration() argument
238 mRegistrationId = regId; in setRegistration()
239 mConfig.setRegistration(regId); in setRegistration()
240 if (regId != null) { in setRegistration()
509 public void notifyMixStateUpdate(String regId, int state) {
511 if (mix.getRegistration().equals(regId)) {
515 Log.v(TAG, "notifyMixStateUpdate: regId=" + regId + " state=" + state);
DIAudioPolicyCallback.aidl33 void notifyMixStateUpdate(in String regId, int state); in notifyMixStateUpdate() argument
DAudioMix.java155 void setRegistration(String regId) { in setRegistration() argument
156 mDeviceAddress = regId; in setRegistration()
/frameworks/av/media/libaudioclient/
DIAudioPolicyServiceClient.cpp74 void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
78 data.writeString8(regId); in onDynamicPolicyMixStateUpdate()
118 String8 regId = data.readString8(); in onTransact() local
120 onDynamicPolicyMixStateUpdate(regId, state); in onTransact()
DAudioSystem.cpp1278 String8 regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
1280 ALOGV("AudioPolicyServiceClient::onDynamicPolicyMixStateUpdate(%s, %d)", regId.string(), state); in onDynamicPolicyMixStateUpdate()
1288 cb(DYNAMIC_POLICY_EVENT_MIX_STATE_UPDATE, regId, state); in onDynamicPolicyMixStateUpdate()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java698 private boolean registerService(int regId, NsdServiceInfo service) { in registerService() argument
699 if (DBG) Slog.d(TAG, "registerService: " + regId + " " + service); in registerService()
701 Command cmd = new Command("mdnssd", "register", regId, service.getServiceName(), in registerService()
714 private boolean unregisterService(int regId) { in unregisterService() argument
715 if (DBG) Slog.d(TAG, "unregisterService: " + regId); in unregisterService()
717 mNativeConnector.execute("mdnssd", "stop-register", regId); in unregisterService()
725 private boolean updateService(int regId, DnsSdTxtRecord t) { in updateService() argument
726 if (DBG) Slog.d(TAG, "updateService: " + regId + " " + t); in updateService()
729 mNativeConnector.execute("mdnssd", "update", regId, t.size(), t.getRawData()); in updateService()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp173 void AudioPolicyService::onDynamicPolicyMixStateUpdate(const String8& regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
176 regId.string(), state); in onDynamicPolicyMixStateUpdate()
177 mOutputCommandThread->dynamicPolicyMixStateUpdateCommand(regId, state); in onDynamicPolicyMixStateUpdate()
180 void AudioPolicyService::doOnDynamicPolicyMixStateUpdate(const String8& regId, int32_t state) in doOnDynamicPolicyMixStateUpdate() argument
184 mNotificationClients.valueAt(i)->onDynamicPolicyMixStateUpdate(regId, state); in doOnDynamicPolicyMixStateUpdate()
262 const String8& regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
265 mAudioPolicyServiceClient->onDynamicPolicyMixStateUpdate(regId, state); in onDynamicPolicyMixStateUpdate()
799 const String8& regId, int32_t state) in dynamicPolicyMixStateUpdateCommand() argument
804 data->mRegId = regId; in dynamicPolicyMixStateUpdateCommand()
808 regId.string(), state); in dynamicPolicyMixStateUpdateCommand()
DAudioPolicyService.h226 void onDynamicPolicyMixStateUpdate(const String8& regId, int32_t state);
227 void doOnDynamicPolicyMixStateUpdate(const String8& regId, int32_t state);
304 … void dynamicPolicyMixStateUpdateCommand(const String8& regId, int32_t state);
516 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state);
538 … void onDynamicPolicyMixStateUpdate(const String8& regId, int32_t state);
DAudioPolicyClientImpl.cpp217 String8 regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
219 mAudioPolicyService->onDynamicPolicyMixStateUpdate(regId, state); in onDynamicPolicyMixStateUpdate()
/frameworks/av/media/libaudioclient/include/media/
DIAudioPolicyServiceClient.h39 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
DAudioSystem.h35 typedef void (*dynamic_policy_callback)(int event, String8 regId, int val);
439 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state);
/frameworks/av/include/media/
DIAudioPolicyServiceClient.h39 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
DAudioSystem.h35 typedef void (*dynamic_policy_callback)(int event, String8 regId, int val);
439 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state);
/frameworks/base/media/java/android/media/
DAudioSystem.java246 void onDynamicPolicyMixStateUpdate(String regId, int state); in onDynamicPolicyMixStateUpdate() argument
262 private static void dynamicPolicyCallbackFromNative(int event, String regId, int val) in dynamicPolicyCallbackFromNative() argument
273 cb.onDynamicPolicyMixStateUpdate(regId, val); in dynamicPolicyCallbackFromNative()
DAudioManager.java2837 String regId = service.registerAudioPolicy(policy.getConfig(), policy.cb(), in registerAudioPolicy() local
2839 if (regId == null) { in registerAudioPolicy()
2842 policy.setRegistration(regId); in registerAudioPolicy()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h347 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp380 android_media_AudioSystem_dyn_policy_callback(int event, String8 regId, int val) in android_media_AudioSystem_dyn_policy_callback() argument
388 const char* zechars = regId.string(); in android_media_AudioSystem_dyn_policy_callback()