Merge "Replacing SimPortInfo.portState enum with portActive flag"

This commit is contained in:
Chen Xu 2021-11-10 20:34:22 +00:00 committed by Gerrit Code Review
commit 4c718b3da6
2 changed files with 5 additions and 15 deletions

View file

@ -36,7 +36,5 @@ package android.hardware.radio.config;
parcelable SimPortInfo { parcelable SimPortInfo {
String iccId; String iccId;
int logicalSlotId; int logicalSlotId;
int portState; boolean portActive;
const int PORT_STATE_INACTIVE = 0;
const int PORT_STATE_ACTIVE = 1;
} }

View file

@ -34,18 +34,10 @@ parcelable SimPortInfo {
* Logical slot id is identifier of the active slot * Logical slot id is identifier of the active slot
*/ */
int logicalSlotId; int logicalSlotId;
/*
* Port is Inactive
* Inactive means logical modem is no longer associated to the port
*/
const int PORT_STATE_INACTIVE = 0;
/*
* Port is Active
* Active means logical modem is associated to the port
*/
const int PORT_STATE_ACTIVE = 1;
/** /**
* Port state in the slot. Values are portState.[PORT_STATE_INACTIVE, PORT_STATE_ACTIVE]. * Port active status in the slot.
* Inactive means logical modem is no longer associated to the port.
* Active means logical modem is associated to the port.
*/ */
int portState; boolean portActive;
} }