tools/android/appstats.py
def QueryVideoMemory(adb, pid):
    """Queries the device for graphics memory information about the process with
    a pid of |pid|.  Not all devices are currently supported.  If possible, this
    will return a single entry array of [ Graphics ].  Otherwise it will return
    [ 0 ].

    Please see |self.__NV_MAP_MODELS| and |self.__SHOWMAP_MODELS|
    to see if the device is supported.  For new devices, see if they can be
    supported by existing methods and add their entry appropriately.  Also,
    please add any new way of querying graphics memory as they become
    available."""
    model = DeviceHelper.GetDeviceModel(adb)
    if model in GraphicsHelper.__NV_MAP_MODELS:
      return GraphicsHelper.__QueryNvMap(adb, pid)
    elif model in GraphicsHelper.__SHOWMAP_MODELS:
      return GraphicsHelper.__QueryShowmap(adb, pid)
    return [ 0 ]
Queries the device for graphics memory information about the process with
    a pid of |pid|.  Not all devices are currently supported.  If possible, this
    will return a single entry array of [ Graphics ].  Otherwise it will return
    [ 0 ].

    Please see |self.__NV_MAP_MODELS| and |self.__SHOWMAP_MODELS|
    to see if the device is supported.  For new devices, see if they can be
    supported by existing methods and add their entry appropriately.  Also,
    please add any new way of querying graphics memory as they become
    available.
Queries the device for graphics memory information about the process with
a pid of |pid|.  Not all devices are currently supported.  If possible, this
will return a single entry array of [ Graphics ].  Otherwise it will return
[ 0 ].

Please see |self.__NV_MAP_MODELS| and |self.__SHOWMAP_MODELS|
to see if the device is supported.  For new devices, see if they can be
supported by existing methods and add their entry appropriately.  Also,
please add any new way of querying graphics memory as they become
available.
Queries the device for graphics memory information about the process with a pid of |pid| . Not all devices are currently supported . If possible this will return a single entry array of [ Graphics ] . Otherwise it will return [ 0 ] . Please see |self . __NV_MAP_MODELS| and |self . __SHOWMAP_MODELS| to see if the device is supported . For new devices see if they can be supported by existing methods and add their entry appropriately . Also please add any new way of querying graphics memory as they become available .
def QueryVideoMemory(adb, pid):
    model = DeviceHelper.GetDeviceModel(adb)
    if model in GraphicsHelper.__NV_MAP_MODELS:
      return GraphicsHelper.__QueryNvMap(adb, pid)
    elif model in GraphicsHelper.__SHOWMAP_MODELS:
      return GraphicsHelper.__QueryShowmap(adb, pid)
    return [ 0 ]
def QueryVideoMemory ( adb , pid ) : model = DeviceHelper . GetDeviceModel ( adb ) if model in GraphicsHelper . __NV_MAP_MODELS : return GraphicsHelper . __QueryNvMap ( adb , pid ) elif model in GraphicsHelper . __SHOWMAP_MODELS : return GraphicsHelper . __QueryShowmap ( adb , pid ) return [ 0 ]
Queries the device for graphics memory information about the process with
a pid of |pid|.
Queries the device for graphics memory information about the process with a pid of |pid| .
"""Queries the device for graphics memory information about the process with
    a pid of |pid|.  Not all devices are currently supported.  If possible, this
    will return a single entry array of [ Graphics ].  Otherwise it will return
    [ 0 ].

    Please see |self.__NV_MAP_MODELS| and |self.__SHOWMAP_MODELS|
    to see if the device is supported.  For new devices, see if they can be
    supported by existing methods and add their entry appropriately.  Also,
    please add any new way of querying graphics memory as they become
    available."""
adb
pid