summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/EthernetManager.java
diff options
context:
space:
mode:
authorJunyu Lai <junyulai@google.com>2021-12-16 02:07:21 +0000
committerJunyu Lai <junyulai@google.com>2021-12-21 10:05:36 +0000
commit2c9441062097bf3501caabb60e5c876b9b3f7d85 (patch)
tree26424ce00d9d297b9e27ae97880281464fbbbec7 /framework-t/src/android/net/EthernetManager.java
parent9105163c65c567615f4752439a65f8052cafd54f (diff)
[MS12.1] Support NetworkTemplate builder
In current design, NeworkTemplate has a lot of buildTemplate* functions to create various type of templates. These functions do not have any flexibility to add any dimension. Thus, if there is a need to add a dimension, the typical ways are: 1. Add one parameter to the buildTemplate* function and change all callers. 2. Use the NetworkTemplate constructors directly. And add one more parameter if it doesn't fulfill the needs. These codes are painful to maintain in the future if they are exposed as system api since they are lack of flexibility. Thus, introduce a builder class to NetworkTemplate to address this problem. Test: atest NetworkTemplateTest Bug: 204830222 Change-Id: I49fab236bac392563b1290d69573ad1415fda734
Diffstat (limited to 'framework-t/src/android/net/EthernetManager.java')
0 files changed, 0 insertions, 0 deletions