By this line 51 +PATTERN = "^\s*(?P<test_case_id>\w+)=(?P<result>\w+)\s*$" many lines of the output will be matched. Because the output of "/system/bin/ime list -a" like below:
com.android.inputmethod.latin/.LatinIME: mId=com.android.inputmethod.latin/.LatinIME mSettingsActivityName=com.android.inputmethod.latin.Settings mIsDefaultResId=0x7f080000 Service: priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false ServiceInfo: name=com.android.inputmethod.latin.LatinIME packageName=com.android.inputmethod.latin labelRes=0x7f0b0075 nonLocalizedLabel=null icon=0x0 enabled=true exported=true processName=com.android.inputmethod.latin permission=android.permission.BIND_INPUT_METHOD flags=0x0 jp.co.omronsoft.openwnn/.OpenWnnJAJP: mId=jp.co.omronsoft.openwnn/.OpenWnnJAJP mSettingsActivityName=jp.co.omronsoft.openwnn.OpenWnnControlPanelJAJP mIsDefaultResId=0x0 Service: priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false ServiceInfo: name=jp.co.omronsoft.openwnn.OpenWnnJAJP packageName=jp.co.omronsoft.openwnn labelRes=0x0 nonLocalizedLabel=Japanese IME icon=0x0 enabled=true exported=true processName=jp.co.omronsoft.openwnn permission=android.permission.BIND_INPUT_METHOD flags=0x0 com.android.inputmethod.pinyin/.PinyinIME: mId=com.android.inputmethod.pinyin/.PinyinIME mSettingsActivityName=com.android.inputmethod.pinyin.SettingsActivity mIsDefaultResId=0x7f060000 Service: priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false ServiceInfo: name=com.android.inputmethod.pinyin.PinyinIME packageName=com.android.inputmethod.pinyin labelRes=0x7f090000 nonLocalizedLabel=null icon=0x0 enabled=true exported=true processName=com.android.inputmethod.pinyin permission=android.permission.BIND_INPUT_METHOD flags=0x0 $
Please confirm what is you want.
« Back to merge proposal
By this line P<test_ case_id> \w+)=(? P<result> \w+)\s* $"
51 +PATTERN = "^\s*(?
many lines of the output will be matched.
Because the output of "/system/bin/ime list -a" like below:
com.android. inputmethod. latin/. LatinIME: android. inputmethod. latin/. LatinIME mSettingsActivi tyName= com.android. inputmethod. latin.Settings Id=0x7f080000 com.android. inputmethod. latin.LatinIME me=com. android. inputmethod. latin 0x7f0b0075 nonLocalizedLab el=null icon=0x0 com.android. inputmethod. latin n=android. permission. BIND_INPUT_ METHOD .openwnn/ .OpenWnnJAJP: co.omronsoft. openwnn/ .OpenWnnJAJP mSettingsActivi tyName= jp.co.omronsoft .openwnn. OpenWnnControlP anelJAJP Id=0x0 jp.co.omronsoft .openwnn. OpenWnnJAJP me=jp.co. omronsoft. openwnn el=Japanese IME icon=0x0 jp.co.omronsoft .openwnn n=android. permission. BIND_INPUT_ METHOD inputmethod. pinyin/ .PinyinIME: android. inputmethod. pinyin/ .PinyinIME mSettingsActivi tyName= com.android. inputmethod. pinyin. SettingsActivit y Id=0x7f060000 com.android. inputmethod. pinyin. PinyinIME me=com. android. inputmethod. pinyin 0x7f090000 nonLocalizedLab el=null icon=0x0 com.android. inputmethod. pinyin n=android. permission. BIND_INPUT_ METHOD
mId=com.
mIsDefaultRes
Service:
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
ServiceInfo:
name=
packageNa
labelRes=
enabled=true exported=true processName=
permissio
flags=0x0
jp.co.omronsoft
mId=jp.
mIsDefaultRes
Service:
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
ServiceInfo:
name=
packageNa
labelRes=0x0 nonLocalizedLab
enabled=true exported=true processName=
permissio
flags=0x0
com.android.
mId=com.
mIsDefaultRes
Service:
priority=0 preferredOrder=0 match=0x108000 specificIndex=-1 isDefault=false
ServiceInfo:
name=
packageNa
labelRes=
enabled=true exported=true processName=
permissio
flags=0x0
$
Please confirm what is you want.