Skip to content
Snippets Groups Projects
  1. Apr 10, 2024
  2. Nov 29, 2023
  3. Jun 06, 2022
  4. Mar 27, 2022
  5. Mar 26, 2022
  6. Mar 16, 2022
  7. Jan 10, 2022
  8. Aug 20, 2021
  9. May 25, 2021
  10. Mar 26, 2021
  11. Mar 20, 2021
    • Lorenzo Colitti's avatar
      Copy NetworkNotificationManager resources to conectivity module. · 3a5b9228
      Lorenzo Colitti authored
      The localized resources were automatically generated with:
      
      ===========
      export OLDRES=core/res/res
      export NEWRES=packages/Connectivity/service/ServiceConnectivityResources/res
      export FILE=services/core/java/com/android/server/connectivity/NetworkNotificationManager.java
      
      for i in $OLDRES/values-*/strings.xml; do
          outfile=$NEWRES/${i#core/res/res/}
          outdir=$(dirname $outfile)
      
          if egrep -q "$regex" $i || egrep -q "$strarrayregex" $i; then
              mkdir -p $outdir
      
              cat << EOF > $outfile
      <?xml version="1.0" encoding="utf-8"?>
      <!--
        ~ Copyright (C) 2021 The Android Open Source Project
        ~
        ~ Licensed under the Apache License, Version 2.0 (the "License");
        ~ you may not use this file except in compliance with the License.
        ~ You may obtain a copy of the License at
        ~
        ~      http://www.apache.org/licenses/LICENSE-2.0
        ~
        ~ Unless required by applicable law or agreed to in writing, software
        ~ distributed under the License is distributed on an "AS IS" BASIS,
        ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        ~ See the License for the specific language governing permissions and
        ~ limitations under the License.
        -->
      <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
      EOF
      
              egrep $regex $i >> $outfile
      
              egrep -A $strarraylines "$strarrayregex" $i >> $outfile
      
              echo "</resources>" >> $outfile
          fi
      done
      ===========
      
      The text to the the base resources file was added manually from
      the output of:
      
      ===========
      egrep -B 2 $regex core/res/res/values/strings.xml  | grep -v -- ^--
      egrep -B 2 -A 6 $strarrayregex core/res/res/values/strings.xml  | grep -v -- ^--
      ===========
      
      The drawables were copied from the Wifi resources and from the
      framework resources.
      
      Test: m
      Bug: 183097033
      Change-Id: I99c0d28069dd1a13d452105b0a83a03a833232a2
      Merged-In: I99c0d28069dd1a13d452105b0a83a03a833232a2
      3a5b9228
    • Lorenzo Colitti's avatar
      Copy NetworkNotificationManager resources to conectivity module. · f40003c5
      Lorenzo Colitti authored
      The localized resources were automatically generated with:
      
      ===========
      export OLDRES=core/res/res
      export NEWRES=packages/Connectivity/service/ServiceConnectivityResources/res
      export FILE=services/core/java/com/android/server/connectivity/NetworkNotificationManager.java
      
      for i in $OLDRES/values-*/strings.xml; do
          outfile=$NEWRES/${i#core/res/res/}
          outdir=$(dirname $outfile)
      
          if egrep -q "$regex" $i || egrep -q "$strarrayregex" $i; then
              mkdir -p $outdir
      
              cat << EOF > $outfile
      <?xml version="1.0" encoding="utf-8"?>
      <!--
        ~ Copyright (C) 2021 The Android Open Source Project
        ~
        ~ Licensed under the Apache License, Version 2.0 (the "License");
        ~ you may not use this file except in compliance with the License.
        ~ You may obtain a copy of the License at
        ~
        ~      http://www.apache.org/licenses/LICENSE-2.0
        ~
        ~ Unless required by applicable law or agreed to in writing, software
        ~ distributed under the License is distributed on an "AS IS" BASIS,
        ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        ~ See the License for the specific language governing permissions and
        ~ limitations under the License.
        -->
      <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
      EOF
      
              egrep $regex $i >> $outfile
      
              egrep -A $strarraylines "$strarrayregex" $i >> $outfile
      
              echo "</resources>" >> $outfile
          fi
      done
      ===========
      
      The text to the the base resources file was added manually from
      the output of:
      
      ===========
      egrep -B 2 $regex core/res/res/values/strings.xml  | grep -v -- ^--
      egrep -B 2 -A 6 $strarrayregex core/res/res/values/strings.xml  | grep -v -- ^--
      ===========
      
      The drawables were copied from the Wifi resources and from the
      framework resources.
      
      Test: m
      Bug: 183097033
      Change-Id: I99c0d28069dd1a13d452105b0a83a03a833232a2
      Merged-In: I99c0d28069dd1a13d452105b0a83a03a833232a2
      f40003c5
    • Lorenzo Colitti's avatar
      Copy NetworkNotificationManager resources to conectivity module. · 85ba4881
      Lorenzo Colitti authored
      The localized resources were automatically generated with:
      
      ===========
      export OLDRES=core/res/res
      export NEWRES=packages/Connectivity/service/ServiceConnectivityResources/res
      export FILE=services/core/java/com/android/server/connectivity/NetworkNotificationManager.java
      
      for i in $OLDRES/values-*/strings.xml; do
          outfile=$NEWRES/${i#core/res/res/}
          outdir=$(dirname $outfile)
      
          if egrep -q "$regex" $i || egrep -q "$strarrayregex" $i; then
              mkdir -p $outdir
      
              cat << EOF > $outfile
      <?xml version="1.0" encoding="utf-8"?>
      <!--
        ~ Copyright (C) 2021 The Android Open Source Project
        ~
        ~ Licensed under the Apache License, Version 2.0 (the "License");
        ~ you may not use this file except in compliance with the License.
        ~ You may obtain a copy of the License at
        ~
        ~      http://www.apache.org/licenses/LICENSE-2.0
        ~
        ~ Unless required by applicable law or agreed to in writing, software
        ~ distributed under the License is distributed on an "AS IS" BASIS,
        ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        ~ See the License for the specific language governing permissions and
        ~ limitations under the License.
        -->
      <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
      EOF
      
              egrep $regex $i >> $outfile
      
              egrep -A $strarraylines "$strarrayregex" $i >> $outfile
      
              echo "</resources>" >> $outfile
          fi
      done
      ===========
      
      The text to the the base resources file was added manually from
      the output of:
      
      ===========
      egrep -B 2 $regex core/res/res/values/strings.xml  | grep -v -- ^--
      egrep -B 2 -A 6 $strarrayregex core/res/res/values/strings.xml  | grep -v -- ^--
      ===========
      
      The drawables were copied from the Wifi resources and from the
      framework resources.
      
      Test: m
      Bug: 183097033
      Change-Id: I99c0d28069dd1a13d452105b0a83a03a833232a2
      Merged-In: I99c0d28069dd1a13d452105b0a83a03a833232a2
      85ba4881
  12. Mar 19, 2021
    • Lorenzo Colitti's avatar
      Copy NetworkNotificationManager resources to conectivity module. · 3b8af467
      Lorenzo Colitti authored
      The localized resources were automatically generated with:
      
      ===========
      export OLDRES=core/res/res
      export NEWRES=packages/Connectivity/service/ServiceConnectivityResources/res
      export FILE=services/core/java/com/android/server/connectivity/NetworkNotificationManager.java
      
      for i in $OLDRES/values-*/strings.xml; do
          outfile=$NEWRES/${i#core/res/res/}
          outdir=$(dirname $outfile)
      
          if egrep -q "$regex" $i || egrep -q "$strarrayregex" $i; then
              mkdir -p $outdir
      
              cat << EOF > $outfile
      <?xml version="1.0" encoding="utf-8"?>
      <!--
        ~ Copyright (C) 2021 The Android Open Source Project
        ~
        ~ Licensed under the Apache License, Version 2.0 (the "License");
        ~ you may not use this file except in compliance with the License.
        ~ You may obtain a copy of the License at
        ~
        ~      http://www.apache.org/licenses/LICENSE-2.0
        ~
        ~ Unless required by applicable law or agreed to in writing, software
        ~ distributed under the License is distributed on an "AS IS" BASIS,
        ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        ~ See the License for the specific language governing permissions and
        ~ limitations under the License.
        -->
      <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
      EOF
      
              egrep $regex $i >> $outfile
      
              egrep -A $strarraylines "$strarrayregex" $i >> $outfile
      
              echo "</resources>" >> $outfile
          fi
      done
      ===========
      
      The text to the the base resources file was added manually from
      the output of:
      
      ===========
      egrep -B 2 $regex core/res/res/values/strings.xml  | grep -v -- ^--
      egrep -B 2 -A 6 $strarrayregex core/res/res/values/strings.xml  | grep -v -- ^--
      ===========
      
      The drawables were copied from the Wifi resources and from the
      framework resources.
      
      Test: m
      Bug: 183097033
      Change-Id: I99c0d28069dd1a13d452105b0a83a03a833232a2
      3b8af467
    • Lorenzo Colitti's avatar
      Copy NetworkNotificationManager resources to conectivity module. · cd2bf495
      Lorenzo Colitti authored
      The localized resources were automatically generated with:
      
      ===========
      export OLDRES=core/res/res
      export NEWRES=packages/Connectivity/service/ServiceConnectivityResources/res
      export FILE=services/core/java/com/android/server/connectivity/NetworkNotificationManager.java
      
      for i in $OLDRES/values-*/strings.xml; do
          outfile=$NEWRES/${i#core/res/res/}
          outdir=$(dirname $outfile)
      
          if egrep -q "$regex" $i || egrep -q "$strarrayregex" $i; then
              mkdir -p $outdir
      
              cat << EOF > $outfile
      <?xml version="1.0" encoding="utf-8"?>
      <!--
        ~ Copyright (C) 2021 The Android Open Source Project
        ~
        ~ Licensed under the Apache License, Version 2.0 (the "License");
        ~ you may not use this file except in compliance with the License.
        ~ You may obtain a copy of the License at
        ~
        ~      http://www.apache.org/licenses/LICENSE-2.0
        ~
        ~ Unless required by applicable law or agreed to in writing, software
        ~ distributed under the License is distributed on an "AS IS" BASIS,
        ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        ~ See the License for the specific language governing permissions and
        ~ limitations under the License.
        -->
      <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
      EOF
      
              egrep $regex $i >> $outfile
      
              egrep -A $strarraylines "$strarrayregex" $i >> $outfile
      
              echo "</resources>" >> $outfile
          fi
      done
      ===========
      
      The text to the the base resources file was added manually from
      the output of:
      
      ===========
      egrep -B 2 $regex core/res/res/values/strings.xml  | grep -v -- ^--
      egrep -B 2 -A 6 $strarrayregex core/res/res/values/strings.xml  | grep -v -- ^--
      ===========
      
      The drawables were copied from the Wifi resources and from the
      framework resources.
      
      Test: m
      Bug: 183097033
      Change-Id: I99c0d28069dd1a13d452105b0a83a03a833232a2
      cd2bf495
Loading