com.pax.dal.pedkeyisolation

Interface ISlotAllocator

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method and Description
      int changeKeyOwner(int logicalId, java.lang.String packageName)
      Deprecated. 
      修改密钥所有者。
      Change the key owner.
      int deallocate(int logicalId)
      Deprecated. 
      释放物理ID, 如果logicalId 为0, 则释放此应用占用的所有物理ID, 如果logicalId > 0, 则释放指定的物理ID。
      int deallocateAll()
      Deprecated. 
      释放本机所有的物理ID
      int find(int logicalId)
      Deprecated. 
      查找逻辑ID对应的物理ID, 如果此逻辑ID已分配,则直接返回, 如果未分配, 则返回错误。
      int preallocate()
      Deprecated. 
      预分配新的物理ID。
      int setAllocated(int logicalId, int physicalId)
      Deprecated. 
      分配物理ID。
    • Method Detail

      • find

        int find(int logicalId)
        Deprecated. 
        查找逻辑ID对应的物理ID, 如果此逻辑ID已分配,则直接返回, 如果未分配, 则返回错误。
         
        Find the physical ID that corresponding to the logical ID, and if this logical ID has been assigned, it returns directly and returns error if not assigned.
        Parameters:
        logicalId -
        Returns:
        <0:失败 >0:已分配的物理ID
        <0:failed >0:the physical ID allocated
      • preallocate

        int preallocate()
        Deprecated. 
        预分配新的物理ID。
         
        preallocate a new physical ID .
        Returns:
        <0:失败 >0:预分配的物理ID
        <0:failed >0:the physical ID allocated
      • setAllocated

        int setAllocated(int logicalId,
                         int physicalId)
        Deprecated. 
        分配物理ID。
         
        allocate physical ID .
        Parameters:
        logicalId -
        physicalId -
        Returns:
        <0:失败 =0:成功
        <0:failed =0:success
      • deallocate

        int deallocate(int logicalId)
        Deprecated. 
        释放物理ID, 如果logicalId 为0, 则释放此应用占用的所有物理ID, 如果logicalId > 0, 则释放指定的物理ID。
         
        Release physical ID, and if logicalId is 0, then release all physical ID that this application occupies, and release the specified physical ID if logicalId > 0.
        Parameters:
        logicalId -
        Returns:
        <0:失败 =0:成功
        <0:failed =0:success
      • deallocateAll

        int deallocateAll()
        Deprecated. 
        释放本机所有的物理ID
         
        deallocate all physical ID .
        Returns:
        <0:失败 =0:成功
        <0:failed =0:success
      • changeKeyOwner

        int changeKeyOwner(int logicalId,
                           java.lang.String packageName)
        Deprecated. 
        修改密钥所有者。
        Change the key owner.
        Parameters:
        logicalId -
        逻辑索引。
        The logical index.
        packageName -
        应用包名。
        The package name.
        Returns:
        结果吗。
        The result code.