public Iterator<Entry<V>> iterator () { return entries(); }
public void putAll (LongMap<V> map) { for (Entry<V> entry : map.entries()) put(entry.key, entry.value); }
/** * @since Available in iOS 2.0 and later. */ public void removePropertyListener(AudioQueueProperty id, PropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<PropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<PropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @throws OSStatusException * @since Available in iOS 2.1 and later. * @deprecated Deprecated in iOS 7.0. */ @Deprecated public static void removePropertyListener(AudioSessionProperty id, PropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<PropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<PropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removeRenderNotify(AURenderCallback callback) throws OSStatusException { synchronized (renderCallbacks) { for (Iterator<LongMap.Entry<AURenderCallback>> it = renderCallbacks.entries().iterator(); it.hasNext();) { LongMap.Entry<AURenderCallback> entry = it.next(); if (entry.value == callback) { OSStatus status = removeRenderNotify0(new FunctionPtr(cbRender), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removeRenderNotify(AURenderCallback callback) throws OSStatusException { synchronized (renderCallbacks) { for (Iterator<LongMap.Entry<AURenderCallback>> it = renderCallbacks.entries().iterator(); it.hasNext();) { LongMap.Entry<AURenderCallback> entry = it.next(); if (entry.value == callback) { OSStatus status = removeRenderNotify0(new FunctionPtr(cbRender), entry.key); OSStatusException.throwIfNecessary(status); } } } } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removePropertyListener(AUPropertyType id, AUPropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<AUPropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<AUPropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
public void unregisterExternalChangeCallback(ExternalChangeCallback callback) { long refconId = 0; synchronized (externalChangeCallbacks) { for (LongMap.Entry<ExternalChangeCallback> entry : externalChangeCallbacks.entries()) { if (entry.value == callback) { refconId = entry.key; externalChangeCallbacks.remove(refconId); break; } } } unregisterExternalChangeCallback(new FunctionPtr(cbExternalChange), refconId); }
public Iterator<Entry<V>> iterator () { return entries(); }
public void putAll (LongMap<V> map) { for (Entry<V> entry : map.entries()) put(entry.key, entry.value); }
public void unregisterExternalChangeCallback(ExternalChangeCallback callback) { long refconId = 0; synchronized (externalChangeCallbacks) { for (LongMap.Entry<ExternalChangeCallback> entry : externalChangeCallbacks.entries()) { if (entry.value == callback) { refconId = entry.key; externalChangeCallbacks.remove(refconId); break; } } } unregisterExternalChangeCallback(new FunctionPtr(cbExternalChange), refconId); }
/** * @since Available in iOS 2.0 and later. */ public void removePropertyListener(AudioQueueProperty id, PropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<PropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<PropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @since Available in iOS 2.0 and later. */ public void removePropertyListener(AudioQueueProperty id, PropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<PropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<PropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removePropertyListener(AUPropertyType id, AUPropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<AUPropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<AUPropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removeRenderNotify(AURenderCallback callback) throws OSStatusException { synchronized (renderCallbacks) { for (Iterator<LongMap.Entry<AURenderCallback>> it = renderCallbacks.entries().iterator(); it.hasNext();) { LongMap.Entry<AURenderCallback> entry = it.next(); if (entry.value == callback) { OSStatus status = removeRenderNotify0(new FunctionPtr(cbRender), entry.key); OSStatusException.throwIfNecessary(status); } } } } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removeRenderNotify(AURenderCallback callback) throws OSStatusException { synchronized (renderCallbacks) { for (Iterator<LongMap.Entry<AURenderCallback>> it = renderCallbacks.entries().iterator(); it.hasNext();) { LongMap.Entry<AURenderCallback> entry = it.next(); if (entry.value == callback) { OSStatus status = removeRenderNotify0(new FunctionPtr(cbRender), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removeRenderNotify(AURenderCallback callback) throws OSStatusException { synchronized (renderCallbacks) { for (Iterator<LongMap.Entry<AURenderCallback>> it = renderCallbacks.entries().iterator(); it.hasNext();) { LongMap.Entry<AURenderCallback> entry = it.next(); if (entry.value == callback) { OSStatus status = removeRenderNotify0(new FunctionPtr(cbRender), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removeRenderNotify(AURenderCallback callback) throws OSStatusException { synchronized (renderCallbacks) { for (Iterator<LongMap.Entry<AURenderCallback>> it = renderCallbacks.entries().iterator(); it.hasNext();) { LongMap.Entry<AURenderCallback> entry = it.next(); if (entry.value == callback) { OSStatus status = removeRenderNotify0(new FunctionPtr(cbRender), entry.key); OSStatusException.throwIfNecessary(status); } } } } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public void removePropertyListener(AUPropertyType id, AUPropertyListener listener) throws OSStatusException { synchronized (propertyListeners) { for (Iterator<LongMap.Entry<AUPropertyListener>> it = propertyListeners.entries().iterator(); it.hasNext();) { LongMap.Entry<AUPropertyListener> entry = it.next(); if (entry.value == listener) { OSStatus status = removePropertyListener0(id, new FunctionPtr(cbPropertyChanged), entry.key); OSStatusException.throwIfNecessary(status); } } } } /**
public void unregisterExternalChangeCallback(ExternalChangeCallback callback) { long refconId = 0; synchronized (externalChangeCallbacks) { for (LongMap.Entry<ExternalChangeCallback> entry : externalChangeCallbacks.entries()) { if (entry.value == callback) { refconId = entry.key; externalChangeCallbacks.remove(refconId); break; } } } unregisterExternalChangeCallback(new FunctionPtr(cbExternalChange), refconId); }