Search code examples
androidandroid-source

What's the meaning of "LSP" in aosp code?


I found many "*LSP" functions in AOSP code, Like applyOomAdjLSP in OomAdjuster.java. What does this mean?


Solution

  • This abbreviation is explained in the ActivityManagerService source:

    For the naming convention of function suffixes:

    • LOSP: Locked with any Of global am Service or Process lock
    • LSP: Locked with both of global am Service and Process lock
    • Locked: Locked with global am service lock alone
    • LPr: Locked with Process lock alone