Merge CellInfo TYPE Enums
CellIdentity and CellInfo had redundant enums to designate the structure type. This CL merges the better-formatted enums from CellIdentity to CellInfo, removing the set from CellIdentity. For cases where the structure type must be determined at runtime based on a CellInfo record, (where polymorphic behavior isn't/shouldn't be supported), this provides a consistent mechanism for determining the type without using RTTI. In addition, this CL fixes two other minor issues: 1) The constructor for CellInfoWcdma() provided the wrong parcel type to the parent class. 2) The TYPE_TDSCDMA had a typo in CellInfo and was written as TYPE_TDCDMA. Bug: 112003199 Bug: 67711865 Test: runtest frameworks-telephony Change-Id: I5ca3c2de1433dfcef264e1273a658d1a0fe864b6
Loading
Please register or sign in to comment