The Lock switch prevents layers from being edited accidentally. When a layer is locked, you cannot select it in either the Composition or Timeline panels. If you try to select or modify a locked layer, the layer flashes in the Timeline panel.
When a layer is locked,
the Lock icon
appears
in the A/V Features column, which appears by default to the left
of the layer name in the Timeline panel.