Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/audiopolicy/
DAudioPolicyConfig.java209 protected void setRegistration(String regId) { in setRegistration() argument
211 final boolean newRegNull = (regId == null) || regId.isEmpty(); in setRegistration()
212 if (!currentRegNull && !newRegNull && !mRegistrationId.equals(regId)) { in setRegistration()
213 Log.e(TAG, "Invalid registration transition from " + mRegistrationId + " to " + regId); in setRegistration()
216 mRegistrationId = regId == null ? "" : regId; in setRegistration()
DAudioPolicy.java479 public void setRegistration(String regId) { in setRegistration() argument
481 mRegistrationId = regId; in setRegistration()
482 mConfig.setRegistration(regId); in setRegistration()
483 if (regId != null) { in setRegistration()
838 public void notifyMixStateUpdate(String regId, int state) {
840 if (mix.getRegistration().equals(regId)) {
844 Log.v(TAG, "notifyMixStateUpdate: regId=" + regId + " state=" + state);
DIAudioPolicyCallback.aidl33 void notifyMixStateUpdate(in String regId, int state); in notifyMixStateUpdate() argument
DAudioMix.java181 void setRegistration(String regId) { in setRegistration() argument
182 mDeviceAddress = regId; in setRegistration()
/frameworks/av/media/libaudioclient/
DIAudioPolicyServiceClient.cpp123 void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
127 data.writeString8(regId); in onDynamicPolicyMixStateUpdate()
181 String8 regId = data.readString8(); in onTransact() local
183 onDynamicPolicyMixStateUpdate(regId, state); in onTransact()
DAudioSystem.cpp1663 String8 regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
1665 ALOGV("AudioPolicyServiceClient::onDynamicPolicyMixStateUpdate(%s, %d)", regId.string(), state); in onDynamicPolicyMixStateUpdate()
1673 cb(DYNAMIC_POLICY_EVENT_MIX_STATE_UPDATE, regId, state); in onDynamicPolicyMixStateUpdate()
/frameworks/base/services/core/java/com/android/server/
DNsdService.java712 private boolean registerService(int regId, NsdServiceInfo service) { in registerService() argument
714 Slog.d(TAG, "registerService: " + regId + " " + service); in registerService()
721 return mDaemon.execute("register", regId, name, type, port, record); in registerService()
724 private boolean unregisterService(int regId) { in unregisterService() argument
725 return mDaemon.execute("stop-register", regId); in unregisterService()
728 private boolean updateService(int regId, DnsSdTxtRecord t) { in updateService() argument
732 return mDaemon.execute("update", regId, t.size(), t.getRawData()); in updateService()
/frameworks/av/media/libaudioclient/include/media/
DIAudioPolicyServiceClient.h58 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
DAudioSystem.h40 typedef void (*dynamic_policy_callback)(int event, String8 regId, int val);
542 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state);
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImpl.cpp212 String8 regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
214 mAudioPolicyService->onDynamicPolicyMixStateUpdate(regId, state); in onDynamicPolicyMixStateUpdate()
DAudioPolicyService.h290 void onDynamicPolicyMixStateUpdate(const String8& regId, int32_t state);
291 void doOnDynamicPolicyMixStateUpdate(const String8& regId, int32_t state);
487 void dynamicPolicyMixStateUpdateCommand(const String8& regId,
708 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state);
736 void onDynamicPolicyMixStateUpdate(const String8& regId,
DAudioPolicyService.cpp229 void AudioPolicyService::onDynamicPolicyMixStateUpdate(const String8& regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
232 regId.string(), state); in onDynamicPolicyMixStateUpdate()
233 mOutputCommandThread->dynamicPolicyMixStateUpdateCommand(regId, state); in onDynamicPolicyMixStateUpdate()
236 void AudioPolicyService::doOnDynamicPolicyMixStateUpdate(const String8& regId, int32_t state) in doOnDynamicPolicyMixStateUpdate() argument
240 mNotificationClients.valueAt(i)->onDynamicPolicyMixStateUpdate(regId, state); in doOnDynamicPolicyMixStateUpdate()
340 const String8& regId, int32_t state) in onDynamicPolicyMixStateUpdate() argument
343 mAudioPolicyServiceClient->onDynamicPolicyMixStateUpdate(regId, state); in onDynamicPolicyMixStateUpdate()
1540 const String8& regId, int32_t state) in dynamicPolicyMixStateUpdateCommand() argument
1545 data->mRegId = regId; in dynamicPolicyMixStateUpdateCommand()
1549 regId.string(), state); in dynamicPolicyMixStateUpdateCommand()
/frameworks/base/media/java/android/media/
DAudioSystem.java361 void onDynamicPolicyMixStateUpdate(String regId, int state); in onDynamicPolicyMixStateUpdate() argument
379 private static void dynamicPolicyCallbackFromNative(int event, String regId, int val) in dynamicPolicyCallbackFromNative() argument
390 cb.onDynamicPolicyMixStateUpdate(regId, val); in dynamicPolicyCallbackFromNative()
DAudioManager.java3404 String regId = service.registerAudioPolicy(policy.getConfig(), policy.cb(), in registerAudioPolicyStatic() local
3408 if (regId == null) { in registerAudioPolicyStatic()
3411 policy.setRegistration(regId); in registerAudioPolicyStatic()
/frameworks/av/services/audiopolicy/
DAudioPolicyInterface.h389 virtual void onDynamicPolicyMixStateUpdate(String8 regId, int32_t state) = 0;
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java6907 String regId = null; in registerAudioPolicy() local
6917 regId = app.getRegistrationId(); in registerAudioPolicy()
6929 return regId; in registerAudioPolicy()
7240 public void onDynamicPolicyMixStateUpdate(String regId, int state) {
7241 if (!TextUtils.isEmpty(regId)) {
7243 state /*arg1*/, 0 /*arg2 ignored*/, regId /*obj*/, 0 /*delay*/);
7248 private void onDynPolicyMixStateUpdate(String regId, int state) { in onDynPolicyMixStateUpdate() argument
7249 if (DEBUG_AP) Log.d(TAG, "onDynamicPolicyMixStateUpdate("+ regId + ", " + state +")"); in onDynPolicyMixStateUpdate()
7253 if (mix.getRegistration().equals(regId)) { in onDynPolicyMixStateUpdate()
7255 policy.mPolicyCallback.notifyMixStateUpdate(regId, state); in onDynPolicyMixStateUpdate()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp415 android_media_AudioSystem_dyn_policy_callback(int event, String8 regId, int val) in android_media_AudioSystem_dyn_policy_callback() argument
423 const char* zechars = regId.string(); in android_media_AudioSystem_dyn_policy_callback()