protected synchronized void addDeviceToStore ( AndroidDevice device ) throws AndroidDeviceException { if ( androidDevices . containsKey ( device . getTargetPlatform ( ) ) ) { List < AndroidDevice > platformDevices = androidDevices . get ( device . getTargetPlatform ( ) ) ; if ( ! platformDevices . contains ( device ) ) { platformDevices . add ( device ) ; } } else { androidDevices . put ( device . getTargetPlatform ( ) , Lists . newArrayList ( device ) ) ; } }
Internal method to add an actual device to the store .