Java 类android.os.HardwarePropertiesManager 实例源码

项目:EasyAndroid    文件:Managers.java   
/**
 * 返回 {@link HardwarePropertiesManager}
 */
public static HardwarePropertiesManager getHardwarePropertiesManager()
{
    return (HardwarePropertiesManager) get(HARDWARE_PROPERTIES_SERVICE);
}
项目:sprockets-android    文件:Managers.java   
/**
 * @since 4.0.0
 */
public static HardwarePropertiesManager hardwareProperties(Context context) {
    return (HardwarePropertiesManager) context.getSystemService(HARDWARE_PROPERTIES_SERVICE);
}
项目:android_Skeleton    文件:SystemServices.java   
@TargetApi(AndroidHelper.API_24)
public static HardwarePropertiesManager hardwarePropertiesService() {
    return (HardwarePropertiesManager) get(Context.HARDWARE_PROPERTIES_SERVICE);
}
项目:android-wheels    文件:ContextUtils.java   
/**
 * Obtain a {@link HardwarePropertiesManager} instance associated with specified {@link Context}
 *
 * @param context Context
 * @return {@link HardwarePropertiesManager} associated with specified {@link Context}
 * @throws InvalidContextException if {@link HardwarePropertiesManager} can't be obtained
 *                                 from specified {@link Context}
 */
@NonNull
@RequiresApi(Build.VERSION_CODES.N)
public static HardwarePropertiesManager getHardwarePropertiesManager(@NonNull Context context) {
    return validate(context.getSystemService(Context.HARDWARE_PROPERTIES_SERVICE));
}