From 8e143c26ad7be9f4b4242899aa64a7581e367f6a Mon Sep 17 00:00:00 2001 From: Bertrand BRUN Date: Thu, 20 Jan 2011 11:24:18 +0100 Subject: [PATCH 1/4] Ajout de la biblio (Pour les articles de citeulike cliquer sur export et choisir bibtex puis ajouter le code dans biblio.bib) et du nom de l'article pour moi (Bertrand) --- feuille-route/biblio.bib | 22 ++++++++++++++++++++++ feuille-route/feuille-route.tex | 7 +++++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 feuille-route/biblio.bib diff --git a/feuille-route/biblio.bib b/feuille-route/biblio.bib new file mode 100644 index 0000000..c942719 --- /dev/null +++ b/feuille-route/biblio.bib @@ -0,0 +1,22 @@ +%% Bertrand : Source code optimization and profiling of energy consumption in embedded systems +@inproceedings{citeulike:5700744, + abstract = {{This paper presents a source code optimization methodology and a profiling tool that have been developed to help designers in optimizing software performance and energy in embedded systems. Code optimizations are applied at three levels of abstraction: algorithmic, data and instruction-level. The profiler exploits a cycle-accurate energy consumption simulator [3] to relate the embedded system energy consumption and performance to the source code. Thus, it can be used for analysis (i.e., to find energy-critical sections of the code), and for validation (i.e., to assess the impact of each code optimization).Code optimizations and profiling tool are used to optimize and tune the implementation of an MPEG Layer III (MP3) audio decoder for the SmartBadge [2] portable embedded system. We show that using our methodology and tool we can quickly and easily redesign the MP3 audio decoder software to run in real time with low energy consumption. Performance increase of 92\% and energy consumption decrease of 77\% (over the original executable specification) has been achieved for MP3 audio decoding on the SmartBadge.}}, + address = {Washington, DC, USA}, + author = {\v{S}imuni\'{c}, Tajana and Benini, Luca and De Micheli, Giovanni and Hans, Mat}, + booktitle = {ISSS '00: Proceedings of the 13th international symposium on System synthesis}, + citeulike-article-id = {5700744}, + citeulike-linkout-0 = {http://portal.acm.org/citation.cfm?id=501831}, + citeulike-linkout-1 = {http://dx.doi.org/10.1145/501790.501831}, + doi = {10.1145/501790.501831}, + isbn = {1080-1082}, + keywords = {embedded, energy-consumption}, + location = {Madrid, Spain}, + pages = {193--198}, + posted-at = {2009-09-01 21:05:53}, + priority = {2}, + publisher = {IEEE Computer Society}, + title = {{Source code optimization and profiling of energy consumption in embedded systems}}, + url = {http://dx.doi.org/10.1145/501790.501831}, + year = {2000} +} + diff --git a/feuille-route/feuille-route.tex b/feuille-route/feuille-route.tex index 6fbf915..fc102e5 100644 --- a/feuille-route/feuille-route.tex +++ b/feuille-route/feuille-route.tex @@ -50,7 +50,7 @@ \section*{Répartition des lectures dans le groupe} \begin{description} \item[\textsc{Bonavero} Yoann] Nom de l'article%\ref{référence biblio} -\item[\textsc{Brun} Bertrand] Nom de l'article%\ref{référence biblio} +\item[\textsc{Brun} Bertrand] Source Code Optimization and Profiling of Energy Consumption in Embedded Systems \cite{citeulike:5700744} \item[\textsc{Charron} John] Nom de l'article%\ref{référence biblio} \item[\textsc{Dupéron} Georges] Nom de l'article%\ref{référence biblio} \end{description} @@ -60,7 +60,10 @@ \item[\textsc{Charron} John] Responsable de la communication \end{description} %% TODO : bibtex ici -% + +\bibliographystyle{plain} +\bibliography{biblio} + \includepdf[pages=1,angle=-90]{gantt.pdf} \includepdf[pages=2,angle=-90]{gantt.pdf} \includepdf[pages=3,angle=-90]{gantt.pdf} From 3ac2a32c48115838392c34f2c83b07f3885eb137 Mon Sep 17 00:00:00 2001 From: Bertrand BRUN Date: Thu, 20 Jan 2011 12:00:32 +0100 Subject: [PATCH 2/4] =?UTF-8?q?Ajout=20des=20pr=C3=A9f=C3=A9rences.=20Pour?= =?UTF-8?q?=20tester=20=C3=A9crire=20dans=20Main.onCreate()=20startActivit?= =?UTF-8?q?y(new=20Intent(Preference.class));?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/PtiClic/AndroidManifest.xml | 3 ++- code/PtiClic/res/xml/prefs.xml | 10 ++++++++++ code/PtiClic/src/org/pticlic/Preference.java | 17 +++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 code/PtiClic/res/xml/prefs.xml create mode 100644 code/PtiClic/src/org/pticlic/Preference.java diff --git a/code/PtiClic/AndroidManifest.xml b/code/PtiClic/AndroidManifest.xml index da993e4..3c49225 100644 --- a/code/PtiClic/AndroidManifest.xml +++ b/code/PtiClic/AndroidManifest.xml @@ -12,7 +12,8 @@ - + + \ No newline at end of file diff --git a/code/PtiClic/res/xml/prefs.xml b/code/PtiClic/res/xml/prefs.xml new file mode 100644 index 0000000..658727b --- /dev/null +++ b/code/PtiClic/res/xml/prefs.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/code/PtiClic/src/org/pticlic/Preference.java b/code/PtiClic/src/org/pticlic/Preference.java new file mode 100644 index 0000000..bff937c --- /dev/null +++ b/code/PtiClic/src/org/pticlic/Preference.java @@ -0,0 +1,17 @@ +package org.pticlic; + +import android.os.Bundle; +import android.preference.PreferenceActivity; + +public class Preference extends PreferenceActivity { + + /* (non-Javadoc) + * @see android.preference.PreferenceActivity#onCreate(android.os.Bundle) + */ + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + addPreferencesFromResource(R.xml.prefs); + } + +} From 4eb6b74571476a28f8f259998b24b8e36beb4a7a Mon Sep 17 00:00:00 2001 From: Bertrand BRUN Date: Thu, 20 Jan 2011 13:03:41 +0100 Subject: [PATCH 3/4] Modification de la page de garde (main.xml). --- code/PtiClic/res/layout/main.xml | 33 +++++++++++++++++++++-------- code/PtiClic/res/values/strings.xml | 4 +++- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/code/PtiClic/res/layout/main.xml b/code/PtiClic/res/layout/main.xml index 3a5f117..411f477 100644 --- a/code/PtiClic/res/layout/main.xml +++ b/code/PtiClic/res/layout/main.xml @@ -1,12 +1,27 @@ - + android:layout_width="fill_parent" android:layout_height="fill_parent" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + diff --git a/code/PtiClic/res/values/strings.xml b/code/PtiClic/res/values/strings.xml index 98dbf5b..27a6d13 100644 --- a/code/PtiClic/res/values/strings.xml +++ b/code/PtiClic/res/values/strings.xml @@ -1,5 +1,7 @@ - Hello World, Main! + PtiClic +Préférences +Jeux From 0d843867d7577db3413b096dd396080c69208b2d Mon Sep 17 00:00:00 2001 From: Bertrand BRUN Date: Thu, 20 Jan 2011 13:15:34 +0100 Subject: [PATCH 4/4] =?UTF-8?q?Lorsque=20l'on=20clique=20sur=20=C2=AB?= =?UTF-8?q?=C2=A0Pr=C3=A9f=C3=A9rences=C2=A0=C2=BB,=20le=20panneau=20de=20?= =?UTF-8?q?pr=C3=A9f=C3=A9rence=20s'ouvre.=20D=C3=A9sactivation=20du=20bou?= =?UTF-8?q?ton=20=C2=AB=C2=A0Jeux=C2=A0=C2=BB.=20Suppression=20de=20la=20b?= =?UTF-8?q?arre=20de=20titre.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/PtiClic/AndroidManifest.xml | 5 ++--- code/PtiClic/res/layout/main.xml | 22 +++++++++++----------- code/PtiClic/src/org/pticlic/Main.java | 15 ++++++++++++++- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/code/PtiClic/AndroidManifest.xml b/code/PtiClic/AndroidManifest.xml index 3c49225..8af6454 100644 --- a/code/PtiClic/AndroidManifest.xml +++ b/code/PtiClic/AndroidManifest.xml @@ -3,9 +3,8 @@ package="org.pticlic" android:versionCode="1" android:versionName="1.0"> - - + + diff --git a/code/PtiClic/res/layout/main.xml b/code/PtiClic/res/layout/main.xml index 411f477..406892e 100644 --- a/code/PtiClic/res/layout/main.xml +++ b/code/PtiClic/res/layout/main.xml @@ -5,23 +5,23 @@ + android:textSize="50px" android:layout_weight="3" /> + android:id="@+id/RelativeLayout01" android:layout_width="wrap_content" + android:layout_gravity="bottom|center_horizontal"> - + - + - - - - - - - diff --git a/code/PtiClic/src/org/pticlic/Main.java b/code/PtiClic/src/org/pticlic/Main.java index 36a52f6..077c5f3 100644 --- a/code/PtiClic/src/org/pticlic/Main.java +++ b/code/PtiClic/src/org/pticlic/Main.java @@ -1,13 +1,26 @@ package org.pticlic; import android.app.Activity; +import android.content.Intent; import android.os.Bundle; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; -public class Main extends Activity { +public class Main extends Activity implements OnClickListener { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); + ((Button)findViewById(R.id.prefs)).setOnClickListener(this); + } + + @Override + public void onClick(View v) { + if (v.getId()==R.id.prefs) { + startActivity(new Intent(this, Preference.class)); + } + } } \ No newline at end of file