components/policy/tools/template_writers/writers/doc_writer.py
def _AddDictionaryExampleAndroidLinux(self, parent, policy):
    '''Adds an example value for Android/Linux of a 'dict' or 'external' policy
    to a DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'dict', for which the Android/Linux example value
        is generated.
    '''
    self.AddElement(parent, 'dt', {}, 'Android/Linux:')
    element = self._AddStyledElement(parent, 'dd', ['.monospace', '.pre-wrap'])
    # Explicitly specify separators since defaults depend on python version.
    example = json.dumps(policy['example_value'],
                         indent=2,
                         sort_keys=True,
                         separators=(", ", ": "))
    self.AddText(element, '%s: %s' % (policy['name'], example))
Adds an example value for Android/Linux of a 'dict' or 'external' policy
    to a DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'dict', for which the Android/Linux example value
        is generated.
    
Adds an example value for Android/Linux of a 'dict' or 'external' policy
to a DOM node.
Adds an example value for Android / Linux of a ' dict ' or ' external ' policy to a DOM node .
def _AddDictionaryExampleAndroidLinux(self, parent, policy):
    self.AddElement(parent, 'dt', {}, 'Android/Linux:')
    element = self._AddStyledElement(parent, 'dd', ['.monospace', '.pre-wrap'])
    example = json.dumps(policy['example_value'],
                         indent=2,
                         sort_keys=True,
                         separators=(", ", ": "))
    self.AddText(element, '%s: %s' % (policy['name'], example))
def _AddDictionaryExampleAndroidLinux ( self , parent , policy ) : self . AddElement ( parent , 'dt' , { } , 'Android/Linux:' ) element = self . _AddStyledElement ( parent , 'dd' , [ '.monospace' , '.pre-wrap' ] ) example = json . dumps ( policy [ 'example_value' ] , indent = 2 , sort_keys = True , separators = ( ", " , ": " ) ) self . AddText ( element , '%s: %s' % ( policy [ 'name' ] , example ) )
Adds an example value for Android/Linux of a 'dict' or 'external' policy
to a DOM node.
Adds an example value for Android / Linux of a ' dict ' or ' external ' policy to a DOM node .
'''Adds an example value for Android/Linux of a 'dict' or 'external' policy
    to a DOM node.

    Args:
      parent: The DOM node for which the example will be added.
      policy: A policy of type 'dict', for which the Android/Linux example value
        is generated.
    ''' # Explicitly specify separators since defaults depend on python version.
self
parent
The DOM node for which the example will be added.
The DOM node for which the example will be added .
policy
A policy of type 'dict', for which the Android/Linux example value
is generated.
A policy of type ' dict ' for which the Android / Linux example value is generated .