android Programming Glossary: mlock
Extending ArrayAdapter in android http://stackoverflow.com/questions/10379261/extending-arrayadapter-in-android mObjects private CustomFilter mFilter private final Object mLock new Object public CustomAdapter Context context int textViewResourceId.. bajji its prefix if mOriginalValues null synchronized mLock mOriginalValues new ArrayList T mObjects if prefix null.. null prefix.length 0 ArrayList T list synchronized mLock list new ArrayList T mOriginalValues results.values list..
Android Drag/Animation of Views http://stackoverflow.com/questions/2363666/android-drag-animation-of-views if event.getAction MotionEvent.ACTION_MOVE int x 0 y 0 if mLock DirectionLock.FREE mLock DirectionLock.HORIZONTAL_ONLY x int.. int x 0 y 0 if mLock DirectionLock.FREE mLock DirectionLock.HORIZONTAL_ONLY x int event.getX mStartPosition.x.. x int event.getX mStartPosition.x if mLock DirectionLock.FREE mLock DirectionLock.VERTICAL_ONLY y int..
How to write a custom filter for ListView with ArrayAdapter http://stackoverflow.com/questions/2519317/how-to-write-a-custom-filter-for-listview-with-arrayadapter GlycaemicIndexItemFilter filter private final Object mLock new Object public GlycaemicIndexItemAdapter Context context.. gi @Override public int getCount synchronized mLock return items null items.size 0 @Override public GlycaemicIndexItem.. getItem int item GlycaemicIndexItem gi null synchronized mLock gi items null items.get item null return gi @Override public..
How does setMicrophoneMute() work? http://stackoverflow.com/questions/6874881/how-does-setmicrophonemute-work d state mMicMute sp AudioStreamInALSA spIn AutoMutex lock mLock if mMicMute state mMicMute state in call mute is handled by..
Extending ArrayAdapter in android http://stackoverflow.com/questions/10379261/extending-arrayadapter-in-android private ArrayList T mOriginalValues private List T mObjects private CustomFilter mFilter private final Object mLock new Object public CustomAdapter Context context int textViewResourceId T objects super context textViewResourceId objects.. prefix FilterResults results new FilterResults Log.d bajji its prefix if mOriginalValues null synchronized mLock mOriginalValues new ArrayList T mObjects if prefix null prefix.length 0 ArrayList T list synchronized mLock list.. mLock mOriginalValues new ArrayList T mObjects if prefix null prefix.length 0 ArrayList T list synchronized mLock list new ArrayList T mOriginalValues results.values list results.count list.size else String prefixString prefix.toString..
Android Drag/Animation of Views http://stackoverflow.com/questions/2363666/android-drag-animation-of-views int event.getY bringToFront onSelected return true else if event.getAction MotionEvent.ACTION_MOVE int x 0 y 0 if mLock DirectionLock.FREE mLock DirectionLock.HORIZONTAL_ONLY x int event.getX mStartPosition.x if mLock DirectionLock.FREE.. onSelected return true else if event.getAction MotionEvent.ACTION_MOVE int x 0 y 0 if mLock DirectionLock.FREE mLock DirectionLock.HORIZONTAL_ONLY x int event.getX mStartPosition.x if mLock DirectionLock.FREE mLock DirectionLock.VERTICAL_ONLY.. int x 0 y 0 if mLock DirectionLock.FREE mLock DirectionLock.HORIZONTAL_ONLY x int event.getX mStartPosition.x if mLock DirectionLock.FREE mLock DirectionLock.VERTICAL_ONLY y int event.getY mStartPosition.y mRegion.translate x y mStartPosition.x..
How to write a custom filter for ListView with ArrayAdapter http://stackoverflow.com/questions/2519317/how-to-write-a-custom-filter-for-listview-with-arrayadapter originalItems new ArrayList GlycaemicIndexItem private GlycaemicIndexItemFilter filter private final Object mLock new Object public GlycaemicIndexItemAdapter Context context int textViewResourceId ArrayList GlycaemicIndexItem newItems.. gi GlycaemicIndexItem iterator.next originalItems.add gi @Override public int getCount synchronized mLock return items null items.size 0 @Override public GlycaemicIndexItem getItem int item GlycaemicIndexItem gi null synchronized.. items null items.size 0 @Override public GlycaemicIndexItem getItem int item GlycaemicIndexItem gi null synchronized mLock gi items null items.get item null return gi @Override public View getView int position View convertView ViewGroup parent..
How does setMicrophoneMute() work? http://stackoverflow.com/questions/6874881/how-does-setmicrophonemute-work setMicMute bool state LOGV setMicMute d mMicMute d state mMicMute sp AudioStreamInALSA spIn AutoMutex lock mLock if mMicMute state mMicMute state in call mute is handled by RIL if mMode AudioSystem MODE_IN_CALL spIn getActiveInput_l..
|