These classes will not be included in your app .dex file and will not count against the number of dexed methods. However, they will be dexed and count against the limit for the framework.jar.
Edit: As @JesusFreke mention in a comment, methods in framework.jar you invoke will be counted against the .dex method limit. However, an app rarely uses all classes and methods in a framework, so there will still be substantial savings.